File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Newbie question on JGoodies-FormLayout/DefaultFormBuilder...

 
vijayender madura
Greenhorn
Posts: 13
  • 0
  • 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: 20372
44
Chrome Eclipse IDE Java Windows
  • 0
  • 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
  • 0
  • 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: 20372
44
Chrome Eclipse IDE Java Windows
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Glad I could help
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic