No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
hi, I get above exception for the following code. [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); } … |