• Post Reply Bookmark Topic Watch Topic
  • New Topic

Do not want to use border

 
chets patel
Ranch Hand
Posts: 77
Eclipse IDE Redhat Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All
I am creating few panels within single frame. When I am adding all these panels, they are separated by border. I do not want to show any border to user. User should not be known that things are separated.
setBorder(BorderFactory.createEmptyBorder()) does not work. Can any one please help me out.

Thanks in advance
 
Darryl Burke
Bartender
Posts: 5152
11
Java Netbeans IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
By default, JPanel doesn't have a border. To get better help sooner, post a SSCCE (Short, Self Contained, Compilable and Executable) example that demonstrates the problem.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!