logo       


izpack-src/src/lib/com/izforge/izpack/installer IzPanel.java,1.26,1.27: msg#00070

Subject: izpack-src/src/lib/com/izforge/izpack/installer IzPanel.java,1.26,1.27
Update of /cvsroot/izpack/izpack-src/src/lib/com/izforge/izpack/installer
In directory sheep:/tmp/cvs-serv23909

Modified Files:
        IzPanel.java 
Log Message:
Bugfix for missing message in PathInputPanel.

Index: IzPanel.java
===================================================================
RCS file: 
/cvsroot/izpack/izpack-src/src/lib/com/izforge/izpack/installer/IzPanel.java,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -d -r1.26 -r1.27
--- IzPanel.java        11 May 2005 15:47:32 -0000      1.26
+++ IzPanel.java        12 May 2005 10:38:57 -0000      1.27
@@ -266,6 +266,27 @@
     // ------------- Helper for common used components ----- START ---
 
     /**
+     * Creates a label via LabelFactory using iconId, pos and method 
getI18nStringForClass for
+     * resolving the text to be used. If the icon id is null, the label will 
be created also.
+     * 
+     * @param subkey the subkey which should be used for resolving the text
+     * @param alternateClass the short name of the class which should be used 
if no string is
+     * present with the runtime class name
+     * @param iconId id string for the icon
+     * @param pos horizontal alignment
+     * @return the newly created label
+     */
+    public JLabel createLabel(String subkey, String alternateClass, String 
iconId, int pos)
+    {
+        ImageIcon ii = (iconId != null) ? parent.icons.getImageIcon(iconId) : 
null;
+        String msg = getI18nStringForClass(subkey, alternateClass);
+        JLabel label = LabelFactory.create(msg, ii, pos);
+        if (label != null) label.setFont(getControlTextFont());
+        return (label);
+
+    }
+
+    /**
      * Creates a label via LabelFactory with the given ids and the given 
horizontal alignment. If
      * the icon id is null, the label will be created also. The strings are 
the ids for the text in
      * langpack and the icon in icons of the installer frame.
@@ -278,12 +299,11 @@
     public JLabel createLabel(String textId, String iconId, int pos)
     {
         ImageIcon ii = (iconId != null) ? parent.icons.getImageIcon(iconId) : 
null;
-        JLabel label = LabelFactory.create(parent.langpack.getString(textId), 
ii, pos);
+        JLabel label = 
LabelFactory.create(parent.langpack.getString(textId),ii, pos);
         if (label != null) label.setFont(getControlTextFont());
         return (label);
 
     }
-
     /**
      * Creates a multi line label with the language dependent text given by 
the text id. The strings
      * is the id for the text in langpack of the installer frame. The 
horizontal alignment will be


Ruby Jobs
Java Jobs
Jobs in California
more...
what
job title, keywords
where
city, state, zip
jobs by job search
Search:
Java, servers, webhosting, windows, cisco ...
more...
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
encryption.gpg....    ietf.rfc822/199...    freebsd.devel.i...    lang.haskell.li...    mail.squirrelma...    web.zope.plone....    yellowdog.gener...    text.xml.xalan....    recreation.phot...    kde.devel.educa...    hardware.bus.ca...    printing.ghosts...    voip.peering/20...    assembly/2006-0...    org.user-groups...    culture.interne...    network.i2p/200...    boot-loaders.ya...    xfree86.render/...    qnx.openqnx.dev...    jakarta.velocit...    user-groups.pal...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe