Java Code Examples for javax.swing.plaf.basic.BasicLabelUI

The following examples show how to use javax.swing.plaf.basic.BasicLabelUI. These examples are extracted from open source projects. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source Project: jpexs-decompiler   Source File: TagTree.java    License: GNU General Public License v3.0 5 votes vote down vote up
public TagTreeCellRenderer() {
    setUI(new BasicLabelUI());
    setOpaque(false);
    //setBackground(Color.green);
    setBackgroundNonSelectionColor(Color.white);
    //setBackgroundSelectionColor(Color.ORANGE);

}
 
Example 2
public MyTreeCellRenderer() {
    setUI(new BasicLabelUI());
    setOpaque(false);
    setBackgroundNonSelectionColor(Color.white);
}
 
Example 3
Source Project: jpexs-decompiler   Source File: DumpTree.java    License: GNU General Public License v3.0 4 votes vote down vote up
public DumpTreeCellRenderer() {
    setUI(new BasicLabelUI());
    setOpaque(false);
    setBackgroundNonSelectionColor(Color.white);
}