This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes JSeparator expectation with GridbagLayout Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "JSeparator expectation with GridbagLayout" Watch "JSeparator expectation with GridbagLayout" New topic
Author

JSeparator expectation with GridbagLayout

Sharad Kharya
Ranch Hand

Joined: Oct 15, 2008
Posts: 68
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

Joined: May 03, 2008
Posts: 4523
    
    5

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.


luck, db
There are no new questions, but there may be new answers.
m Korbel
Ranch Hand

Joined: Jun 19, 2012
Posts: 154
one of the ways

 
It is sorta covered in the JavaRanch Style Guide.
 
subject: JSeparator expectation with GridbagLayout
 
Similar Threads
JFrame problem
JScrollPane and JComboBox, loss of drop down
Problems with JSeparator together with GridBagLayout
GridBagLayout question
Forcing size of JPanel