TristateCheckBox is not painting mixed icon on clicking

This is the forum for JIDE Common Layer which is open sourced at https://github.com/jidesoft/jide-oss. Please note, JIDE technical support doesn't monitor this forum as often as other forums. Please consider subscribe for technical support for JIDE Common Layer so that you can use customer only forum to get a timely response.

Moderator: JIDE Support

Forum rules
Community driven forum for open source JIDE Common Layer. JIDE technical support doesn't monitor this forum as often as other forums. If you only use JIDE Common Layer, please consider subscribing for technical support for JIDE Common Layer so that you can use customer only forum to get a timely response.

TristateCheckBox is not painting mixed icon on clicking

Postby Wladimir82 » Wed Sep 28, 2011 4:07 am

If the initial state of the TristateCheckBox ist not mixed. The mixed state icon is not painted when cycling through by clicking on it.
It works only if the state is set by code.

As workaround I had to listen for the state by addActionListener and set the current state back into the TristateCheckBox by code.
Code: Select all
        tristate = new TristateCheckBox("Tristate");
        tristate.addActionListener(new ActionListener()
        {
            @Override
            public void actionPerformed(ActionEvent e)
            {
                tristate.setState(tristate.getState());
            }
        });
        tristate.setState(TristateCheckBox.STATE_UNSELECTED);


I suppose this behaviour is a bug.
Tested in 3.1.1 and 3.2.2 with Java 1.6_27 on Windows7 64bit

TristateCheckBoxMain.java
Example with workaround
(1.58 KiB) Downloaded 977 times
Wladimir82
 
Posts: 2
Joined: Fri Sep 23, 2011 12:19 am

Re: TristateCheckBox is not painting mixed icon on clicking

Postby JIDE Support » Wed Sep 28, 2011 8:35 am

Thanks for the test case and detailed bug report. Will fix it in next regular release.

Thanks,
JIDE Software Technical Support Team
JIDE Support
Site Admin
 
Posts: 37219
Joined: Sun Sep 14, 2003 10:49 am

Re: TristateCheckBox is not painting mixed icon on clicking

Postby JIDE Support » Thu Sep 29, 2011 9:46 pm

Just so you know, this is fixed in 3.2.3 just released.

Thanks,
JIDE Software Technical Support Team
JIDE Support
Site Admin
 
Posts: 37219
Joined: Sun Sep 14, 2003 10:49 am

Re: TristateCheckBox is not painting mixed icon on clicking

Postby Wladimir82 » Fri Sep 30, 2011 7:57 am

nice, it works.
Thank you
Wladimir82
 
Posts: 2
Joined: Fri Sep 23, 2011 12:19 am


Return to JIDE Common Layer Open Source Project Discussion (Community Driven)

Who is online

Users browsing this forum: Google [Bot] and 22 guests

cron