Dialog « JTextField « Java Swing Q&A





1. Problem to focus JTextField    stackoverflow.com

(Problem occur in Ubuntu only. Works fine in Windows. I don't know in other Linux environments) I have used the approach of the ComponentListener to call focus in JTextField within a dialog, ...

2. Get user-inputed file name from JFileChooser Save dialog box    stackoverflow.com

This answer to this question may seem obvious, but I'm actually struggling with it quite a bit. I've searched through JFileChooser methods in the API, and I've looked at some of ...

3. Returning a JTextField to editing after a warning dialog    stackoverflow.com

In my application I have a JTextField that will only allow the user to fill it with input formatted in a certain way. I have a method that checks if ...

4. JOptionPane dialog with editable text field and list    stackoverflow.com

Is it possible to create a dialog where the user can select values from a list, but also can edit the text? (Something like a dialog with an editable JComboBox.)

5. Focus issues among JTextField and Dialogs    coderanch.com

Hi, there: After upgrading jdk from 1.3 to 1.4, we met following focus issues: Ex. We have 2 text fields, textTest1 and textTest3, and one dialog. textTest1 registered to a key listener so that when 'Esc' key pressed, the dialog popped up, after pressed 'ok' key in that dialog, we want to transfer focus to another text field textTest3 (textTest3.requestFocus() is ...

6. JTextField not updated from dialog box.    coderanch.com

Hi All, I have a panel on which it has a button and a text box,cost.On clicking on the button i will get a dialog box which is having the same text box,cost.it means both the text fields are refering to the same object,JTextField. Now if i try to get the value entered on the text box on the dialog screen ...

7. JFileChooser as save dialog clears text field on change directory    forums.oracle.com

I am trying to implement a basic save dialog using JFileChooser, which initiates with an initial file name, "untitled.txt". However, as soon as the directory is changed by the user, the text field is cleared. I want to ensure that whatever is in the text field when the user changes directories (i.e., untitled.txt may have been changed to something else by ...