Advertisement
Guest User

Untitled

a guest
Sep 24th, 2019
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. //FirstJFrmae.java
  2. /*This program illustrates the use of a JFrame GUI component */
  3.  
  4. import javax.swing.JFrame;
  5.  
  6. public class FirstJFrame {
  7.  
  8. public static void main(String args[]){
  9.  
  10. JFrame jFrameWindow = new JFrame();
  11.  
  12. jFrameWindow.setTitle("Our first JFrame GUI Application");
  13. jFrameWindow.setSize(350,300);
  14. jFrameWindow.setVisible(true);
  15. jFrameWindow.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
  16. }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement