/* * To change this template, choose Tools | Templates * and open the template in the editor. */ /* * WebSTest.java * * Created on Mar 19, 2009, 4:55:57 PM */ package testwebstart; import java.awt.event.KeyEvent; import java.io.FileNotFoundException; import java.util.logging.Level; import java.util.logging.Logger; import java.util.prefs.Preferences; /** * * @author George */ public class WebSTest extends javax.swing.JFrame implements GlobalKeyListner { private String ourNodeName = "WebSTest"; private Preferences prefs; /** Creates new form WebSTest * @throws FileNotFoundException */ public WebSTest() { prefs = Preferences.userRoot().node(ourNodeName); System.err.println(" Before initComponents = "); initComponents(); } /** This method is called from within the constructor to * initialize the form. * WARNING: Do NOT modify this code. The content of this method is * always regenerated by the Form Editor. */ @SuppressWarnings("unchecked") // //GEN-BEGIN:initComponents private void initComponents() { jLabel1 = new javax.swing.JLabel(); setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); jLabel1.setText("A Label"); javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); getContentPane().setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup() .addContainerGap(236, Short.MAX_VALUE) .addComponent(jLabel1) .addGap(122, 122, 122)) ); layout.setVerticalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addGap(101, 101, 101) .addComponent(jLabel1) .addContainerGap(183, Short.MAX_VALUE)) ); pack(); }// //GEN-END:initComponents /** * @param args the command line arguments */ public static void main(String args[]) { java.awt.EventQueue.invokeLater(new Runnable() { public void run() { new WebSTest().setVisible(true); } }); } // Variables declaration - do not modify//GEN-BEGIN:variables private javax.swing.JLabel jLabel1; // End of variables declaration//GEN-END:variables public boolean keyTyped(KeyEvent e) { throw new UnsupportedOperationException("Not supported yet."); } public boolean keyPressed(KeyEvent e) { throw new UnsupportedOperationException("Not supported yet."); } public boolean keyReleased(KeyEvent e) { throw new UnsupportedOperationException("Not supported yet."); } }