• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JSeparator expectation with GridbagLayout

 
Sharad Kharya
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I am working on Swing Application and trying to use JSeparator to divide the panel Horizontally.
But, unfortunately my Separator is showing as a full line. Instead it is just showing in particular area only.

Can anyone please help me, on how to correct this.

Here is my Sample code
 
Darryl Burke
Bartender
Posts: 5125
11
Java Netbeans IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
But, unfortunately my Separator is showing as a full line.

Did you mean that it is not showing as a full line? You need gridx = 0 and gridwidth = the number of columns for that.
 
m Korbel
Ranch Hand
Posts: 174
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
one of the ways

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic