wood burning stoves 2.0*
The moose likes Swing / AWT / SWT and the fly likes border Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "border" Watch "border" New topic


hari thatikonda

Joined: Sep 09, 2004
Posts: 11
is there any way that i can set the single color border only on defined sides instead of four sides. i need to set border only three side of one component and only two sides of other
Rachel Swailes
Ranch Hand

Joined: May 18, 2004
Posts: 434
Have a look at

BorderFactory.createMatteBorder(0, 0, 0, 1, theColor)

Where the parameters are (int top, int left, int bottom, int right, Color color)

hari thatikonda

Joined: Sep 09, 2004
Posts: 11
hi i am using 1.3edition i ouldnt find out that method. thanks anyway
I agree. Here's the link: http://aspose.com/file-tools
subject: border
Similar Threads
Cant able to set Background color for panel..
setting the different colors for line border
JSplitPane & window resizing
Setting the JFrame contentpane's border
Swing borders