Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- bellow is section of my code :
- public class apltw extends JApplet {
- JFrame f1 = new JFrame("frame1");
- JFrame f2 = new JFrame(" frame2");
- JFrame f3 = new JFrame("frame3");
- JLabel label0 = new JLabel("~~COMMON PROPERTIES ~~");
- JLabel label1 = new JLabel("Enter the file path:");
- JTextField fileforgeo1 = new JTextField(20);
- JTextField text1 = new JTextField(20);
- JLabel label2 = new JLabel("Enter Number of CPU:");
- JTextField text2 = new JTextField(10);
- JLabel label3 = new JLabel("Enter memory in MB :");
- JTextField text3 = new JTextField(10);
- public void init() {
- defination of Textboxes and Lables , adding them to frames.
- }
- public static void main(String[] args) {
- run(new apltw(), 1000, 1000);
- }
- public static void run(JApplet applet, int width, int height) {
- apltw.applet = applet;
- apltw.width = width;
- apltw.height = height;
- applet.init();
- applet.start();
- }
- some other methods and classes which are called in init() .
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement