|
Проблема с показом 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/moderation_log.php?user_name=%D0%92%D0%B8%D1%82%D0%B0%D0%BB%D0%B8%D0%B946785]: |
0ms |
get settings: |
7ms |
get forum list: |
13ms |
get settings: |
8ms |
get forum list: |
11ms |
check forum access: |
3ms |
check topic access: |
3ms |
track hit: |
86ms |
get topic data: |
11ms |
get forum data: |
2ms |
get page messages: |
35ms |
get tp. blocked users: |
1ms |
others: | 1157ms |
total: | 1337ms |
0 / 0 |