Top "Jtextfield" questions

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

JTextField : How to set text on the left of JTextField when text too long

I have a long String that I want to display in a JTextField. If the String is too long, it …

java swing jtextfield
HTML in JTextArea of JEditorPane, JTextPane

Right I already worked out that JTextArea or JTextField don't support HTML. I want to add text to a "screen" …

java swing jtextfield jtextarea jeditorpane
Java first GUI, two classes

I'm trying to program my first GUI-class in Java, using the Window Builder. Ok, the GUI is ready but has …

java swing user-interface jtextfield jcheckbox
Make a program automatically add text fields in java

Maybe there is a similar question to this, but I couldn't find a one. Id like my program ( awt or …

java swing awt jtextfield
Form validation for JTextfield in Java?

Is there an easy way to validate a group of JTextFields in Java. I am currently using sqlite manager, neatbeans …

java swing validation jtextfield
How to add actionlistener to textfield in Java

so this is the concept: Simply, there's a textbox with "Name" as the value, and I wanted that if I …

java swing actionlistener jtextfield bluej
Only allowing numbers and a symbol (-) to be typed into a JTextField

I'm trying to create a math quiz and I only want the user to be able to enter numbers whether …

java swing jframe jtextfield documentfilter
Common method for the JTextFields to accept only numbers

I limit my JTextFields to accept only numbers. I was using following code for this. // my textboxes t1=new JTextField(10); …

java swing jtextfield keylistener documentfilter
How can I compare text field and password field to String values?

This is a code for a login form where i used JDBC connection the code has no error but when …

java mysql jdbc jtextfield jpasswordfield
java swing design to create a textfield

I want to create a jtext field with a definite size, but I would like it to expand like a …

java swing jtextfield jtextarea preferredsize