SWING question... 2006-06-16 - By Sanjeev K.R
Back HI,
Sometimes it would be Tricky
Add ChangeListener to the Checkbox and enable and disable in the overridden method, i think its valueChanged() from where you can get the state of the check box I think this should work.
Hope it helps U
Sanjeev
Vadim Vera <vadim.vera@(protected)> wrote: Hi list:
I know this is not the exactly list to ask for a SWING question, so if someone is using / or used SWING please I've a very common issue. I need to disable a component (a button specifically) and enable it when some parameters arise (a checkbox is selected or many and so on), so if these components are deselected, the button cames disabled too...that's all...very simple, but SWING is a little bit complicated sometimes.
Thanks in advance...
-- Vadim Vera
Telephone: Mobile Phone: E-Mail: vadim.vera@(protected) Web:
| BSD: A psychoactive drug, popular in the 80s, probably developed at UC | Berkeley or thereabouts. Similar in many ways to the prescription-only | medication called "System V", but infinitely more useful. (Or, at least, | more fun). The full chemical name is "Berkeley Standard Distribution"
=========================================================================== To unsubscribe, send email to listserv@(protected) and include in the body of the message "signoff J2EE-INTEREST". For general help, send email to listserv@(protected) and include in the body of the message "help".
-- ---- ---- ---- ---- ---- ----- Sneak preview the all-new Yahoo.com. It's not radically different. Just radically better.
=========================================================================== To unsubscribe, send email to listserv@(protected) and include in the body of the message "signoff J2EE-INTEREST". For general help, send email to listserv@(protected) and include in the body of the message "help".
<div>HI,</div> <div> </div> <div>Sometimes it would be Tricky</div> <div> </div> <div>Add ChangeListener to the Checkbox and enable and disable in the overridden method, i think its valueChanged() from where you can get the state of the check box</div> <div>I think this should work.</div> <div> </div> <div>Hope it helps U</div> <div> </div> <div>Sanjeev< /div> <div><BR><BR><B><I>Vadim Vera <vadim.vera@(protected)></I></B> wrote: </div> <BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">Hi list:<BR><BR>I know this is not the exactly list to ask for a SWING question, so if<BR>someone is using / or used SWING please I've a very common issue. I need to<BR>disable a component (a button specifically) and enable it when some<BR>parameters arise (a checkbox is selected or many and so on), so if these<BR>components are deselected, the button cames disabled too...that's all...very<BR>simple, but SWING is a little bit complicated sometimes.<BR><BR>Thanks in advance...<BR><BR><BR> --<BR>Vadim Vera<BR><BR>Telephone:<BR>Mobile Phone:<BR>E-Mail: vadim.vera@(protected) .com<BR>Web:<BR><BR><BR>| BSD: A psychoactive drug, popular in the 80s, probably developed at UC<BR>| Berkeley or thereabouts. Similar in many ways to the prescription-only<BR>| medication called "System V", but infinitely more useful . (Or, at least,<BR>| more fun). The full chemical name is "Berkeley Standard Distribution"<BR><BR>========================================================== =================<BR>To unsubscribe, send email to listserv@(protected) and include in the body<BR>of the message "signoff J2EE-INTEREST". For general help , send email to<BR>listserv@(protected) and include in the body of the message "help".<BR></BLOCKQUOTE><BR><p> 
<hr size=1>Sneak preview the <a href="http://us.rd.yahoo.com /evt=40762/*http://www.yahoo.com/preview"> all-new Yahoo.com</a>. It's not radically different. Just radically better. =========================================================================== To unsubscribe, send email to listserv@(protected) and include in the body of the message "signoff J2EE-INTEREST". For general help, send email to listserv@(protected) and include in the body of the message "help". <p>
|
|