/** * Creates a tabbed pane containing an about panel and a system properties panel. * * @return a tabbed pane. */ private JTabbedPane createTabs(final ProjectInfo info) { final JTabbedPane tabs = new JTabbedPane(); final JPanel aboutPanel = createAboutPanel(info); aboutPanel.setBorder(AboutDialog.STANDARD_BORDER); final String aboutTab = this.resources.getString("about-frame.tab.about"); tabs.add(aboutTab, aboutPanel); final JPanel systemPanel = new SystemPropertiesPanel(); systemPanel.setBorder(AboutDialog.STANDARD_BORDER); final String systemTab = this.resources.getString("about-frame.tab.system"); tabs.add(systemTab, systemPanel); return tabs; }
final JPanel licencePanel = createLicencePanel(); licencePanel.setBorder(STANDARD_BORDER); final String licenceTab = this.resources.getString("about-frame.tab.licence");
final ProjectInfo libraries) { setTitle(title); content.setBorder(STANDARD_BORDER); final JTabbedPane tabs = createTabs(libraries); content.add(tabs); setContentPane(content); pack();
/** * Constructs an about frame. * * @param title the frame title. * @param project information about the project. */ public AboutDialog(final String title, final ProjectInfo project) { init(title, project.getName(), "Version " + project.getVersion(), project.getInfo(), project.getLogo(), project.getCopyright(), project.getLicenceText(), project.getContributors(), project); }
/** * Creates a non-modal dialog without a title with the specifed * <code>Frame</code> as its owner. * * @param owner the <code>Frame</code> from which the dialog is displayed. * @param title the title, * @param project the project. */ public AboutDialog(final Frame owner, final String title, final ProjectInfo project) { super(owner); init(title, project.getName(), "Version " + project.getVersion(), project.getInfo(), project.getLogo(), project.getCopyright(), project.getLicenceText(), project.getContributors(), project); }
final ProjectInfo libraries) { setTitle(title); content.setBorder(STANDARD_BORDER); final JTabbedPane tabs = createTabs(libraries); content.add(tabs); setContentPane(content); pack();
/** * Constructs an about frame. * * @param title the frame title. * @param project information about the project. */ public AboutDialog(final String title, final ProjectInfo project) { init(title, project.getName(), "Version " + project.getVersion(), project.getInfo(), project.getLogo(), project.getCopyright(), project.getLicenceText(), project.getContributors(), project); }
/** * Creates a tabbed pane containing an about panel and a system properties * panel. * * @param info project information. * * @return a tabbed pane. */ private JTabbedPane createTabs(final ProjectInfo info) { final JTabbedPane tabs = new JTabbedPane(); final JPanel aboutPanel = createAboutPanel(info); aboutPanel.setBorder(AboutDialog.STANDARD_BORDER); final String aboutTab = this.resources.getString( "about-frame.tab.about"); tabs.add(aboutTab, aboutPanel); final JPanel systemPanel = new SystemPropertiesPanel(); systemPanel.setBorder(AboutDialog.STANDARD_BORDER); final String systemTab = this.resources.getString( "about-frame.tab.system"); tabs.add(systemTab, systemPanel); return tabs; }
final JPanel licencePanel = createLicencePanel(); licencePanel.setBorder(STANDARD_BORDER); final String licenceTab = this.resources.getString(
final ProjectInfo libraries) { setTitle(title); content.setBorder(STANDARD_BORDER); final JTabbedPane tabs = createTabs(libraries); content.add(tabs); setContentPane(content); pack();
/** * Constructs an about frame. * * @param title the frame title. * @param project information about the project. */ public AboutDialog(final String title, final ProjectInfo project) { init(title, project.getName(), "Version " + project.getVersion(), project.getInfo(), project.getLogo(), project.getCopyright(), project.getLicenceText(), project.getContributors(), project); }
/** * Creates a tabbed pane containing an about panel and a system properties * panel. * * @param info project information. * * @return a tabbed pane. */ private JTabbedPane createTabs(final ProjectInfo info) { final JTabbedPane tabs = new JTabbedPane(); final JPanel aboutPanel = createAboutPanel(info); aboutPanel.setBorder(AboutDialog.STANDARD_BORDER); final String aboutTab = this.resources.getString( "about-frame.tab.about"); tabs.add(aboutTab, aboutPanel); final JPanel systemPanel = new SystemPropertiesPanel(); systemPanel.setBorder(AboutDialog.STANDARD_BORDER); final String systemTab = this.resources.getString( "about-frame.tab.system"); tabs.add(systemTab, systemPanel); return tabs; }
final JPanel licencePanel = createLicencePanel(); licencePanel.setBorder(STANDARD_BORDER); final String licenceTab = this.resources.getString(
/** * Creates a non-modal dialog without a title with the specifed * <code>Dialog</code> as its owner. * * @param owner the <code>Dialog</code> from which the dialog is displayed */ public AboutDialog(final Dialog owner, final String title, final ProjectInfo project) { super(owner); init(title, project.getName(), "Version " + project.getVersion(), project.getInfo(), project.getLogo(), project.getCopyright(), project.getLicenceText(), project.getContributors(), project); }
/** * Creates a non-modal dialog without a title with the specifed * <code>Frame</code> as its owner. * * @param owner the <code>Frame</code> from which the dialog is displayed. * @param title the title, * @param project the project. */ public AboutDialog(final Frame owner, final String title, final ProjectInfo project) { super(owner); init(title, project.getName(), "Version " + project.getVersion(), project.getInfo(), project.getLogo(), project.getCopyright(), project.getLicenceText(), project.getContributors(), project); }
/** * Creates a non-modal dialog without a title with the specifed * <code>Dialog</code> as its owner. * * @param owner the <code>Dialog</code> from which the dialog is displayed. * @param title the title. * @param project the project. */ public AboutDialog(final Dialog owner, final String title, final ProjectInfo project) { super(owner); init(title, project.getName(), "Version " + project.getVersion(), project.getInfo(), project.getLogo(), project.getCopyright(), project.getLicenceText(), project.getContributors(), project); }
/** * Creates a non-modal dialog without a title with the specifed * <code>Frame</code> as its owner. * * @param owner the <code>Frame</code> from which the dialog is displayed */ public AboutDialog(final Frame owner, final String title, final ProjectInfo project) { super(owner); init(title, project.getName(), "Version " + project.getVersion(), project.getInfo(), project.getLogo(), project.getCopyright(), project.getLicenceText(), project.getContributors(), project); }
/** * Creates a non-modal dialog without a title with the specifed * <code>Dialog</code> as its owner. * * @param owner the <code>Dialog</code> from which the dialog is displayed. * @param title the title. * @param project the project. */ public AboutDialog(final Dialog owner, final String title, final ProjectInfo project) { super(owner); init(title, project.getName(), "Version " + project.getVersion(), project.getInfo(), project.getLogo(), project.getCopyright(), project.getLicenceText(), project.getContributors(), project); }