Here you can find the source of setTextComponentTransparent( JTextComponent textComponent)
public static void setTextComponentTransparent( JTextComponent textComponent)
//package com.java2s; //License from project: Open Source License import javax.swing.UIDefaults; import javax.swing.text.JTextComponent; public class Main { public static void setTextComponentTransparent( JTextComponent textComponent) /* */{//from w w w . jav a 2 s .c o m /* 3650 */textComponent.setOpaque(false); /* */ /* 3653 */textComponent.putClientProperty("Synthetica.opaque", Boolean.valueOf(false)); /* */ /* 3655 */textComponent.putClientProperty( "Nimbus.Overrides.InheritDefaults", Boolean.valueOf(false)); /* 3656 */textComponent.putClientProperty("Nimbus.Overrides", new UIDefaults()); /* */} }