/* * HelloWorldApplet.java * * Created on March 28, 2007, 8:53 AM */ package edu.usafa.helloworld; /** * * @author Jim.Rolf */ public class HelloWorldApplet extends javax.swing.JApplet { /** Initializes the applet HelloWorldApplet */ public void init() { try { java.awt.EventQueue.invokeAndWait(new Runnable() { public void run() { initComponents(); } }); } catch (Exception ex) { ex.printStackTrace(); } } /** 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() { backgroundPanel = new javax.swing.JPanel(); jLabel1 = new javax.swing.JLabel(); getContentPane().setLayout(null); backgroundPanel.setLayout(null); backgroundPanel.setBackground(java.awt.Color.white); jLabel1.setText("Hello World"); backgroundPanel.add(jLabel1); jLabel1.setBounds(130, 90, 100, 20); getContentPane().add(backgroundPanel); backgroundPanel.setBounds(0, 0, 400, 300); }// //GEN-END:initComponents // Variables declaration - do not modify//GEN-BEGIN:variables private javax.swing.JPanel backgroundPanel; private javax.swing.JLabel jLabel1; // End of variables declaration//GEN-END:variables }