Java JTextField upperText(JTextField text)

Here you can find the source of upperText(JTextField text)

Description

upper Text

License

Open Source License

Declaration

public static String upperText(JTextField text) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import javax.swing.JTextField;

public class Main {
    public static String upperText(JTextField text) {
        String str = text.getText().toUpperCase();
        text.setText(str);/*w  ww.j a  v a2s .  com*/
        return str;
    }

    public static String getText(JTextField text) {
        return text.getText();
    }
}

Related

  1. setValue(JTextField f, String value)
  2. showFileOpenDialogAndChangePrefs(String prefName, FileNameExtensionFilter fileNameExtensionFilter, JTextField textField, Class forClass, Component parent)
  3. textAreaChangeListener(JTextField a, final ChangeListener list)
  4. toUpperCase(JTextField field)
  5. triggerTextField(JTextField textField, JCheckBox checkBox)
  6. validateJTextField(JTextField text, Component aThis)