File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Swing / AWT / SWT and the fly likes Newbie question on JGoodies-FormLayout/DefaultFormBuilder... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Newbie question on JGoodies-FormLayout/DefaultFormBuilder..." Watch "Newbie question on JGoodies-FormLayout/DefaultFormBuilder..." New topic
Author

Newbie question on JGoodies-FormLayout/DefaultFormBuilder...

vijayender madura
Greenhorn

Joined: Jun 18, 2009
Posts: 13
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:-



[Thumbnail for question.jpg]


'Scientia est Potentia'
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 20048
    
  30

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?


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions How To Answer Questions
vijayender madura
Greenhorn

Joined: Jun 18, 2009
Posts: 13
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

Joined: Oct 27, 2005
Posts: 20048
    
  30

Glad I could help
 
jQuery in Action, 3rd edition
 
subject: Newbie question on JGoodies-FormLayout/DefaultFormBuilder...
 
It's not a secret anymore!