[Ejtools-cvs] CVS: applications/deployment/src/main/net/sourceforge/ejtools/deploy AboutDialog.java,
Brought to you by:
letiemble
From: Laurent E. <let...@us...> - 2002-04-21 18:48:28
|
Update of /cvsroot/ejtools/applications/deployment/src/main/net/sourceforge/ejtools/deploy In directory usw-pr-cvs1:/tmp/cvs-serv18979/src/main/net/sourceforge/ejtools/deploy Added Files: AboutDialog.java Log Message: Initial Import --- NEW FILE: AboutDialog.java --- /* * EJTools, the Enterprise Java Tools * * Distributable under LGPL license. * See terms of license at www.gnu.org. */ package net.sourceforge.ejtools.deploy; // Standard Imports import java.awt.BorderLayout; import java.awt.Color; import java.awt.Container; import java.awt.GridLayout; import java.util.ResourceBundle; import javax.swing.ImageIcon; import javax.swing.JLabel; import javax.swing.JPanel; // Other Imports import net.sourceforge.ejtools.awt.action.Command; import net.sourceforge.ejtools.awt.action.help.AboutAction; import net.sourceforge.ejtools.awt.services.AboutService; import net.sourceforge.ejtools.awt.services.FrameService; /** * Description of the Class * * @author letiembl * @created 2 novembre 2001 * @todo Javadoc to complete * @todo I18N to complete */ public class AboutDialog implements AboutService { /** Description of the Field */ private final static ResourceBundle res = ResourceBundle.getBundle("ApplicationResources"); /** Description of the Field */ private JPanel panel = null; /** Constructor for the AboutServiceProvider object */ public AboutDialog() { } /** * Getter for the panel attribute * * @return The value */ public Container getPanel() { if (panel == null) { createPanel(); } return panel; } /** Description of the Method */ private void createPanel() { panel = new JPanel(new BorderLayout()); String display = null; JLabel label = null; // North part panel.add("North", new JLabel(new ImageIcon(getClass().getResource("/images/logo.png")))); // Center part panel.add("Center", new JLabel(res.getString("text.about.application"))); // South part JPanel info = new JPanel(new GridLayout(2, 1)); JLabel java = new JLabel(res.getString("text.about.javaVersion") + " : " + System.getProperty("java.version"), JLabel.CENTER); java.setForeground(Color.black); info.add(java); JLabel vm = new JLabel(res.getString("text.about.virtualMachine") + " : " + System.getProperty("java.vm.name") + ", " + System.getProperty("java.vm.version"), JLabel.CENTER); vm.setForeground(Color.black); info.add(vm); panel.add("South", info); } } |