aspose file tools*
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 Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "border" Watch "border" New topic
Author

border

hari thatikonda
Greenhorn

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)

Cheers,
Rachel
hari thatikonda
Greenhorn

Joined: Sep 09, 2004
Posts: 11
hi i am using 1.3edition i ouldnt find out that method. thanks anyway
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: border