>> java
>> f = javax.swing.JFrame('A Java Application');
>> f.setSize(400,300);
>> f.setLocation(200, 100);
>> f.setVisible(true);Then you can add some attribute
>> layout = java.awt.FlowLayout();
>> f.getContentPane().setLayout(layout);
>> bExit = javax.swing.JButton("Exit");
>> f.getContentPane().add(bExit);
No comments:
Post a Comment