Results 1 to 2 of 2

Thread: The JCheckBox of BoundCheckBox isn't been selected when it's model is TRUE

  1. #1
    Join Date
    Mar 2005
    Location
    Brazil
    Posts
    40

    Default The JCheckBox of BoundCheckBox isn't been selected when it's model is TRUE

    Hi,

    I'm here again

    After upgrading to 0.2.0 the Binding created via SwingBindingFactory.createBoundCheckBox(...) is not showing the selected state when it's value is true. Internaly the ToogleButtonModel is holding the state properly, only the JComboBox is not been selected.
    It's a JIRA issue or I'm doing something wrong?

    Follow is my code:
    Code:
    public class ItineraryStretchTimeForm extends AbstractForm {
    
        private JCheckBox createBoundedCheckBox(String property) {
            SwingBindingFactory factory = (SwingBindingFactory) getBindingFactory();
    
            JCheckBox checkBox = (JCheckBox) factory.createBoundCheckBox("monday")
                .getControl();
    
            try {
                checkBox.setText(com.wplex.framework.client.util.MessageUtility
                    .getSpringMessage(property));
            }
            catch (ConfigurationError e) {
                // TODO Do Nothing!
            }
            return checkBox;
        }
    }
    Code:
    public class ExtendedItineraryStretchTimeVO extends ItineraryStretchTimeVO
        implements IExtendedVO {
        private Boolean monday = Boolean.TRUE; //forced for test
    
        public Boolean getMonday() {
            return this.monday;
        }
    
        public void setMonday(Boolean monday) {
            this.monday = monday;
        }
    }

  2. #2
    Join Date
    Apr 2006
    Location
    Germany, Berlin
    Posts
    61

    Default

    Thanks for reporting, I've fixed that.
    ___
    Mathias

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •