Searched refs:comboBox (Results 1 - 22 of 22) sorted by relevance

/openjdk7/jdk/test/javax/swing/JComboBox/ShowPopupAfterHidePopupTest/
H A DShowPopupAfterHidePopupTest.java39 private static JComboBox comboBox = null; field in class:ShowPopupAfterHidePopupTest
48 comboBox = new JComboBox(new String[]{"Item1", "Item2", "Item3"});
49 frame.getContentPane().add(comboBox);
60 comboBox.showPopup();
61 comboBox.hidePopup();
62 comboBox.showPopup();
70 popupIsVisible = comboBox.isPopupVisible();
/openjdk7/jdk/src/share/classes/javax/swing/plaf/basic/
H A DBasicComboBoxUI.java65 protected JComboBox comboBox; field in class:BasicComboBoxUI
249 comboBox = (JComboBox)c;
260 if ( comboBox.getRenderer() == null || comboBox.getRenderer() instanceof UIResource ) {
261 comboBox.setRenderer( createRenderer() );
264 if ( comboBox.getEditor() == null || comboBox.getEditor() instanceof UIResource ) {
265 comboBox.setEditor( createEditor() );
271 comboBox.setLayout( createLayoutManager() );
273 comboBox
1627 getNextIndex(JComboBox comboBox, String key) argument
[all...]
H A DBasicComboPopup.java78 protected JComboBox comboBox; field in class:BasicComboPopup
205 comboBox.firePopupMenuWillBecomeVisible();
206 setListSelection(comboBox.getSelectedIndex());
208 show( comboBox, location.x, location.y );
225 comboBox.repaint();
282 comboBox.removePropertyChangeListener( propertyChangeListener );
285 comboBox.removeItemListener( itemListener );
287 uninstallComboBoxModelListeners(comboBox.getModel());
314 // comboBox.unregisterKeyboardAction( KeyStroke.getKeyStroke( KeyEvent.VK_ENTER, 0 ) );
325 comboBox
[all...]
/openjdk7/jdk/test/javax/swing/JComboBox/6337518/
H A Dbug6337518.java43 JComboBox comboBox = new JComboBox();
44 comboBox.setUI(new bug6337518());
/openjdk7/jdk/src/share/classes/javax/swing/plaf/metal/
H A DMetalComboBoxButton.java52 protected JComboBox comboBox; field in class:MetalComboBoxButton
58 public final JComboBox getComboBox() { return comboBox;}
59 public final void setComboBox( JComboBox cb ) { comboBox = cb;}
80 comboBox = cb;
84 setEnabled( comboBox.isEnabled() );
102 setBackground(comboBox.getBackground());
103 setForeground(comboBox.getForeground());
111 boolean leftToRight = MetalUtils.isLeftToRight(comboBox);
156 if ( comboBox.hasFocus() && (!MetalLookAndFeel.usingOcean() ||
157 comboBox
[all...]
H A DMetalComboBoxUI.java116 if (hasFocus && !isPopupVisible(comboBox) &&
169 boolean iconOnly = (comboBox.isEditable() ||
171 JButton button = new MetalComboBoxButton( comboBox,
193 button.setFocusPainted(comboBox.isEditable());
213 button.setIconOnly( comboBox.isEditable() ||
216 comboBox.repaint();
262 if (comboBox.isEditable() && !MetalLookAndFeel.usingOcean()) {
269 Insets insets = comboBox.getInsets();
271 arrowButton.setBounds(MetalUtils.isLeftToRight(comboBox)
272 ? (comboBox
[all...]
/openjdk7/jdk/src/macosx/classes/com/apple/laf/
H A DAquaComboBoxButton.java37 final protected JComboBox comboBox; field in class:AquaComboBoxButton
46 protected AquaComboBoxButton(final AquaComboBoxUI ui, final JComboBox comboBox, final CellRendererPane rendererPane, final JList list) { argument
51 this.comboBox = comboBox;
61 setEnabled(comboBox.isEnabled());
65 return comboBox == null ? true : comboBox.isEnabled();
83 if (!comboBox.isEnabled()) return State.DISABLED;
84 if (!AquaFocusHandler.isActive(comboBox)) return State.INACTIVE;
92 final boolean editable = comboBox
[all...]
H A DAquaComboBoxUI.java71 AquaUtilControlSize.addSizePropertyListener(comboBox);
75 AquaUtilControlSize.removeSizePropertyListener(comboBox);
84 getApplicator().attachAndApplyClientProperties(comboBox);
88 getApplicator().removeFrom(comboBox);
110 final int selectedIndex = comboBox.getSelectedIndex();
129 return new AquaComboBoxRenderer(comboBox);
133 return new AquaComboBoxPopup(comboBox);
137 return new AquaComboBoxButton(this, comboBox, currentValuePane, listBox);
222 triggerSelectionEvent(comboBox, e);
256 setPopupVisible(comboBox, fals
441 triggerSelectionEvent(final JComboBox comboBox, final ActionEvent e) argument
[all...]
H A DAquaComboBoxPopup.java91 final int currentElementCount = comboBox.getModel().getSize();
112 return comboBox.getItemCount() > comboBox.getMaximumRowCount();
116 return shouldScroll() || AquaComboBoxUI.isPopdown(comboBox);
121 final int startItemCount = comboBox.getItemCount();
126 comboBox.firePopupMenuWillBecomeVisible();
127 show(comboBox, popupBounds.x, popupBounds.y);
130 final int afterShowItemCount = comboBox.getItemCount();
141 final Point newLoc = comboBox.getLocationOnScreen();
151 return new JList(comboBox
[all...]
H A DAquaComboBoxRenderer.java36 public AquaComboBoxRenderer(final JComboBox comboBox) { argument
37 super(comboBox);
50 public AquaComboBoxRendererInternal(final JComboBox comboBox) { argument
52 fComboBox = comboBox;
/openjdk7/jdk/src/share/classes/com/sun/java/swing/plaf/motif/
H A DMotifComboBoxUI.java90 return new MotifComboPopup( comboBox );
98 public MotifComboPopup( JComboBox comboBox ) {
99 super( comboBox );
121 if ( comboBox.isEditable() ) {
125 comboBox.add( currentValuePane );
130 comboBox.removeAll();
134 boolean hasFocus = comboBox.hasFocus();
137 if (comboBox.isEnabled()) {
138 g.setColor(comboBox.getBackground());
144 if ( !comboBox
[all...]
/openjdk7/jdk/src/share/classes/com/sun/java/swing/plaf/windows/
H A DWindowsComboBoxUI.java63 JComboBox comboBox = getComboBox(e);
65 if (comboBox == null || comboBoxUI == null) {
68 if (! comboBox.isEditable()) {
80 comboBox.repaint();
98 .getWindowsComboBoxUI().comboBox;
104 JComboBox comboBox = getComboBox(event);
106 if (comboBox != null
107 && comboBox.getUI() instanceof WindowsComboBoxUI) {
108 rv = (WindowsComboBoxUI) comboBox.getUI();
125 JComboBox comboBox
[all...]
/openjdk7/jdk/test/javax/swing/plaf/synth/7158712/
H A Dbug7158712.java51 " <style id=\"comboBox\">" +
54 " <bind style=\"comboBox\" type=\"region\" key=\"ComboBox\"/>" +
57 private static JComboBox<String> comboBox; field in class:bug7158712
72 comboBox = new JComboBox<>(
77 frame.add(comboBox, BorderLayout.NORTH);
90 return comboBox.getLocationOnScreen();
101 BasicComboPopup popup = (BasicComboPopup) comboBox.getAccessibleContext().getAccessibleChild(0);
104 Point comboBoxPoint = comboBox.getLocationOnScreen();
107 comboBoxPoint.y + comboBox.getHeight() - 5 != popupPoint.y) {
109 ", comboBox locatio
[all...]
/openjdk7/jdk/test/javax/swing/JLabel/6596966/
H A Dbug6596966.java43 private static JComboBox comboBox; field in class:bug6596966
52 comboBox = new JComboBox();
56 label.setLabelFor(comboBox);
62 pnContent.add(comboBox);
87 if (!comboBox.isFocusOwner()) {
88 throw new RuntimeException("comboBox isn't focus owner");
/openjdk7/jdk/src/share/classes/javax/swing/plaf/synth/
H A DSynthComboBoxUI.java120 updateStyle(comboBox);
123 private void updateStyle(JComboBox comboBox) { argument
125 SynthContext context = getContext(comboBox, ENABLED);
159 comboBox.addPropertyChangeListener(this);
160 comboBox.addMouseListener(buttonHandler);
161 editorFocusHandler = new EditorFocusHandler(comboBox);
182 SynthContext context = getContext(comboBox, ENABLED);
195 comboBox.removePropertyChangeListener(this);
196 comboBox.removeMouseListener(buttonHandler);
258 SynthComboPopup p = new SynthComboPopup(comboBox);
712 private JComboBox comboBox; field in class:SynthComboBoxUI.EditorFocusHandler
716 EditorFocusHandler(JComboBox comboBox) argument
[all...]
H A DSynthComboPopup.java53 list.setFont( comboBox.getFont() );
54 list.setCellRenderer( comboBox.getRenderer() );
57 int selectedIndex = comboBox.getSelectedIndex();
76 ComboBoxUI ui = comboBox.getUI();
/openjdk7/jdk/src/share/demo/jfc/TableExample/
H A DTableExample4.java150 JComboBox comboBox = new JComboBox();
151 comboBox.addItem("Red");
152 comboBox.addItem("Orange");
153 comboBox.addItem("Yellow");
154 comboBox.addItem("Green");
155 comboBox.addItem("Blue");
156 comboBox.addItem("Indigo");
157 comboBox.addItem("Violet");
161 colorColumn.setCellEditor(new DefaultCellEditor(comboBox));
/openjdk7/jdk/src/share/classes/javax/swing/
H A DDefaultCellEditor.java131 * @param comboBox a <code>JComboBox</code> object
133 public DefaultCellEditor(final JComboBox comboBox) { argument
134 editorComponent = comboBox;
135 comboBox.putClientProperty("JComboBox.isTableCellEditor", Boolean.TRUE);
138 comboBox.setSelectedItem(value);
142 return comboBox.getSelectedItem();
153 if (comboBox.isEditable()) {
155 comboBox.actionPerformed(new ActionEvent(
161 comboBox.addActionListener(delegate);
/openjdk7/jdk/test/javax/swing/JTree/4330357/
H A Dbug4330357.java169 private JComboBox comboBox; field in class:bug4330357.TestEditor
174 comboBox = new JComboBox(new String[]{"one", "two"});
184 return comboBox;
192 return comboBox.getSelectedItem();
/openjdk7/hotspot/agent/src/share/classes/com/sun/java/swing/ui/
H A DCommonUI.java181 JComboBox comboBox = new JComboBox(items);
183 comboBox.addActionListener(listener);
184 comboBox.setEditable(editable);
185 return comboBox;
195 JComboBox comboBox = new JComboBox(items);
197 comboBox.addActionListener(listener);
198 comboBox.setEditable(editable);
199 return comboBox;
/openjdk7/hotspot/src/share/tools/IdealGraphVisualizer/FilterWindow/src/com/sun/hotspot/igv/filterwindow/
H A DFilterTopComponent.java102 private JComboBox comboBox; field in class:FilterTopComponent
133 Object o = comboBox.getSelectedItem();
165 SystemAction.get(RemoveFilterSettingsAction.class).setEnabled(comboBox.getSelectedItem() != this.customFilterSetting);
166 SystemAction.get(SaveFilterSettingsAction.class).setEnabled(comboBox.getSelectedItem() == this.customFilterSetting);
170 comboBox.removeAllItems();
171 comboBox.addItem(customFilterSetting);
173 comboBox.addItem(s);
216 return comboBox.getSelectedItem() != customFilterSetting;
221 Object o = comboBox.getSelectedItem();
256 if (comboBox
[all...]
/openjdk7/jdk/src/share/classes/com/sun/java/swing/plaf/gtk/
H A DGTKFileChooserUI.java556 JComboBox comboBox = directoryComboBox;
557 if (comboBox.getWidth() > target.getWidth()) {
558 comboBox.setBounds(0, comboBox.getY(), target.getWidth(),
559 comboBox.getHeight());

Completed in 71 milliseconds