This should work
jComboBox1.setRenderer(new DefaultListCellRenderer() {
@Override
public void paint(Graphics g) {
setBackground(Color.WHITE);
setForeground(Color.BLACK);
super.paint(g);
}
});
More Related Contents:
- Dynamic JComboBoxes
- How do I get the CellRow when there is an ItemEvent in the JComboBox within the cell
- Is it possible to have an autocomplete using jtextfield and a Jlist?
- JComboBox Selection Change Listener?
- How to set Icon to a JLabel from an image from a folder?
- How can I change the arrow style in a JComboBox
- Filling combobox from database by using hibernate in Java
- Dynamically adding items to a JComboBox
- Binding comboboxes in swing
- JComboBox autocomplete
- How do I populate a JComboBox with an ArrayList?
- how to add different JComboBox items in a Column of a JTable in Swing
- JComboBox setting label and value
- How to make a JComboBox table editor have the design of an ordinary JComboBox?
- JComboBox in a JTable cell
- How can I change the highlight color of a focused JComboBox
- jcombobox filter in java – Look and feel independent
- Why is itemStateChanged on JComboBox is called twice when changed?
- Adding items to a JComboBox
- Adding JComboBox to a JTable cell [duplicate]
- How to avoid firing actionlistener event of JComboBox when an item is get added into it dynamically in java?
- how to add checkbox and combobox in table cell?
- How to retrieve image from project folder?
- Graphics rendering in title bar
- How to change highlighting color in Java Swing TextArea? And also, change the beginning of text corresponding to the highlighting location
- Prevent Swing GUI locking up during a background task
- Rotate a Java Graphics2D Rectangle?
- How do i align this text correctly?
- paintComponent does not work if its called by the recursive function?
- How to include custom panel with NetBeans GUI Builder?