Many custom Swing components are made of JPanel
. Sometimes these components are required to be selectable.
How is it possible to make JPanel
look selected? It should be selected like other items do, like menu items, or JTable
cells. I.e. entire JPanel
should be covered with transparent blue. It would be excellent, if this would made exactly like other items in L&F / theme,
Is it possible?
You could consider taking a look at
JXLayer
/JLayer
, which would allow you to paint an overlay on top the component.