If I only knew what this life would bring me, I think I could get by without that much of a problem. I mean sure life will come and go and we won’t know the difference because of it. It will be here one second and gone the next, that’s how life tends to work. We don’t always know what’s going to happen. I wish I could understand something about this life though, anything really. That would be quite nice. But alas I fear that I will be unable to understand anything right away. Life will be what it will be and I will have to simply understand that and be apart of it. It won’t always come to me easily I’m afraid. That’s life in a nutshell.
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