import java.awt.Graphics; /* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ /** * * @author levenick */ public class MyApplet extends java.applet.Applet { /** * Initializes the applet MyApplet */ public void init() { //initComponents(); // setSize(400, 400); // setVisible(true); // System.out.println("foo"); // repaint(); } public void paint(Graphics g) { g.fillOval(100, 100, 100, 100); System.out.println("painting"); } public static void main(String[] args) { MyApplet foo=new MyApplet(); foo.init(); System.out.println("where my applet??"); foo.setVisible(true); new JAppletThang().init(); System.out.println("asldfja;slkfj"); } /** * This method is called from within the init() method to initialize the * form. WARNING: Do NOT modify this code. The content of this method is * always regenerated by the Form Editor. */ // //GEN-BEGIN:initComponents private void initComponents() { setLayout(null); }// //GEN-END:initComponents // Variables declaration - do not modify//GEN-BEGIN:variables // End of variables declaration//GEN-END:variables }