Top "Jtextfield" questions

JTextField is a Java Swing component that allows the editing of a single line of text.

How to add text on jprogressbar?

I am using a jprogressbar to indicate the availability status. i want to display a text of 40%[assumption] inside the …

java swing desktop jtextfield jprogressbar
How do I align text within a JTextField?

I have a JTextField with rather big bounds, the text however does not behave like I want it to. _________________ | | | | |text | | | |_________________| …

java swing alignment jtextfield
How to display faint gray "ghost text" in a JTextField?

I don't know if I got the right name for it, but I'm looking to see if there is a …

java swing jtextfield
Java Swing rounded border for Jtextfield

When I do : LineBorder lineBorder =new LineBorder(Color.white, 8, true); jTextField2.setBorder(lineBorder ); I get this result like: How can …

java swing jtextfield rounded-corners
JOptionPane with username and password input

I have my own Dialog pop up with two textfields, two JLabel and a "ok" JButton. The pop up is …

java jpanel jbutton jtextfield joptionpane
Adding a password field - GUI

I have a JTextField. The same JTextField will be used to get both name and password of the user. So …

java swing jtextfield jpasswordfield
How can I add padding to a jtextfield

How can I add some padding to a jtextfield? I've tried tf.setMargin(new Insets(5,5,5,5)); which doesn't have any effect.

java swing user-interface padding jtextfield
Limiting Length of Input in JTextField is not working

I am trying to limit the max length of character a user can input in a textfield but It seems …

java swing user-interface document jtextfield
What "cscript //NoLogo" stands for?

This is a java program code that runs the Notepad program and pastes a specific text stored in this program …

java file jtextfield filewriter notepad
How to get the input from a JFrame form?

I am trying to get the input that I submit in a JFrame form and store it in an arraylist. …

java swing jframe jtextfield springlayout