JBuilder设计实例
源代码在线查看: frame1.java~7~
package ex10_03; import java.awt.*; import java.awt.event.*; import javax.swing.*; import java.util.*; public class Frame1 extends JFrame { JPanel contentPane; JButton jButton1 = new JButton(); JTextField jTextField1 = new JTextField(); JScrollPane jScrollPane1 = new JScrollPane(); JList jList1 = new JList(); JButton jButton2 = new JButton(); JLabel jLabel1 = new JLabel(); JLabel jLabel2 = new JLabel(); /**Construct the frame*/ public Frame1() { enableEvents(AWTEvent.WINDOW_EVENT_MASK); try { jbInit(); } catch(Exception e) { e.printStackTrace(); } } /**Component initialization*/ private void jbInit() throws Exception { //setIconImage(Toolkit.getDefaultToolkit().createImage(Frame1.class.getResource("[Your Icon]"))); contentPane = (JPanel) this.getContentPane(); jButton1.setText("