All Downloads are FREE. Search and download functionalities are using the official Maven repository.

mdlaf.components.combobox.MaterialComboBoxEditor Maven / Gradle / Ivy

There is a newer version: 1.1.4
Show newest version
package mdlaf.components.combobox;

import mdlaf.utils.MaterialColors;

import javax.swing.*;
import javax.swing.plaf.basic.BasicComboBoxEditor;
import java.awt.*;

/**
 * @author https://github.com/vincenzopalazzo
 */
public class MaterialComboBoxEditor extends BasicComboBoxEditor {

    @Override
    public Component getEditorComponent() {
        Component component = super.getEditorComponent();
        component.setForeground(UIManager.getColor("ComboBox.selectionForeground"));
        component.setForeground(MaterialColors.RED_800);
        return component;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy