Quantcast
Viewing all articles
Browse latest Browse all 10

Java tip: How to add zebra background stripes to a JTree

Zebra stripes in a graphical user interface (GUI) are subtle background stripes painted behind the rows of a hierarchical list, or tree. They improve the readability of wide tree rows, but the JTree class in Java's Swing doesn't support them. This tip shows how to extend JTree to add zebra background stripes.

read more


Viewing all articles
Browse latest Browse all 10

Trending Articles