   [java] java swing applet help
  I am using netbeans 6.5 and I made a form using the visual ide and it auto generated everything needed for the gui. I initially choose an applet template. I put in some code for the gui controls for basic interaction and when I built the code it created a jar file with the associated .class files in the archive file. The problem is that even when I put the name of the class file and the archive tag element in the applet tag, I still get errors trying to load the applet. It tells me class not foundexception cannot find class.class etc. I have no clue why it is doing that. I tested to make sure it was not just my machine or if I did no configure something correctly, so I had someone else try to take the jar file and add it to an applet tag on their machine and they got the same results. The other issue is we both get the same errors if we download or grab any other applet as well. What Can I possibly be doing wrong? Any help is appreciated, thanks :)   
  Did you try running the applet in a non-jar form IE: applet tag with the .class file?You could narrow it down if it's from the jar file, or something else.   ;  I did try without jar file and the jar file has like 8 .class files which I find weird. It starts out BuildingCoordinatorsJApplet.class and then has bunch of others starting BuildingCoordinatorsJApplet$1.class - BuildingCoordinatorsJApplet$7.class. I am not sure why it generated these other classes but that is what netbean did and btw I am using their wizards to set up a swing applet. Any ideas? Maybe I need to remove all older updates for JRE and the Java SDK and just keep the latest version 14 of each? Any help is appreciated thanks :)   ;  Here is my html for applet:<applet align="CENTER" name=BuildingCoordinatorsJApplet code="BuildingCoordinatorsJApplet" codebase="/Applet/" archive="JackieProject.jar" width="800" height="500">My source code generated is this:/* * To change this template, choose Tools | Templates * and open the template in the editor. *//* * BuildingCoordinatorsJApplet.java * * Created on Apr 19, 2009, 4:15:42 PM */package BuildingCoordinators;import java.applet.*;import java.awt.*;import java.awt.event.*;/** * * @author kyros */public class BuildingCoordinatorsJApplet extends javax.swing.JApplet {    /** Initializes the applet BuildingCoordinatorsJApplet */    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.*/    @SuppressWarnings("unchecked")    // <editor-fold defaultstate="collapsed" desc="Generated Code">private void initComponents() {   btngrGroup = new javax.swing.ButtonGroup();   btngrGroup2 = new javax.swing.ButtonGroup();   pnlMainPanel = new javax.swing.JPanel();   sepTitleSeparator = new javax.swing.JSeparator();   lblMainTitle = new javax.swing.JLabel();   lblCoordinatorInfo = new javax.swing.JLabel();   optSearchLastName = new javax.swing.JRadioButton();   optSearchBuildingNumber = new javax.swing.JRadioButton();   optSearchBuildingName = new javax.swing.JRadioButton();   lblSearchCaption = new javax.swing.JLabel();   txtSearch = new javax.swing.JTextField();   btnSearch = new javax.swing.JButton();   lblFirstNameCaption = new javax.swing.JLabel();   txtFirstName = new javax.swing.JTextField();   lblMiddleInitialCaption = new javax.swing.JLabel();   txtMiddleInitial = new javax.swing.JTextField();   lblLastNameCaption = new javax.swing.JLabel();   txtLastName = new javax.swing.JTextField();   lblEmailCaption = new javax.swing.JLabel();   txtEmail = new javax.swing.JTextField();   lblLocationCaption = new javax.swing.JLabel();   txtLocation = new javax.swing.JTextField();   lblBuildingNumberCaption = new javax.swing.JLabel();   txtBuildingNumber = new javax.swing.JTextField();   lblBuildingNameCaption = new javax.swing.JLabel();   txtBuildingName = new javax.swing.JTextField();   lblPhoneNumberCaption = new javax.swing.JLabel();   txtPhoneNumber = new javax.swing.JTextField();   lblSearchResults = new javax.swing.JLabel();   btnAdd = new javax.swing.JButton();   btnEdit = new javax.swing.JButton();   btnDelete = new javax.swing.JButton();   btnProcessInput = new javax.swing.JButton();   jScrollPane1 = new javax.swing.JScrollPane();   tblSearchResults = new javax.swing.JTable();   optPrimary = new javax.swing.JRadioButton();   optAlternate = new javax.swing.JRadioButton();   pnlMainPanel.setInheritsPopupMenu(true);   lblMainTitle.setBackground(new java.awt.Color(255, 204, 0));   lblMainTitle.setFont(new java.awt.Font("Tahoma", 0, 18));   lblMainTitle.setForeground(new java.awt.Color(102, 0, 204));   lblMainTitle.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);   lblMainTitle.setText("Building Coordinators");   lblMainTitle.setName(""); // NOI18N   lblMainTitle.setOpaque(true);   lblCoordinatorInfo.setBackground(new java.awt.Color(255, 204, 0));   lblCoordinatorInfo.setForeground(new java.awt.Color(102, 0, 204));   lblCoordinatorInfo.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);   lblCoordinatorInfo.setText("Coordinator Information");   lblCoordinatorInfo.setOpaque(true);   btngrGroup.add(optSearchLastName);   optSearchLastName.setText("Last Name");   btngrGroup.add(optSearchBuildingNumber);   optSearchBuildingNumber.setText("Building Number");   btngrGroup.add(optSearchBuildingName);   optSearchBuildingName.setText("Building Name");   lblSearchCaption.setText("Search For:");   btnSearch.setText("Search");   lblFirstNameCaption.setText("First Name:");   lblFirstNameCaption.setEnabled(false);   txtFirstName.setEnabled(false);   lblMiddleInitialCaption.setText("Middle Initial:");   lblMiddleInitialCaption.setEnabled(false);   txtMiddleInitial.setEnabled(false);   lblLastNameCaption.setText("Last Name:");   lblLastNameCaption.setEnabled(false);   txtLastName.setEnabled(false);   txtLastName.addActionListener(new java.awt.event.ActionListener() {  public void actionPerformed(java.awt.event.ActionEvent evt) { txtLastNameActionPerformed(evt);  }   });   lblEmailCaption.setText("Email:");   lblEmailCaption.setEnabled(false);   txtEmail.setEnabled(false);   lblLocationCaption.setText("Location:");   lblLocationCaption.setEnabled(false);   txtLocation.setEnabled(false);   lblBuildingNumberCaption.setText("Building Number:");   lblBuildingNumberCaption.setEnabled(false);   txtBuildingNumber.setEnabled(false);   lblBuildingNameCaption.setText("Building Name:");   lblBuildingNameCaption.setEnabled(false);   txtBuildingName.setEnabled(false);   lblPhoneNumberCaption.setText("Phone Number:");   lblPhoneNumberCaption.setEnabled(false);   txtPhoneNumber.setEnabled(false);   lblSearchResults.setBackground(new java.awt.Color(255, 204, 0));   lblSearchResults.setForeground(new java.awt.Color(102, 0, 204));   lblSearchResults.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);   lblSearchResults.setText("Results will be displayed below");   lblSearchResults.setOpaque(true);   btnAdd.setText("Add");   btnAdd.addActionListener(new java.awt.event.ActionListener() {  public void actionPerformed(java.awt.event.ActionEvent evt) { btnAddActionPerformed(evt);  }   });   btnEdit.setText("Edit");   btnEdit.addActionListener(new java.awt.event.ActionListener() {  public void actionPerformed(java.awt.event.ActionEvent evt) { btnEditActionPerformed(evt);  }   });   btnDelete.setText("Delete");   btnDelete.addActionListener(new java.awt.event.ActionListener() {  public void actionPerformed(java.awt.event.ActionEvent evt) { btnDeleteActionPerformed(evt);  }   });   btnProcessInput.setText("Process Input");   btnProcessInput.setEnabled(false);   btnProcessInput.addActionListener(new java.awt.event.ActionListener() {  public void actionPerformed(java.awt.event.ActionEvent evt) { btnProcessInputActionPerformed(evt);  }   });   tblSearchResults.setAutoCreateRowSorter(true);   tblSearchResults.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));   tblSearchResults.setModel(new javax.swing.table.DefaultTableModel(  new Object [][] { {null, null, null, null, null, null, null}, {null, null, null, null, null, null, null}, {null, null, null, null, null, null, null}, {null, null, null, null, null, null, null}, {null, null, null, null, null, null, null}, {null, null, null, null, null, null, null}, {null, null, null, null, null, null, null}, {null, null, null, null, null, null, null}, {null, null, null, null, null, null, null}, {null, null, null, null, null, null, null}, {null, null, null, null, null, null, null}, {null, null, null, null, null, null, null}, {null, null, null, null, null, null, null}, {null, null, null, null, null, null, null}, {null, null, null, null, null, null, null}, {null, null, null, null, null, null, null}, {null, null, null, null, null, null, null}, {null, null, null, null, null, null, null}, {null, null, null, null, null, null, null}, {null, null, null, null, null, null, null}, {null, null, null, null, null, null, null}  },  new String [] { "Name", "Email", "Location", "Building Number", "Building Name", "Phone", "Type"  }   ) {  Class[] types = new Class [] { java.lang.String.class, java.lang.String.class, java.lang.String.class, java.lang.String.class, java.lang.String.class, java.lang.String.class, java.lang.String.class  };  boolean[] canEdit = new boolean [] { false, false, false, false, false, false, false  };  public Class getColumnClass(int columnIndex) { return types [columnIndex];  }  public boolean isCellEditable(int rowIndex, int columnIndex) { return canEdit [columnIndex];  }   });   tblSearchResults.setAutoResizeMode(javax.swing.JTable.AUTO_RESIZE_ALL_COLUMNS);   tblSearchResults.setRowHeight(25);   tblSearchResults.setRowSelectionAllowed(false);   jScrollPane1.setViewportView(tblSearchResults);   btngrGroup2.add(optPrimary);   optPrimary.setText("Primary");   optPrimary.setEnabled(false);   btngrGroup2.add(optAlternate);   optAlternate.setText("Alternate");   optAlternate.setEnabled(false);   javax.swing.GroupLayout pnlMainPanelLayout = new javax.swing.GroupLayout(pnlMainPanel);   pnlMainPanel.setLayout(pnlMainPanelLayout);   pnlMainPanelLayout.setHorizontalGroup(  pnlMainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)  .addComponent(lblMainTitle, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 720, Short.MAX_VALUE)  .addComponent(sepTitleSeparator, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 720, Short.MAX_VALUE)  .addComponent(lblCoordinatorInfo, javax.swing.GroupLayout.DEFAULT_SIZE, 720, Short.MAX_VALUE)  .addGroup(pnlMainPanelLayout.createSequentialGroup() .addContainerGap() .addGroup(pnlMainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(pnlMainPanelLayout.createSequentialGroup()    .addGroup(pnlMainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)   .addGroup(javax.swing.GroupLayout.Alignment.LEADING, pnlMainPanelLayout.createSequentialGroup()  .addComponent(lblBuildingNumberCaption)  .addPreferredGap(javax.swing.Layoutstyle.ComponentPlacement.RELATED)  .addComponent(txtBuildingNumber))   .addGroup(javax.swing.GroupLayout.Alignment.LEADING, pnlMainPanelLayout.createSequentialGroup()  .addComponent(lblMiddleInitialCaption)  .addPreferredGap(javax.swing.Layoutstyle.ComponentPlacement.RELATED)  .addComponent(txtMiddleInitial, javax.swing.GroupLayout.PREFERRED_SIZE, 15, javax.swing.GroupLayout.PREFERRED_SIZE))   .addGroup(javax.swing.GroupLayout.Alignment.LEADING, pnlMainPanelLayout.createSequentialGroup()  .addComponent(lblLastNameCaption)  .addPreferredGap(javax.swing.Layoutstyle.ComponentPlacement.RELATED)  .addComponent(txtLastName, javax.swing.GroupLayout.PREFERRED_SIZE, 133, javax.swing.GroupLayout.PREFERRED_SIZE))   .addGroup(javax.swing.GroupLayout.Alignment.LEADING, pnlMainPanelLayout.createSequentialGroup()  .addComponent(lblFirstNameCaption)  .addPreferredGap(javax.swing.Layoutstyle.ComponentPlacement.RELATED)  .addComponent(txtFirstName))   .addGroup(javax.swing.GroupLayout.Alignment.LEADING, pnlMainPanelLayout.createSequentialGroup()  .addComponent(lblEmailCaption)  .addPreferredGap(javax.swing.Layoutstyle.ComponentPlacement.RELATED)  .addComponent(txtEmail))   .addGroup(javax.swing.GroupLayout.Alignment.LEADING, pnlMainPanelLayout.createSequentialGroup()  .addComponent(lblLocationCaption)  .addPreferredGap(javax.swing.Layoutstyle.ComponentPlacement.RELATED)  .addComponent(txtLocation))   .addGroup(javax.swing.GroupLayout.Alignment.LEADING, pnlMainPanelLayout.createSequentialGroup()  .addComponent(lblBuildingNameCaption)  .addPreferredGap(javax.swing.Layoutstyle.ComponentPlacement.UNRELATED)  .addComponent(txtBuildingName))   .addGroup(javax.swing.GroupLayout.Alignment.LEADING, pnlMainPanelLayout.createSequentialGroup()  .addGroup(pnlMainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(optPrimary) .addComponent(lblPhoneNumberCaption))  .addPreferredGap(javax.swing.Layoutstyle.ComponentPlacement.RELATED)  .addComponent(txtPhoneNumber)))    .addPreferredGap(javax.swing.Layoutstyle.ComponentPlacement.RELATED)).addGroup(javax.swing.GroupLayout.Alignment.TRAILING, pnlMainPanelLayout.createSequentialGroup()    .addComponent(optAlternate)    .addGap(25, 25, 25))) .addGroup(pnlMainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(btnProcessInput).addGroup(pnlMainPanelLayout.createSequentialGroup()    .addGroup(pnlMainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)   .addComponent(btnDelete, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)   .addComponent(btnEdit, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)   .addComponent(btnAdd, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 95, Short.MAX_VALUE))    .addGap(173, 173, 173)    .addGroup(pnlMainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)   .addGroup(pnlMainPanelLayout.createSequentialGroup()  .addComponent(lblSearchCaption)  .addPreferredGap(javax.swing.Layoutstyle.ComponentPlacement.RELATED)  .addComponent(txtSearch, javax.swing.GroupLayout.DEFAULT_SIZE, 175, Short.MAX_VALUE))   .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, pnlMainPanelLayout.createSequentialGroup()  .addGroup(pnlMainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(btnSearch) .addComponent(optSearchBuildingNumber) .addComponent(optSearchLastName) .addComponent(optSearchBuildingName))  .addGap(22, 22, 22))))) .addContainerGap())  .addGroup(pnlMainPanelLayout.createSequentialGroup() .addContainerGap() .addComponent(lblSearchResults, javax.swing.GroupLayout.DEFAULT_SIZE, 700, Short.MAX_VALUE) .addContainerGap())  .addGroup(pnlMainPanelLayout.createSequentialGroup() .addContainerGap() .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 700, Short.MAX_VALUE) .addContainerGap())   );   pnlMainPanelLayout.setVerticalGroup(  pnlMainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)  .addGroup(pnlMainPanelLayout.createSequentialGroup() .addComponent(lblMainTitle, javax.swing.GroupLayout.PREFERRED_SIZE, 27, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(8, 8, 8) .addComponent(sepTitleSeparator, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.Layoutstyle.ComponentPlacement.RELATED) .addComponent(lblCoordinatorInfo, javax.swing.GroupLayout.PREFERRED_SIZE, 24, javax.swing.GroupLayout.PREFERRED_SIZE) .addGroup(pnlMainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(pnlMainPanelLayout.createSequentialGroup()    .addGap(36, 36, 36)    .addGroup(pnlMainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)   .addComponent(lblFirstNameCaption)   .addComponent(txtFirstName, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))    .addPreferredGap(javax.swing.Layoutstyle.ComponentPlacement.RELATED)    .addGroup(pnlMainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)   .addComponent(lblMiddleInitialCaption)   .addComponent(txtMiddleInitial, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))    .addPreferredGap(javax.swing.Layoutstyle.ComponentPlacement.RELATED)    .addGroup(pnlMainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)   .addComponent(lblLastNameCaption)   .addComponent(txtLastName, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)   .addComponent(btnAdd))    .addPreferredGap(javax.swing.Layoutstyle.ComponentPlacement.RELATED)    .addGroup(pnlMainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)   .addComponent(lblEmailCaption)   .addComponent(txtEmail, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)   .addComponent(btnEdit))    .addPreferredGap(javax.swing.Layoutstyle.ComponentPlacement.RELATED)    .addGroup(pnlMainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)   .addComponent(lblLocationCaption)   .addComponent(txtLocation, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)   .addComponent(btnDelete))    .addPreferredGap(javax.swing.Layoutstyle.ComponentPlacement.RELATED)    .addGroup(pnlMainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)   .addComponent(lblBuildingNumberCaption)   .addComponent(txtBuildingNumber, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))    .addPreferredGap(javax.swing.Layoutstyle.ComponentPlacement.RELATED)    .addGroup(pnlMainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)   .addComponent(lblBuildingNameCaption)   .addComponent(txtBuildingName, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))    .addPreferredGap(javax.swing.Layoutstyle.ComponentPlacement.RELATED)    .addGroup(pnlMainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)   .addComponent(lblPhoneNumberCaption)   .addComponent(txtPhoneNumber, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))).addGroup(pnlMainPanelLayout.createSequentialGroup()    .addGap(18, 18, 18)    .addGroup(pnlMainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)   .addComponent(txtSearch, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)   .addComponent(lblSearchCaption))    .addPreferredGap(javax.swing.Layoutstyle.ComponentPlacement.RELATED)    .addComponent(optSearchLastName, javax.swing.GroupLayout.PREFERRED_SIZE, 13, javax.swing.GroupLayout.PREFERRED_SIZE)    .addPreferredGap(javax.swing.Layoutstyle.ComponentPlacement.RELATED)    .addComponent(optSearchBuildingName, javax.swing.GroupLayout.PREFERRED_SIZE, 14, javax.swing.GroupLayout.PREFERRED_SIZE)    .addPreferredGap(javax.swing.Layoutstyle.ComponentPlacement.RELATED)    .addComponent(optSearchBuildingNumber, javax.swing.GroupLayout.PREFERRED_SIZE, 13, javax.swing.GroupLayout.PREFERRED_SIZE)    .addGap(18, 18, 18)    .addComponent(btnSearch))) .addGroup(pnlMainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(pnlMainPanelLayout.createSequentialGroup()    .addPreferredGap(javax.swing.Layoutstyle.ComponentPlacement.RELATED, 15, Short.MAX_VALUE)    .addComponent(btnProcessInput)    .addGap(7, 7, 7)).addGroup(pnlMainPanelLayout.createSequentialGroup()    .addPreferredGap(javax.swing.Layoutstyle.ComponentPlacement.UNRELATED)    .addGroup(pnlMainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)   .addComponent(optAlternate)   .addComponent(optPrimary))    .addGap(11, 11, 11))) .addComponent(lblSearchResults, javax.swing.GroupLayout.PREFERRED_SIZE, 24, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.Layoutstyle.ComponentPlacement.RELATED) .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 369, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(16, 16, 16))   );   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() .addComponent(pnlMainPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGap(20, 20, 20))   );   layout.setVerticalGroup(  layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)  .addGroup(layout.createSequentialGroup() .addComponent(pnlMainPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGap(406, 406, 406))   );    }// </editor-fold>   private void txtLastNameActionPerformed(java.awt.event.ActionEvent evt) {  // TODO add your handling code here:}  private void btnAddActionPerformed(java.awt.event.ActionEvent evt) { btnDelete.setEnabled(false);  btnEdit.setEnabled(false);  btnAdd.setEnabled(false);  lblBuildingNameCaption.setEnabled(true);  lblBuildingNumberCaption.setEnabled(true);  lblEmailCaption.setEnabled(true);  lblFirstNameCaption.setEnabled(true);  lblLastNameCaption.setEnabled(true);  lblLocationCaption.setEnabled(true);  lblMiddleInitialCaption.setEnabled(true);  lblPhoneNumberCaption.setEnabled(true);  optPrimary.setEnabled(true);  optAlternate.setEnabled(true);  txtBuildingName.setEnabled(true);  txtBuildingNumber.setEnabled(true);  txtEmail.setEnabled(true);  txtFirstName.setEnabled(true);  txtLastName.setEnabled(true);  txtLocation.setEnabled(true);  txtMiddleInitial.setEnabled(true);  txtPhoneNumber.setEnabled(true);  btnProcessInput.setEnabled(true);    }  private void btnEditActionPerformed(java.awt.event.ActionEvent evt) {  btnDelete.setEnabled(false);  btnEdit.setEnabled(false);  btnAdd.setEnabled(false);  lblBuildingNameCaption.setEnabled(true);  lblBuildingNumberCaption.setEnabled(true);  lblEmailCaption.setEnabled(true);  lblFirstNameCaption.setEnabled(true);  lblLastNameCaption.setEnabled(true);  lblLocationCaption.setEnabled(true);  lblMiddleInitialCaption.setEnabled(true);  lblPhoneNumberCaption.setEnabled(true);  optPrimary.setEnabled(true);  optAlternate.setEnabled(true);  txtBuildingName.setEnabled(true);  txtBuildingNumber.setEnabled(true);  txtEmail.setEnabled(true);  txtFirstName.setEnabled(true);  txtLastName.setEnabled(true);  txtLocation.setEnabled(true);  txtMiddleInitial.setEnabled(true);  txtPhoneNumber.setEnabled(true);  btnProcessInput.setEnabled(true);    }   private void btnDeleteActionPerformed(java.awt.event.ActionEvent evt) {    btnDelete.setEnabled(false);  btnEdit.setEnabled(false);  btnAdd.setEnabled(false);  lblBuildingNameCaption.setEnabled(true);  lblBuildingNumberCaption.setEnabled(true);  lblEmailCaption.setEnabled(true);  lblFirstNameCaption.setEnabled(true);  lblLastNameCaption.setEnabled(true);  lblLocationCaption.setEnabled(true);  lblMiddleInitialCaption.setEnabled(true);  lblPhoneNumberCaption.setEnabled(true);  optPrimary.setEnabled(true);  optAlternate.setEnabled(true);  txtBuildingName.setEnabled(true);  txtBuildingNumber.setEnabled(true);  txtEmail.setEnabled(true);  txtFirstName.setEnabled(true);  txtLastName.setEnabled(true);  txtLocation.setEnabled(true);  txtMiddleInitial.setEnabled(true);  txtPhoneNumber.setEnabled(true);  btnProcessInput.setEnabled(true);    }private void btnProcessInputActionPerformed(java.awt.event.ActionEvent evt) {txtBuildingName.setText(null);  txtBuildingNumber.setText(null);  txtEmail.setText(null);  txtFirstName.setText(null);  txtLastName.setText(null);  txtLocation.setText(null);  txtMiddleInitial.setText(null);  txtPhoneNumber.setText(null);  btnDelete.setEnabled(true);  btnEdit.setEnabled(true);  btnAdd.setEnabled(true);  lblBuildingNameCaption.setEnabled(false);  lblBuildingNumberCaption.setEnabled(false);  lblEmailCaption.setEnabled(false);  lblFirstNameCaption.setEnabled(false);  lblLastNameCaption.setEnabled(false);  lblLocationCaption.setEnabled(false);  lblMiddleInitialCaption.setEnabled(false);  lblPhoneNumberCaption.setEnabled(false);  optPrimary.setEnabled(false);  optAlternate.setEnabled(false);  txtBuildingName.setEnabled(false);  txtBuildingNumber.setEnabled(false);  txtEmail.setEnabled(false);  txtFirstName.setEnabled(false);  txtLastName.setEnabled(false);  txtLocation.setEnabled(false);  txtMiddleInitial.setEnabled(false);  txtPhoneNumber.setEnabled(false);  btnProcessInput.setEnabled(false);    } // Variables declaration - do not modifyprivate javax.swing.JButton btnAdd;    private javax.swing.JButton btnDelete;    private javax.swing.JButton btnEdit;    private javax.swing.JButton btnProcessInput;    private javax.swing.JButton btnSearch;    private javax.swing.ButtonGroup btngrGroup;    private javax.swing.ButtonGroup btngrGroup2;    private javax.swing.JScrollPane jScrollPane1;    private javax.swing.JLabel lblBuildingNameCaption;    private javax.swing.JLabel lblBuildingNumberCaption;    private javax.swing.JLabel lblCoordinatorInfo;    private javax.swing.JLabel lblEmailCaption;    private javax.swing.JLabel lblFirstNameCaption;    private javax.swing.JLabel lblLastNameCaption;    private javax.swing.JLabel lblLocationCaption;    private javax.swing.JLabel lblMainTitle;    private javax.swing.JLabel lblMiddleInitialCaption;    private javax.swing.JLabel lblPhoneNumberCaption;    private javax.swing.JLabel lblSearchCaption;    private javax.swing.JLabel lblSearchResults;    private javax.swing.JRadioButton optAlternate;    private javax.swing.JRadioButton optPrimary;    private javax.swing.JRadioButton optSearchBuildingName;    private javax.swing.JRadioButton optSearchBuildingNumber;    private javax.swing.JRadioButton optSearchLastName;    private javax.swing.JPanel pnlMainPanel;    private javax.swing.JSeparator sepTitleSeparator;    private javax.swing.JTable tblSearchResults;    private javax.swing.JTextField txtBuildingName;    private javax.swing.JTextField txtBuildingNumber;    private javax.swing.JTextField txtEmail;    private javax.swing.JTextField txtFirstName;    private javax.swing.JTextField txtLastName;    private javax.swing.JTextField txtLocation;    private javax.swing.JTextField txtMiddleInitial;    private javax.swing.JTextField txtPhoneNumber;    private javax.swing.JTextField txtSearch;    // End of variables declaration    } [Edited by - Glass_Knife on June 17, 2009 5:50:06 PM];  Check out the FAQ for adding source code tags:FAQI went ahead and added the source tags to your above post :)Have you had any luck yet?  I will try creating an applet with you code andrunning it to see if I have the same problems.Regarding all the weird BuildingCoordinatorsJApplet$7.class files, Java creates those for anonymous inner classes.  If you have code like the following:// In class MyClass.jarajButton.addActionListener( new ActionListener() {  public void actionPerformed( ActionEvent e ) {    // TODO  }});this will compile to a something like MyClass$0.class.   ;  Thank your for your input. I now understand what allthe extra class files are and realize they will not affect the issue I am having currently. So, now I am wondering if its a configuration problem with java runtime environment or if its something with my applet source? I have not come across a solution yet. Any help is appreciated.   ;  Here is the error output I get with the console window:Java Plug-in 1.6.0_14Using JRE version 1.6.0_14-b08 Java HotSpot(TM) Client VMUser home directory = C:\Users\kyros----------------------------------------------------c:   clear console windowf:   finalize objects on finalization queueg:   garbage collecth:   display this help messagel:   dump classloader listm:   print memory usageo:   trigger loggingq:   hide consoler:   reload policy configurations:   dump system and deployment propertiest:   dump thread listv:   dump thread stackx:   clear classloader cache0-5: set trace level to <n>----------------------------------------------------java.lang.NoClassDefFoundError: BuildingCoordinatorsJApplet (wrong name: BuildingCoordinators/BuildingCoordinatorsJApplet)at java.lang.ClassLoader.defineClass1(Native Method)at java.lang.ClassLoader.defineClass(Unknown Source)at java.security.SecureClassLoader.defineClass(Unknown Source)at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)at java.lang.ClassLoader.loadClass(Unknown Source)at java.lang.ClassLoader.loadClass(Unknown Source)at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)at java.lang.Thread.run(Unknown Source)Exception: java.lang.NoClassDefFoundError: BuildingCoordinatorsJApplet (wrong name: BuildingCoordinators/BuildingCoordinatorsJApplet)I hope all this will be enough to help me solve the issue.;  Okay, I got it working, but not without some trouble.1.  For some reason, posting Layoutstyle makes the 's' lower case when it should be upper case.  I had to change them back, and I have no idea whatthat's about...2.  The classes are in a package called 'BuildingCoordinators', so make sure that when it is compiled, the classes are in a BuildingCoordinators folderIt should look like this:BuildingCoordinators/BuildingCoordinatorsJApplet$1.classBuildingCoordinators/BuildingCoordinatorsJApplet$2.classBuildingCoordinators/BuildingCoordinatorsJApplet$3.classetc...3.  Make sure that the BuildingCoordinators folder with the class files is in the jar file, or it will not work.  Read up on Java packages if none of this is making sense.  4.  Make sure the jar file is in a folder called Applet, and that you're index.html file in the same folder as the Applet folder:Project/index.htmlProject/Applet/JackieProject.jar5.  The APPLET HTML was not quite right...<applet align="CENTER" name=BuildingCoordinatorsJApplet code="BuildingCoordinators.BuildingCoordinatorsJApplet" codebase="Applet/" archive="JackieProject.jar" width="800" height="500">a) The code value needs the package namecode="BuildingCoordinators.BuildingCoordinatorsJApplet"b) I had to remove the '/' in front of the codebase folder.  It was /Applet/, now it's just Applet/After all that, it worked fine :)Hope that helps,   ;  I would like to thank you for all your help. This will thankfully get my demo up and running. I cannot thank you enough. In the end, it was simply some configuration issues with packages. Lesson learned and noted :)   ;  You're welcome.  I'm glad you were able to get it working.  I remember spending all weekend back in college trying to create a jar file application.  Sometimes there is so much to learn when starting out, it's good to have a place to get some answers.