List of usage examples for javax.swing.text JTextComponent setSelectionColor
@BeanProperty(preferred = true, description = "color used to render selection background") public void setSelectionColor(Color c)
From source file:Main.java
public static void main(String[] argv) { JTextComponent c = new JTextArea(); c.setSelectionColor(Color.green); }