/** * Sets the font. * * @param font the font. */ public void setDisplayFont(final Font font) { this.displayFont = font; setText(fontToString(this.displayFont)); }
/** * Standard constructor - builds a FontDescriptionField initialised with * the specified font. * * @param font the font. */ public FontDisplayField(final Font font) { super(""); setDisplayFont(font); setEnabled(false); }
this.fontfield = new FontDisplayField(this.titleFont); this.selectFontButton = new JButton( localizationResources.getString("Select...")
this.labelFontField = new FontDisplayField(this.labelFont); interior.add(this.labelFontField); JButton b = new JButton(localizationResources.getString("Select...")); new JLabel(localizationResources.getString("Tick_label_font")) ); this.tickLabelFontField = new FontDisplayField(this.tickLabelFont); ticks.add(this.tickLabelFontField); b = new JButton(localizationResources.getString("Select..."));
/** * Standard constructor - builds a FontDescriptionField initialised with * the specified font. * * @param font the font. */ public FontDisplayField(final Font font) { super(""); setDisplayFont(font); setEnabled(false); }
/** * Sets the font. * * @param font the font. */ public void setDisplayFont(final Font font) { this.displayFont = font; setText(fontToString(this.displayFont)); }
/** * Standard constructor - builds a FontDescriptionField initialised with the specified font. * * @param font the font. */ public FontDisplayField(final Font font) { super(""); setDisplayFont(font); setEnabled(false); }
/** * Sets the font. * * @param font the font. */ public void setDisplayFont(final Font font) { this.displayFont = font; setText(fontToString(this.displayFont)); }