• Post Reply Bookmark Topic Watch Topic
  • New Topic

Problem with JButton setBorderPainted Method

 
buntha Choudhary
Ranch Hand
Posts: 136
Android Eclipse IDE Windows XP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am getting an error on using setPainted method for JButton. It is not working fine in some case and somewhere its working fine.



Like for the above piece of code , the border is still visible and background is painting the boundry only.

I finally used setContentArea method and it worked.
But I wanted to know why the above scenario is not working.
 
Rob Spoor
Sheriff
Posts: 20822
68
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What's the error?
 
buntha Choudhary
Ranch Hand
Posts: 136
Android Eclipse IDE Windows XP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The BorderPainted is still TRUE either you make that as False and the boundary color is getting reflected only on the Boundary of the Border but ideally it should Color the entire Border Area.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!