The Artima Developer Community
Sponsored Link

Java Answers Forum
JList and JCheckBox

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
displace

Posts: 6
Nickname: displace
Registered: May, 2003

JList and JCheckBox Posted: Jun 1, 2003 11:30 AM
Reply to this message Reply
Advertisement
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

and how abt JCHeckBox?
thanks.

Topic: Applet not loaded in Windows 2000 Previous Topic   Next Topic Topic: HELP simple problem with chars

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use