If life had the ability to reach out to us, would we allow it? I think not. I believe life has many things wrong with it. Some things are quite complex while other things are easy as apple pie. (However easy that is!) It doesn’t feel like it’s something to be proud or ashamed of. It just is.
A frame is a window for your application. It is the basic part and ground where your Swing application lives.
import javax.swing.JFrame;
public class Frame {
public static void main(String[] args) {
JFrame frame = new JFrame();
frame.setSize(400,400);
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.setVisible(true);
}
}
Comments
Post a Comment