Lines Matching defs:comboBox
37 final protected JComboBox comboBox;
46 protected AquaComboBoxButton(final AquaComboBoxUI ui, final JComboBox comboBox, final CellRendererPane rendererPane, final JList list) {
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.isEditable();
99 if (comboBox.isOpaque()) {
104 final Size size = AquaUtilControlSize.getUserSizeFrom(comboBox);
112 if (AquaComboBoxUI.isTableCellEditor(comboBox)) {
134 boolean hasFocus = comboBox.hasFocus();
139 hasFocus |= comboBox.getEditor().getEditorComponent().hasFocus();
152 painter.paint(g, comboBox, left + 2, top - 1, width - 4, height);
154 painter.paint(g, comboBox, left, top, width, height);
158 if (!editable && comboBox != null) {
164 final ListCellRenderer renderer = comboBox.getRenderer();
167 final Component c = renderer.getListCellRendererComponent(list, comboBox.getSelectedItem(), -1, false, false);
170 if (!editable && !AquaComboBoxUI.isTableCellEditor(comboBox)) {
187 c.setForeground(comboBox.getForeground());
188 } else if (!comboBox.isEnabled()) {
194 c.setForeground(comboBox.getForeground());
195 c.setBackground(comboBox.getBackground());