private JPanel createContent([In] Font obj0) { JPanel.__\u003Cclinit\u003E(); JPanel jpanel = new JPanel((LayoutManager) new BorderLayout()); ((JComponent) jpanel).setBorder(BorderFactory.createEmptyBorder(4, 4, 4, 4)); if (obj0 == null) obj0 = new Font("Dialog", 10, 0); this.fontChooserPanel = new FontChooserPanel(obj0); ((Container) jpanel).add((Component) this.fontChooserPanel); JPanel buttonPanel = this.createButtonPanel(); ((JComponent) buttonPanel).setBorder(BorderFactory.createEmptyBorder(4, 0, 0, 0)); ((Container) jpanel).add((Component) buttonPanel, (object) "South"); return jpanel; }
public virtual void attemptFontSelection() { FontChooserPanel.__\u003Cclinit\u003E(); FontChooserPanel fontChooserPanel = new FontChooserPanel(this.titleFont); if (JOptionPane.showConfirmDialog((Component) this, (object) fontChooserPanel, DefaultTitleEditor.localizationResources.getString("Font_Selection"), 2, -1) != 0) return; this.titleFont = fontChooserPanel.getSelectedFont(); ((JTextComponent) this.fontfield).setText(new StringBuffer().append(this.titleFont.getFontName()).append(" ").append(this.titleFont.getSize()).toString()); }