hi,
I get above exception for the following code.
public void actionPerformed(ActionEvent e)
{
try
{
JComboBox Oone =(JComboBox)e.getSource();
String item = (String) Oone.getSelectedItem();
//lbl.setText(item);
System.out.println("selected item is:"+item);
String command = e.getActionCommand();
if(command.equals("Cancel"))
{
System.exit(0);
}
if(command.equals("Next"))
{
// frame.remove(tab);
check chk = new check(item);
//frame.setContentPane(tst1);
frame.setLocation(250,150);
frame.setSize(500,200);
frame.setVisible(true);
}
}catch(Exception e1)
{
System.out.println(e1);
}
}
will you please tell me what is wrong here.
Thanks in advance.