Even easier (and this is for anyone contributing code to JMeter):
Just use the static method: JMeterUtils.getResString(String resourceName)
-Mike
> -----Original Message-----
> From: Takashi Okamoto [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, September 05, 2001 6:16 PM
> To: [EMAIL PROTECTED]
> Subject: Re: cvs commit: jakarta-jmeter/src/org/apache/jmeter/util
> SSLManager.java
>
>
> At 5 Sep 2001 12:21:46 -0000,
> [EMAIL PROTECTED] wrote:
> > this.defaultpw =
> JOptionPane.showInputDialog(GuiPackage.getInstance().getMainFrame(),
> >
> "KeyStore Password",
> >
> "Input Password",
> >
> JOptionPane.QUESTION_MESSAGE);
> >
> JMeterUtils.getJMeterProperties().setProperty("javax.net.ssl.k
> eyStorePassword", this.defaultpw);
> > this.defaultAlias =
> >
> JOptionPane.showInputDialog(GuiPackage.getInstance().getMainFrame(),
> >
> "Please type your prefered alias",
> >
> "Client Alias",
> >
> JOptionPane.QUESTION_MESSAGE);
>
> If you use java.util.ResourceBundle and split messages to
> org/apache/jmeter/resources/message.properties, it would help
> internationalization and localization.
>
>
> ex.
>
> ResourceBundle rb =
> ResourceBundle.getBundle("org.apache.jmeter.resources.messages");
>
> ...
>
> "Please type your prefered alias"
> -> rb.getString("type_alias");
>
> [org/apache/jmeter/resources/messages.properties]
> type_alias=Please type your prefered alias
>
> regards.
> ----
> Takashi Okamoto
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]