public AboutPanel() { setLayout(new BorderLayout()); JPanel pluginPanel = new JPanel(new BorderLayout()); pluginPanel.add(new JScrollPane(new PluginInfoTable())); pluginPanel.setBorder(BorderFactory.createCompoundBorder(BorderFactory.createTitledBorder("Plugin information"), BorderFactory.createEmptyBorder(10, 10, 10, 10))); add(pluginPanel); JPanel logoPanel = new JPanel(new BorderLayout(3, 3)); JLabel logoLabel = new JLabel(Icons.getIcon("logo.banner.gif")); logoPanel.add(logoLabel, BorderLayout.NORTH); BundleContext applicationContext = PluginUtilities.getInstance().getApplicationContext(); Bundle application = applicationContext.getBundle(); Version v = PluginUtilities.getBundleVersion(application); String build = PluginUtilities.getBuildNumber(application); String versionString = "Version " + v.getMajor() + "." + v.getMinor() + "." + v.getMicro() + " (Build " + build + ")"; JLabel label = new JLabel(versionString, JLabel.CENTER); logoPanel.add(label, BorderLayout.SOUTH); logoPanel.setBorder(BorderFactory.createEmptyBorder(5, 5, 20, 5)); add(logoPanel, BorderLayout.NORTH); JLabel copy = new JLabel( "<html><body>Protege is a collaborative development effort between Stanford University and University of Manchester.<br><br>" + "Protege-OWL 4 and Protege-Core Framework Copyright (c) The University of Manchester 2006"); copy.setFont(copy.getFont().deriveFont(10.0f)); copy.setBorder(BorderFactory.createEmptyBorder(20, 10, 10, 10)); add(copy, BorderLayout.SOUTH); }
public AboutPanel() { setLayout(new BorderLayout()); JPanel pluginPanel = new JPanel(new BorderLayout()); pluginPanel.add(new JScrollPane(new PluginInfoTable())); pluginPanel.setBorder(BorderFactory.createCompoundBorder(BorderFactory.createTitledBorder("Plugin information"), BorderFactory.createEmptyBorder(10, 10, 10, 10))); add(pluginPanel); JPanel logoPanel = new JPanel(new BorderLayout(3, 3)); JLabel logoLabel = new JLabel(Icons.getIcon("logo.banner.gif")); logoPanel.add(logoLabel, BorderLayout.NORTH); BundleContext applicationContext = PluginUtilities.getInstance().getApplicationContext(); Bundle application = applicationContext.getBundle(); Version v = PluginUtilities.getBundleVersion(application); String build = PluginUtilities.getBuildNumber(application); String versionString = "Version " + v.getMajor() + "." + v.getMinor() + "." + v.getMicro() + " (Build " + build + ")"; JLabel label = new JLabel(versionString, JLabel.CENTER); logoPanel.add(label, BorderLayout.SOUTH); logoPanel.setBorder(BorderFactory.createEmptyBorder(5, 5, 20, 5)); add(logoPanel, BorderLayout.NORTH); JLabel copy = new JLabel( "<html><body>Protege is a collaborative development effort between Stanford University and University of Manchester.<br><br>" + "Protege-OWL 4 and Protege-Core Framework Copyright (c) The University of Manchester 2006"); copy.setFont(copy.getFont().deriveFont(10.0f)); copy.setBorder(BorderFactory.createEmptyBorder(20, 10, 10, 10)); add(copy, BorderLayout.SOUTH); }
public AboutPanel() { setLayout(new BorderLayout()); BundleContext applicationContext = PluginUtilities.getInstance().getApplicationContext(); Bundle application = applicationContext.getBundle(); Version v = PluginUtilities.getBundleVersion(application);