Language: Java
GUIApplet
1: import javax.swing.JApplet; 2: import java.awt.Graphics; 3: /** 4: * This class extends applet and creates a new instance of FrameGUI 5: * @author Darren 6: */ 7: public class GUIApplet extends JApplet 8: { 9: /** 10: * initiates the applet 11: */ 12: public void init() 13: { 14: FrameGUI gui = new FrameGUI(); 15: 16: this.add(gui); 17: this.setSize(500, 500); 18: this.setVisible(true); 19: } 20: /** 21: * Used to paint the graphics g 22: * @param g graphics 23: */ 24: public void paint(Graphics g) 25: { 26: super.paint(g); 27: } 28: }
Report Abuse
Subscribe
Discuss
What's new
What is it
New Snippet
Recent Snippets
My Snippets
Web Code
Search

