protected JLabel createAndConfigureCaption(final JXTitledPanel titledPanel) { JLabel caption = new JLabel(titledPanel.getTitle()){ //#501 @Override public void updateUI(){ super.updateUI(); setForeground(titledPanel.getTitleForeground()); setFont(titledPanel.getTitleFont()); } }; caption.setFont(titledPanel.getTitleFont()); caption.setForeground(titledPanel.getTitleForeground()); return caption; }
/** * Sets the title for this title panel. * * @param title * the title to display */ public void setTitle(String title) { String oldTitle = this.title; this.title = (title == null ? "" : title); // JW: fix swingx #9 - missing/incorrect notification // let standard notification handle // NOTE - "getting" the new property in the fire method is // intentional: there's no way of missing any transformations // on the parameter to set (like above: setting a // value depending on whether the input is null). firePropertyChange("title", oldTitle, getTitle()); }
protected JLabel createAndConfigureCaption(final JXTitledPanel titledPanel) { JLabel caption = new JLabel(titledPanel.getTitle()){ //#501 @Override public void updateUI(){ super.updateUI(); setForeground(titledPanel.getTitleForeground()); setFont(titledPanel.getTitleFont()); } }; caption.setFont(titledPanel.getTitleFont()); caption.setForeground(titledPanel.getTitleForeground()); return caption; }
/** * Sets the title for this title panel. * * @param title * the title to display */ public void setTitle(String title) { String oldTitle = this.title; this.title = (title == null ? "" : title); // JW: fix swingx #9 - missing/incorrect notification // let standard notification handle // NOTE - "getting" the new property in the fire method is // intentional: there's no way of missing any transformations // on the parameter to set (like above: setting a // value depending on whether the input is null). firePropertyChange("title", oldTitle, getTitle()); }
protected JLabel createAndConfigureCaption(final JXTitledPanel titledPanel) { JLabel caption = new JLabel(titledPanel.getTitle()){ //#501 @Override public void updateUI(){ super.updateUI(); setForeground(titledPanel.getTitleForeground()); setFont(titledPanel.getTitleFont()); } }; caption.setFont(titledPanel.getTitleFont()); caption.setForeground(titledPanel.getTitleForeground()); return caption; }
/** * Sets the title for this title panel. * * @param title * the title to display */ public void setTitle(String title) { String oldTitle = this.title; this.title = (title == null ? "" : title); // JW: fix swingx #9 - missing/incorrect notification // let standard notification handle // NOTE - "getting" the new property in the fire method is // intentional: there's no way of missing any transformations // on the parameter to set (like above: setting a // value depending on whether the input is null). firePropertyChange("title", oldTitle, getTitle()); }
protected JLabel createAndConfigureCaption(final JXTitledPanel titledPanel) { JLabel caption = new JLabel(titledPanel.getTitle()){ //#501 @Override public void updateUI(){ super.updateUI(); setForeground(titledPanel.getTitleForeground()); setFont(titledPanel.getTitleFont()); } }; caption.setFont(titledPanel.getTitleFont()); caption.setForeground(titledPanel.getTitleForeground()); return caption; }
/** * Sets the title for this title panel. * * @param title * the title to display */ public void setTitle(String title) { String oldTitle = this.title; this.title = (title == null ? "" : title); // JW: fix swingx #9 - missing/incorrect notification // let standard notification handle // NOTE - "getting" the new property in the fire method is // intentional: there's no way of missing any transformations // on the parameter to set (like above: setting a // value depending on whether the input is null). firePropertyChange("title", oldTitle, getTitle()); }
protected JLabel createAndConfigureCaption(final JXTitledPanel titledPanel) { JLabel caption = new JLabel(titledPanel.getTitle()){ //#501 @Override public void updateUI(){ super.updateUI(); setForeground(titledPanel.getTitleForeground()); setFont(titledPanel.getTitleFont()); } }; caption.setFont(titledPanel.getTitleFont()); caption.setForeground(titledPanel.getTitleForeground()); return caption; }
/** * Sets the title for this title panel. * * @param title * the title to display */ public void setTitle(String title) { String oldTitle = this.title; this.title = (title == null ? "" : title); // JW: fix swingx #9 - missing/incorrect notification // let standard notification handle // NOTE - "getting" the new property in the fire method is // intentional: there's no way of missing any transformations // on the parameter to set (like above: setting a // value depending on whether the input is null). firePropertyChange("title", oldTitle, getTitle()); }