This shows you the differences between two versions of the page.
|
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); | ||
| } | } | ||