[Ejtools-cvs] CVS: applications/jmx.browser/src/main/net/sourceforge/ejtools/jmxbrowser AboutDialog.
Brought to you by:
letiemble
From: Laurent E. <let...@us...> - 2002-04-30 21:10:55
|
Update of /cvsroot/ejtools/applications/jmx.browser/src/main/net/sourceforge/ejtools/jmxbrowser In directory usw-pr-cvs1:/tmp/cvs-serv5101/applications/jmx.browser/src/main/net/sourceforge/ejtools/jmxbrowser Modified Files: AboutDialog.java Log Message: Add getTitle support for I18N Pretty print source code Index: AboutDialog.java =================================================================== RCS file: /cvsroot/ejtools/applications/jmx.browser/src/main/net/sourceforge/ejtools/jmxbrowser/AboutDialog.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** AboutDialog.java 25 Apr 2002 20:24:47 -0000 1.2 --- AboutDialog.java 30 Apr 2002 21:10:51 -0000 1.3 *************** *** 11,32 **** import java.awt.Container; import java.awt.GridLayout; ! import java.beans.beancontext.BeanContextServiceProvider; ! import java.beans.beancontext.BeanContextServices; ! import java.beans.beancontext.BeanContextServicesSupport; ! import java.beans.beancontext.BeanContextSupport; ! import java.util.Iterator; ! import java.util.Vector; import javax.swing.ImageIcon; - import javax.swing.JFrame; import javax.swing.JLabel; - import javax.swing.JOptionPane; import javax.swing.JPanel; - 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; - - import org.apache.log4j.Category; /** --- 11,21 ---- import java.awt.Container; import java.awt.GridLayout; ! import java.util.ResourceBundle; ! import javax.swing.ImageIcon; import javax.swing.JLabel; import javax.swing.JPanel; import net.sourceforge.ejtools.awt.services.AboutService; /** *************** *** 39,43 **** { /** Description of the Field */ ! private static Category cat = Category.getInstance(AboutDialog.class.getName()); /** Description of the Field */ private JPanel panel = null; --- 28,32 ---- { /** Description of the Field */ ! private final static ResourceBundle res = ResourceBundle.getBundle("ApplicationResources"); /** Description of the Field */ private JPanel panel = null; *************** *** 62,65 **** --- 51,61 ---- } return panel; + } + + + /** Description of the Method */ + public String getTitle() + { + return res.getString("title.about.dialog"); } |