public final class ResourceUtils
extends java.lang.Object
Example use:
 JLabel lblUsername = new JLabel();
 JTextField tfUsername = new JTextField();
 ResourceUtils.resLabel( lblUserName, tfUserName,
                         IdeArb.getString ( IdeArb.USERNAME ) );
 JButton b = new JButton();
 ResourceUtils.resButton( b, IdeArb.getString( IdeArb.SOME_STRING ) );
 
| Modifier and Type | Method and Description | 
|---|---|
static void | 
resButton(javax.swing.AbstractButton button, java.lang.String labelText)
Sets the resources on a subclass of  
AbstractButton. | 
static void | 
resLabel(javax.swing.JLabel label, java.awt.Component labelFor, java.lang.String labelText)
Sets the resources on a  
JLabel. | 
static void | 
resSpinner(javax.swing.JLabel label, javax.swing.JSpinner labelFor, java.lang.String labelText)
Sets the resources on a  
JSpinner. | 
public static void resLabel(javax.swing.JLabel label,
            java.awt.Component labelFor,
            java.lang.String labelText)
JLabel. It sets the text, mnemonic, and labelFor property.label - The Label on which to set the propertieslabelFor - the Component to set with the labelFor property on the label.labelText - The text label to set on the labelJLabel.setText(String), JLabel.setLabelFor(Component), JLabel.setDisplayedMnemonic(int)
public static void resSpinner(javax.swing.JLabel label,
              javax.swing.JSpinner labelFor,
              java.lang.String labelText)
JSpinner. It sets the text, mnemonic, and labelFor property.label - The Label on which to set the propertieslabelFor - the JSpinner to set with the labelFor property on the label.labelText - The text label to set on the labelJLabel.setText(String), JLabel#setLabelFor(JSpinner), JLabel.setDisplayedMnemonic(int)
public static void resButton(javax.swing.AbstractButton button,
             java.lang.String labelText)
AbstractButton. The common classes are JRadioButton, JButton, and JCheckBox
This method sets the text and mnemonic.
button - The button on which to set the text and mnemonoiclabelText - the text which contains the displayed text and mnemonicAbstractButton.setText(String), AbstractButton.setMnemonic(int)