Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

border

 
hari thatikonda
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 434
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi i am using 1.3edition i ouldnt find out that method. thanks anyway
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic