CodePaste Logo
New Snippet New Snippet Recent Snippets Recent Snippets My Snippets My Snippets Web Code Search Snippets Search
Sign inor Register
Language: Java

GUIApplet

52 Views
Copy Code Show/Hide Line Numbers
   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:  }
by ludjer
  March 10, 2010 @ 3:39pm

Add a comment


Report Abuse
brought to you by:
West Wind Techologies



If you find this site useful and use it frequently please consider making a donation to support this free service.
Donate