Differences

This shows you the differences between two versions of the page.

Link to this comparison view

poo:breviare:breviar-09 [2025/11/30 17:22]
george.tudor1906
poo:breviare:breviar-09 [2025/12/01 13:01] (current)
carmen.odubasteanu [Breviar 9]
Line 73: Line 73:
         button = new JButton("​Apasa"​);​         button = new JButton("​Apasa"​);​
         add(button);​         add(button);​
-        show(); 
         pack();         pack();
 +        setVisible(true);​
     }     }
  
Line 118: Line 118:
         button.addActionListener(this);​         button.addActionListener(this);​
         add(button);​         add(button);​
-        show(); 
         pack();         pack();
 +        setVisible(true);​
     }     }
  
Line 183: Line 183:
         pass = new JPasswordField(15);​         pass = new JPasswordField(15);​
         add(pass);         add(pass);
-        show(); 
         pack();         pack();
 +        setVisible(true);​
     }     }
  
Line 256: Line 256:
         scroll = new JScrollPane(textArea);​         scroll = new JScrollPane(textArea);​
         add(scroll);​         add(scroll);​
-        show(); 
         pack();         pack();
 +        setVisible(true);​
     }     }
  
poo/breviare/breviar-09.txt · Last modified: 2025/12/01 13:01 by carmen.odubasteanu
CC Attribution-Share Alike 3.0 Unported
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0