hi! i would like to know how to deal with the action/itemListener for JList and JCheckBox? i'd code tis: jList.addListSelectionListener(new ListSelectionListener(){ public void valueChanged(ListSelectionEvent e){ jtId.setText(jList.getSelectedValue()); System.out.println("HEllo"); } });
but how ti set the JTextField to the selected value? jtId.setText(jList.getSelectedValue()); gives me an error