Border for JPanel

86 views
Skip to first unread message

Alexander Ivkin

unread,
Dec 9, 2012, 5:40:59 AM12/9/12
to sea-glass-l...@googlegroups.com
Hello everyone,

I've started using this nice l&f and found that JPanel components don't have borders regardless of component properties. I've looked into source code in debugger and seen - no painter could be found for border painter at all.
So now I'm using a kind of hack - I switched to TextComponentPainter to draw border in this way:
if (p == null) p = new TextComponentPainter(TextComponentPainter.Which.BORDER_ENABLED);

Could you provide a standard way to paint panel borders please?
Reply all
Reply to author
Forward
0 new messages