|
Проблема с показом 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&fpage=859&tid=2154552]: |
0ms |
get settings: |
9ms |
get forum list: |
12ms |
check forum access: |
4ms |
check topic access: |
4ms |
track hit: |
31ms |
get topic data: |
13ms |
get forum data: |
3ms |
get page messages: |
36ms |
get tp. blocked users: |
2ms |
others: | 270ms |
total: | 384ms |
0 / 0 |