[ https://java.net/jira/browse/GLAZEDLISTS-469?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=394553#comment-394553 ] jhuxhorn commented on GLAZEDLISTS-469: -------------------------------------- This can be used to reproduce the problem: {code:java} import ca.odell.glazedlists.EventList; import ca.odell.glazedlists.GlazedLists; import ca.odell.glazedlists.swing.AutoCompleteSupport; import java.util.ArrayList; import java.util.List; import javax.swing.JComboBox; public class AutoCompleteBug extends javax.swing.JDialog { public AutoCompleteBug(java.awt.Frame parent, boolean modal) { super(parent, modal); JComboBox jComboBox1 = new JComboBox(); add(jComboBox1); jComboBox1.setVisible(true); pack(); AutoCompleteSupport<String> support; List<String> list = new ArrayList<>(); list.add("Monkey"); list.add("Moose"); list.add("Mouse"); list.add("Other"); EventList<String> eventList = GlazedLists.eventList(list); support = AutoCompleteSupport.install(jComboBox1, eventList); support.setStrict(false); } public static void main(String args[]) { java.awt.EventQueue.invokeLater(new Runnable() { public void run() { AutoCompleteBug dialog = new AutoCompleteBug(new javax.swing.JFrame(), true); dialog.addWindowListener(new java.awt.event.WindowAdapter() { @Override public void windowClosing(java.awt.event.WindowEvent e) { System.exit(0); } }); dialog.setVisible(true); } }); } } {code} > AutoCompleteSupport: Arrowing down on the popup and pressing enter fails to update combobox > ------------------------------------------------------------------------------------------- > > Key: GLAZEDLISTS-469 > URL: https://java.net/jira/browse/GLAZEDLISTS-469 > Project: glazedlists > Issue Type: Bug > Components: swing > Affects Versions: current > Environment: Operating System: Mac OS X > Platform: Macintosh > Reporter: cbare > Assignee: jessewilson > Fix For: milestone 1 > > > I have a swing app with a JComboBox. I install AutoCompleteSupport using an EventList populated with > "Monkey", "Moose", "Mouse", ... and other entries. I type "mo" into the combobox, with the intention of > selecting "Moose". "Monkey" appears in the text area of the combobox, because that's the first match > for "mo". So far, so good. Then, I press the down arrow to open the popup. "Monkey" is selected. > Pressing down arrow again highlights "Moose". I hit enter, expecting "Moose" to be placed in the text > part of the combobox, but that doesn't happen. It remains "Monkey" > I suspect this is another issue of OS X UI. > I'll try it out on a windows box later. Source code to reproduce the issue is follows. I made a little > screencast to show you what I mean here: http://www.screencast.com/t/0KHdgUDWt, in which I also > talk about GLAZEDLISTS-458. > Thanks for the good work! -- This message was sent by Atlassian JIRA (v6.2.3#6260) |
Free forum by Nabble | Edit this page |