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
|
|