4632N/A// Inspired by MetalComboBoxUI, which also has a combined text-and-arrow button for noneditables
4632N/A return new AquaComboBoxUI();
4632N/A // this doesn't work right now, because the JComboBox.init() method calls
4632N/A super.uninstallUI(c);
4632N/A super.installListeners();
4632N/A super.uninstallListeners();
4632N/A super.installComponents();
4632N/A super.uninstallComponents();
4632N/A return new ItemListener() {
4632N/A return new AquaComboBoxEditor();
4632N/A if (!e.isTemporary()) {
4632N/A ac.firePropertyChange(AccessibleContext.ACCESSIBLE_STATE_PROPERTY, AccessibleState.FOCUSED, null);
4632N/A super.installKeyboardActions();
4632N/A // Inner classes were using a this reference and then trying to serialize the AquaComboBoxUI
4632N/A // We shouldn't do that. But we need to be able to get the popup from other classes, so we need
4632N/A return new AquaComboBoxLayoutManager();
4632N/A arrowButton.setBounds(insets.left, insets.top, width - (insets.left + insets.right), height - (insets.top + insets.bottom));
4632N/A arrowButton.setBounds(width - (insets.right + buttonWidth), insets.top, buttonWidth, buttonHeight);
4632N/A return c.isEditable() || Boolean.TRUE.equals(c.getClientProperty(AquaComboBoxUI.POPDOWN_CLIENT_PROPERTY_KEY));
4632N/A protected static void triggerSelectionEvent(final JComboBox comboBox, final ActionEvent e) {
4632N/A action.actionPerformed(new ActionEvent(root, e.getID(), e.getActionCommand(), e.getWhen(), e.getModifiers()));
4632N/A if (!isMinimumSizeDirty) {
4632N/A isMinimumSizeDirty = false;
4632N/A static final RecyclableSingleton<ClientPropertyApplicator<JComboBox, AquaComboBoxUI>> APPLICATOR = new RecyclableSingleton<ClientPropertyApplicator<JComboBox, AquaComboBoxUI>>() {