This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Newbie question on JGoodies-FormLayout/DefaultFormBuilder...

 
vijayender madura
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Am new to Swing and Jgoodies... so need help with DefaultFormBuilder...

Am using the following piece of code:-


I'm getting the output as attached... I dont want the gap that comes between the outer cell's border and the inner containing JPanel..
What must i do ?

Thanks in advance...

PS:Also this is my first post on Javaranch:-
question.jpg
Output-Panel
[Thumbnail for question.jpg]
 
Rob Spoor
Sheriff
Pie
Posts: 20495
54
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Isn't that the 15dlu from your FormLayout? Or is that the block at the far left?

If it isn't the 15dlu, what are the insets of your template panel? What is its layout manager? How are components placed?
 
vijayender madura
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
No the 15 dlu-column is the 1st blank-column in my form...
but i found out where i was going wrong...
Never thought more questions could help answer my question... but thanks...

I used a default form builder to build my template panel which had the following statement in the createTemplateNamePanel() method...

builder.setDefaultDialogBorder();

i ignored this cos i never thought this would affect how this panel would be placed in the enclosing cell... but i guess thats how layouts work...

i commented the above statement and the gap is gone...
 
Rob Spoor
Sheriff
Pie
Posts: 20495
54
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Glad I could help
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic