Java JTextField Value Get getIntValue(JTextField component)

Here you can find the source of getIntValue(JTextField component)

Description

get Int Value

License

BSD License

Declaration

public static int getIntValue(JTextField component) 

Method Source Code

//package com.java2s;
// LICENSE:      This file is distributed under the BSD license.

import javax.swing.*;

public class Main {
    public static int getIntValue(JTextField component) {
        return Integer.parseInt(component.getText());
    }/* ww w .ja  v  a 2 s .  c  o  m*/
}

Related

  1. getFieldValue(JTextField tf)
  2. getInt(javax.swing.JTextField input)
  3. getInt(JTextField tf)
  4. getInteger(JTextField txt, Integer defaultVal)
  5. getIntegerFromTextField(JTextField tf, int previousValue)
  6. getLabelText(JTextField textField)
  7. getText(JTextField text)
  8. hasValue(JTextField... fields)
  9. largeThan(javax.swing.JTextField input, int x, Vector errMsgList, String errMsg)