Basically am setting a background color for the selected component/node in the Jtree. But the problem is the background color length is exceeding the length of the node text. So can anybody tell on how to control the length of the background color? I want the background color of any node to be adjusted according to the text length of a node.
Asked
Active
Viewed 49 times
0
-
Swing in 2016? Why not JavaFX? – fge Aug 23 '16 at 01:42
-
[This](http://stackoverflow.com/questions/26724913/color-row-in-jtree) may help you – mayha Aug 23 '16 at 06:07