Code example for JLabel

Methods: getText

0
                property.set( textComponent.getText() );
            } 
            else 
            { 
                JLabel labelComponent = (JLabel) component;
                property.set( labelComponent.getText() );
            } 
        } 
 
        @Override 
        public void fromPropertyToSwing( JComponent component, Property<?> property )
        { 
            String value;
            if( property == null ) 
            { 
                value = "";
            } 
            else 
            { 
                value = (String) property.get();