Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

ChangeListener on JCheckBox

843806Jul 28 2008 — edited Jul 29 2008
I am trying to enable a JTextArea when I select a JCheckBox. The if the change leaves the box selected, then a warning should pop up and the area should become editable. And if the box is deselected, then the area should just be un-editable.

So when I first select the box, the warning dialog pops up and I have to click 'OK' a few times for it to go away. After that, each time I rollover the box, the warning dialog pops up again. My first guess was that some property of the JCheckBox was changing when I rolled over it, but I have another check box elsewhere in the code that implements ChangeListener and works perfectly fine.

Any ideas?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 26 2008
Added on Jul 28 2008
5 comments
108 views