Article View: borland.public.jbuilder.java.swing
Article #9763JCheckbox setDisabledSelectedIcon doesn't seems to work !!
From: Nadia AKROUR
Date: Fri, 21 Jan 2000 00:00
Date: Fri, 21 Jan 2000 00:00
23 lines
1184 bytes
1184 bytes
Hi, I have a problem with checkboxes. I would like to have a 3 possibles states checkbox : . not selected . selected . disabled and not selected . disabled and selected So i have an checkboxInit method which do that : JCheckBox cc = new JCheckBox(ICON_unselect); cc.setEnabled(bEnabled); cc.setSelectedIcon(m_app.getPPicon(JSAD.ICON_select)); cc.setDisabledSelectedIcon(m_app.getPPicon(JSAD.ICON_seldisabled)); cc.setDisabledIcon(m_app.getPPicon(JSAD.ICON_unseldisabled)); The result is that my checkbox is never disabled and selected at the same time. What am i doing wrong ?? Any help would be very appreciated. -- Nadia.
Technical Details
Message-ID:
<38888EB2.FA005ED3@spring.fr>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,8323c5bc50e462ba,start X-Google-Attributes: gid111d45,public From: Nadia AKROUR <nakrour@spring.fr> Subject: JCheckbox setDisabledSelectedIcon doesn't seems to work !! Date: 2000/01/21 Message-ID: <38888EB2.FA005ED3@spring.fr> X-Deja-AN: 575756055 Content-Transfer-Encoding: 7bit Organization: SPRING TECHNOLOGIES X-Accept-Language: fr-FR,en Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 Newsgroups: borland.public.jbuilder.java.swing