|
Проблема с показом JButton
|
|||
---|---|---|---|
#18+
Показываю пример из книжки, который не показывает кнопку, почему-то... import javax.swing.*; import java.awt.event.*; import java.awt.*; public class JAppletDemo extends JApplet implements ActionListener{ JTextField jtf; public void init(){ Container contentPane = getContentPane(); contentPane.setLayout(new FlowLayout()); jtf = new JTextField(15); contentPane.add(jtf); JButton jb = new JButton("121"); jb.setActionCommand("121"); jb.addActionListener(this); } public void actionPerformed(ActionEvent ae){ jtf.setText("121"); } } Скажи, что не так? ... |
|||
:
Нравится:
Не нравится:
|
|||
15.09.2003, 18:24 |
|
|
start [/forum/topic.php?fid=59&gotonew=1&tid=2154552]: |
0ms |
get settings: |
9ms |
get forum list: |
14ms |
check forum access: |
3ms |
check topic access: |
3ms |
track hit: |
24ms |
get topic data: |
11ms |
get first new msg: |
8ms |
get forum data: |
2ms |
get page messages: |
37ms |
get tp. blocked users: |
2ms |
others: | 270ms |
total: | 383ms |
0 / 0 |