⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 aboutpanel.java

📁 It is all about project scheduling. GanttProject is a tool for creating a project schedule by means
💻 JAVA
字号:
/*************************************************************************** AboutPanel.java ----------------- begin                : 28 juin 2004 copyright            : (C) 2004 by Thomas Alexandre email                : alexthomas(at)ganttproject.org ***************************************************************************//*************************************************************************** *                                                                         * *   This program is free software; you can redistribute it and/or modify  * *   it under the terms of the GNU General Public License as published by  * *   the Free Software Foundation; either version 2 of the License, or     * *   (at your option) any later version.                                   * *                                                                         * ***************************************************************************/package net.sourceforge.ganttproject.gui.about;import java.awt.event.ActionEvent;import java.awt.event.ActionListener;import javax.swing.ImageIcon;import javax.swing.JButton;import javax.swing.JLabel;import javax.swing.JPanel;import net.sourceforge.ganttproject.GanttProject;import net.sourceforge.ganttproject.GanttSplash;import net.sourceforge.ganttproject.gui.options.GeneralOptionPanel;import net.sourceforge.ganttproject.language.GanttLanguage;import net.sourceforge.ganttproject.util.BrowserControl;/** * @author athomas The About panel. */public class AboutPanel extends GeneralOptionPanel {    /** Constructor. */    public AboutPanel(GanttProject parent) {        super(GanttProject.correctLabel(GanttLanguage.getInstance().getText(                "about")), GanttLanguage.getInstance().getText("settingsAbout")                + " " + GanttProject.version, parent);        GanttSplash splash = new GanttSplash();        JLabel jLabelImage = splash.getSplashComponent();        // JPanel imagePanel = new JPanel(new BorderLayout());        // imagePanel.add(jLabelImage, BorderLayout.CENTER);        vb.add(new JPanel());        vb.add(jLabelImage);        vb.add(new JPanel());        JButton bHomePage = new JButton(GanttProject.correctLabel(language                .getText("webPage")), new ImageIcon(getClass().getResource(                "/icons/home_16.gif")));        bHomePage.setToolTipText(GanttProject.getToolTip(language                .getText("goTo")                + " " + "http://ganttproject.org")); // add a simple tool tip        // text :)        bHomePage.addActionListener(new ActionListener() {            public void actionPerformed(ActionEvent e) {                BrowserControl.displayURL("http://ganttproject.org/");            }        });        vb.add(bHomePage);        applyComponentOrientation(language.getComponentOrientation());    }    /** This method check if the value has changed, and assk for commit changes. */    public boolean applyChanges(boolean askForApply) {        // nothing to do :)        return bHasChange = false;    }    /** Initialize the component. */    public void initialize() {        // nothing to do :)    }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -