Hello,
I've got a question about applying borders to Swing components. I'd
like to apply an etched border to only the top side of a JPanel. I've
searched the web and the JDK 5.0 Javadocs to no avail. Any help would
be greatly appreciated.
Dave
Daniel Rohe - 25 Aug 2005 09:31 GMT
One possible solution is to extend EtchedBorder and override the methods
getBorderInsets and paintBorder to only paint the top etched border and
return only insets for top. Another possible solution is to apply a
BorderLayout to the JPanel and add a JSeparator to the north of the JPanel.
Kind regards,
Daniel
> Hello,
>
[quoted text clipped - 4 lines]
>
> Dave