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 JTextField();
textField.add(popup);
.....
But when i roll the mouse over "popup", nothing is happening (i need to select an item from popup).