I have a JApplet program with multiple classes. RegPanel,WorkshopPanel, CnferenceGUI, CnferenceHandler and CnferenceClient. Basically RegPanel and WorkShop panel are added to the CnferenceGUI, which also creates and adds a couple small panels. The CnferenceClient class is just used to initaite the class to run the applet. The CnferenceHandler is used to handle the action events for the JButtons, JTextArea, JCheckBox, etc... Here's my problem;
In the CnferenceGUI class i add action listeners to the buttons/combobox and the program runs just fine. But when I add in the code for the listener on the JCheckBox the entire applet becomes blank. Anyone know why this is?
here is the constructor in the CnferenceGUI class:
public ConferenceGUI()
{
setLayout(new BorderLayout());
titlePanel = new JPanel();
titleLabel = new JLabel("Select Registration Options",JLabel.CENTER);
Font titleFont = new Font("SansSerif", Font.BOLD, 18);
titleLabel.setFont(titleFont);
titlePanel.add(titleLabel);
add(titlePanel, BorderLayout.NORTH);
regPanel = new RegPanel();
add(regPanel, BorderLayout.WEST);
workshopPanel = new WorkshopPanel();
add(workshopPanel, BorderLayout.EAST);
buildButtonPanel();
add(buttonPanel, BorderLayout.SOUTH);
ConferenceHandler handler = new ConferenceHandler(this);
regPanel.regTypeComboBox.addItemListener(handler);
regPanel.regNameTextBox.addFocusListener(handler);
// This is the line that make the entire applet blank if included
regPanel.keynoteCheckBox.addItemListener(handler);
}