Java JTextField ponerMayuscula(KeyEvent e, JTextField textField)

Here you can find the source of ponerMayuscula(KeyEvent e, JTextField textField)

Description

poner Mayuscula

License

Open Source License

Declaration

public static void ponerMayuscula(KeyEvent e, JTextField textField) 

Method Source Code

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

import javax.swing.*;

import java.awt.event.KeyEvent;

public class Main {
    public static void ponerMayuscula(KeyEvent e, JTextField textField) {
        char keyChar = e.getKeyChar();
        if (Character.isLetter(keyChar))
            textField.setText(textField.getText().trim().toUpperCase());
    }//from w w  w. j  a  v a2 s . co m
}

Related

  1. IsTextFieldEmpty(javax.swing.JTextField tf)
  2. isTextFieldModified(JTextField textField, String originalValue)
  3. newIntegerValue(JTextField text, int oldValue)
  4. onTextFieldChange(JTextField field, final Runnable task)
  5. parseTextFieldInteger(JTextField field)
  6. quickButtonFlip(JTextField t, JTextField a, JTextField b)
  7. readBufferedImage(JTextField out)
  8. secureTextDeletionFromTextField(JTextField textField, int length)
  9. setEnabled(JTextField textField, boolean b)