Ist es möglich die JCombobox schon zum teil zu sehen ohne den Pfeil anzuklicken? Wenn man z.B. die ersten zehn Einträge sehen möchte.
Gruß niesel
Gruß niesel
jComboBox1.setEditable(true);
jComboBox1.setPopupVisible(true);//Fehler
jComboBox1.setMaximumRowCount(4);
Exception in thread "main" java.awt.IllegalComponentStateException: component must be showing on the screen to determine its location
at java.awt.Component.getLocationOnScreen_NoTreeLock(Component.java:1943)
at java.awt.Component.getLocationOnScreen(Component.java:1917)
at javax.swing.JPopupMenu.show(JPopupMenu.java:895)
at javax.swing.plaf.basic.BasicComboPopup.show(BasicComboPopup.java:191)
at javax.swing.plaf.basic.BasicComboBoxUI.setPopupVisible(BasicComboBoxUI.java:861)
at javax.swing.JComboBox.setPopupVisible(JComboBox.java:796)
at guitests.GuiTestGui.<init>(GuiTestGui.java:32)
at guitests.Main.main(Main.java:19)