This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to add Jseprator in gridbag layout  RSS feed

 
jaspreet manchinda
Ranch Hand
Posts: 67
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jseprator is not displaying like i wanted its not portioning it properly
what changes should i make please help
 
Michael Dunn
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
> Jseprator is not displaying like i wanted..

how should it appear?

if, by this, you mean across the frame
gbc.fill = GridBagConstraints.HORIZONTAL;

try, in that block
gbc.gridwidth = 4;
 
jaspreet manchinda
Ranch Hand
Posts: 67
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Michael Dunn wrote:> Jseprator is not displaying like i wanted..

how should it appear?

if, by this, you mean across the frame
gbc.fill = GridBagConstraints.HORIZONTAL;

try, in that block
gbc.gridwidth = 4;

yeah!! that's what i meant and now its working properly :D
thank you very much
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!