Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //FirstJFrmae.java
- /*This program illustrates the use of a JFrame GUI component */
- import javax.swing.JFrame;
- public class FirstJFrame {
- public static void main(String args[]){
- JFrame jFrameWindow = new JFrame();
- jFrameWindow.setTitle("Our first JFrame GUI Application");
- jFrameWindow.setSize(350,300);
- jFrameWindow.setVisible(true);
- jFrameWindow.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement