/** * Returns the panel that is the user interface. * * @param font the font. * * @return the panel. */ private JPanel createContent(Font font) { final JPanel content = new JPanel(new BorderLayout()); content.setBorder(BorderFactory.createEmptyBorder(4, 4, 4, 4)); if (font == null) { font = new Font("Dialog", 10, Font.PLAIN); } this.fontChooserPanel = new FontChooserPanel(font); content.add(this.fontChooserPanel); final JPanel buttons = createButtonPanel(); buttons.setBorder(BorderFactory.createEmptyBorder(4, 0, 0, 0)); content.add(buttons, BorderLayout.SOUTH); return content; }
/** * Returns the panel that is the user interface. * * @param font the font. * * @return the panel. */ private JPanel createContent(Font font) { final JPanel content = new JPanel(new BorderLayout()); content.setBorder(BorderFactory.createEmptyBorder(4, 4, 4, 4)); if (font == null) { font = new Font("Dialog", 10, Font.PLAIN); } this.fontChooserPanel = new FontChooserPanel(font); content.add(this.fontChooserPanel); final JPanel buttons = createButtonPanel(); buttons.setBorder(BorderFactory.createEmptyBorder(4, 0, 0, 0)); content.add(buttons, BorderLayout.SOUTH); return content; }
/** * Returns the panel that is the user interface. * * @param font the font. * * @return the panel. */ private JPanel createContent(Font font) { final JPanel content = new JPanel(new BorderLayout()); content.setBorder(BorderFactory.createEmptyBorder(4, 4, 4, 4)); if (font == null) { font = new Font("Dialog", 10, Font.PLAIN); } this.fontChooserPanel = new FontChooserPanel(font); content.add(this.fontChooserPanel); final JPanel buttons = createButtonPanel(); buttons.setBorder(BorderFactory.createEmptyBorder(4, 0, 0, 0)); content.add(buttons, BorderLayout.SOUTH); return content; }