FileDocCategorySizeDatePackage
OneButton.javaAPI DocExample479Tue Mar 13 15:32:32 GMT 2001None

OneButton

public class OneButton extends JFrame
Create one button, internationalizedly.

Fields Summary
Constructors Summary
public OneButton()

		ResourceBundle rb = ResourceBundle.getBundle("Widgets");
		String label = null;
		try {
			label = rb.getString("exit.label");
		} catch (MissingResourceException e) {
			label="Exit"; // fallback
		}
		this.add(new JButton(label));
	
Methods Summary
public static voidmain(java.lang.String[] args)

		new OneButton().setVisible(true);