It's not a secret anymore!*
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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: 19541
    
  16

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
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: 19541
    
  16

Glad I could help
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Newbie question on JGoodies-FormLayout/DefaultFormBuilder...
 
Similar Threads
Layout challenge.
JGoodies FormLayout question place buttons at center
form design
JGoodies DefaultFormBuilder and separator question
Best Layout for Simple Forms?