Code example for JLabel

Methods: getFontsetFont

0
     * @param text The value to set. 
     */ 
    void setInfo(String text)
    { 
        if (StringUtils.isBlank(text)) return;
        info = new JLabel();
        Font f = info.getFont();
        info.setFont(f.deriveFont(Font.ITALIC, f.getSize()-2));
    } 
 
    /** 
     * Sets to <code>true</code> if a value is required for the field, 
     * <code>false</code> otherwise. 
     *  
     * @param required The value to set. 
     */ 
    void setRequired(boolean required)
    {  
        this.required = required;
        if (required) {
Experience pair programming with AI  Get Codota for Java