package com.mindprod.whaz;
import java.util.Locale;
import java.util.ResourceBundle;
import javax.swing.JButton;
import javax.swing.JLabel;
public class Bundle
{
/**
* test harness
*
* @param args not used
*/
public static void main ( String[] args )
{
Locale currentLocale = Locale.getDefault();
out.println( currentLocale );
ResourceBundle myResources =
ResourceBundle.getBundle( "MyResources", currentLocale );
JButton okButton = new JButton( myResources.getString( "OkButtonLabel" ));
JLabel hoursLabel = new JLabel( myResources.getString( "hours" ));
out.println( okButton.getText() );
out.println( hoursLabel.getText() );
}
}