JCheckbox

ok this is hard to explain,but i ll try

in my program the user has to find out which checkboxes r clicked for a little complicated purposes.

umm i looked at all the checkbox.get......... methods can't figure out which one is used?

public Boolean getCbmemaddress(){

return this.cbmemaddress.get..................;///// what should b here?

}

//this is in another class

if(memPanel.getCbmemaddress()!=null){

column[count][0] ="M";

column[count][1] ="address";

}

[881 byte] By [anya_aaa] at [2007-11-27 3:52:23]
# 1
cbmemaddress is a checkbox variable name
anya_aaa at 2007-7-12 8:56:26 > top of Java-index,Java Essentials,Java Programming...
# 2
Are you asking how to tell if a JCheckBox is selected (checked)? Use the method[url= http://java.sun.com/javase/6/docs/api/javax/swing/AbstractButton.html#isSelected()]isSelected[/url]
DrLaszloJamfa at 2007-7-12 8:56:26 > top of Java-index,Java Essentials,Java Programming...