Popup « JTextField « Java Swing Q&A





1. How to add a popup menu to a JTextField    stackoverflow.com

Can anybody explain me how to add a popup menu at a JtextField? I managed to add a JPopupMenu:

JPopupMenu popup = new JPopupMenu();
    popup.add("m");
popup.add("n"); 

JTextField textField = new ...

2. How to make a popup menu added to a JtextField to be invisible when the JTextField's focus is lost?    stackoverflow.com

I have added to a JTextField a JPopupMenu. Unfortunatelly, when i change the focus from JTextField, or when i "minimize" the window, the JPopupMenu still is visible. I need to make it ...

3. How to add popup component in JTextField    stackoverflow.com

I want to add component into JTextField as a popup like this. alt text i want to add my component for example JPanel...

4. How to get a JTextField event that started a pop up menu in Java?    stackoverflow.com

I have a JTextField that represents a day, such as "Sunday", when I left mouse click on it, it changes background color, when I right mouse click on it, a pop ...

5. Code Completion popup box for JTextfield    forums.netbeans.org

7. TextFields in Popup not working    coderanch.com

8. textfield with drop down popup    coderanch.com

9. Populating textbox with the selected item from the pop-up window    coderanch.com

Hi I am new to Java, and currently developing the GUI application. In one of my forms I have a search button next to the textbox, which when clicked, brings up the pop up window with the list of items, and the select button. After selecting item from the list, and clicking the select button, the window should close and the ...





10. transfering Up / Down KeyEvents from a JTextField to a Popup autocompleter    forums.oracle.com

Hello, At the moment I'm trying to write an autocompleter for a textfield. This autocompleter is based on a popupmenu, where the user can select some menuitems, which represent various completing options, and then just has to hit enter to confirm. To select the menuitems the user uses up/down arrows. However, I want to keep the focus at the Textfield so ...