Advertisement
Guest User

Untitled

a guest
Dec 8th, 2016
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.01 KB | None | 0 0
  1. bellow is section of my code :
  2. public class apltw extends JApplet {
  3.  
  4. JFrame f1 = new JFrame("frame1");
  5. JFrame f2 = new JFrame(" frame2");
  6. JFrame f3 = new JFrame("frame3");
  7. JLabel label0 = new JLabel("~~COMMON PROPERTIES ~~");
  8. JLabel label1 = new JLabel("Enter the file path:");
  9. JTextField fileforgeo1 = new JTextField(20);
  10. JTextField text1 = new JTextField(20);
  11. JLabel label2 = new JLabel("Enter Number of CPU:");
  12. JTextField text2 = new JTextField(10);
  13. JLabel label3 = new JLabel("Enter memory in MB :");
  14. JTextField text3 = new JTextField(10);
  15. public void init() {
  16. defination of Textboxes and Lables , adding them to frames.
  17. }
  18. public static void main(String[] args) {
  19. run(new apltw(), 1000, 1000);
  20. }
  21.  
  22. public static void run(JApplet applet, int width, int height) {
  23. apltw.applet = applet;
  24. apltw.width = width;
  25. apltw.height = height;
  26. applet.init();
  27. applet.start();
  28.  
  29. }
  30. some other methods and classes which are called in init() .
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement