File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Swing / AWT / SWT and the fly likes Swing borders Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Swing borders" Watch "Swing borders" New topic

Swing borders

Frank Hale
Ranch Hand

Joined: Mar 25, 2000
Posts: 230
Is it possible to create a border that you are able to control which borders show on each side of the component? For instance I wanna create a JPanel and have only an etched border on the bottom, all other sides would have no border.
I haven't been able to find anything via google so far... =(
Nathan Pruett

Joined: Oct 18, 2000
Posts: 4121

If you just want a border on the bottom, why not just add a JSeperator under the component. It's not a border, but it looks the same...

If you really just have tp use a border, you can make your own...

Write once, run anywhere, because there's nowhere to hide! - /. A.C.
Frank Hale
Ranch Hand

Joined: Mar 25, 2000
Posts: 230
Thanks alot Nathan. This will do nicely!
I agree. Here's the link:
subject: Swing borders
It's not a secret anymore!