Get your CodeRanch badge!*
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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Swing borders" Watch "Swing borders" New topic
Author

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
Bartender

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...



-Nate
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: http://aspose.com/file-tools
 
subject: Swing borders
 
Similar Threads
CSS : Cell borders showing up on th cells but not td
Applying border to a html table row
setBorder not working on JTable ?
Button.setBorder()
GridBagLayout with a sort of border