Announcement Announcement Module
Collapse
No announcement yet.
The JCheckBox of BoundCheckBox isn't been selected when it's model is TRUE Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    Thanks for reporting, I've fixed that.

    Comment

    Working...
    X