Top "Jtextfield" questions

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

Decorating a JTextField with an image and hint

I'm trying to create some nicer looking JTextFields with an image and a hint. To do this I made a …

java swing user-interface decorator jtextfield
setBorder on JTextField does not work ? or does it?

The code is like this: JTextField txt = new JTextField(); txt.setBorder(BorderFactory.createMatteBorder(2,2,2,2,Color.red)); However the text field is …

java swing jtextfield
Example text in JTextField

I am looking for a way to put example text into a swing JTextField and have it grayed out. The …

java swing jtextfield
Java: link JSlider and JTextfield for float value

what is the best and easiest way to link a JSlider and a JTextField so that if one changes, the …

java swing jtextfield jslider
Not able to add JTextField to JFrame

I am not able to add JTextField to JFrame. My JFrame contains a JLabel and a JTextField . First, i have …

java swing jframe jtextfield layout-manager
how to add document Listener to the JTextFields inside a panel?

I have a class which extends JPanel, inside this panel i have added a lot of textField. I want to …

java swing jtextfield documentlistener
JTextField displayed as slit when using FlowLayout...please explain

Can someone please explain to me, why every time I use the FlowLayout Layout manager my textfields are displayed as …

java swing jtextfield flowlayout
How to make a text field for searching(with tips like a google search)

I want to make a window application for PC using java swing. I would like to make a text field …

java swing user-interface jtextfield
Simultaneously update text area while typing in text field

I want to update my text area along with typing in the text field but i get a delay of 1 …

java swing jtextfield jtextarea
JTextField limiting character amount input and accepting numeric only

here's the code that i have on how to limit the character input length class JTextFieldLimit extends PlainDocument { private int …

java swing jtextfield documentfilter