aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes How to set paddings? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "How to set paddings?" Watch "How to set paddings?" New topic
Author

How to set paddings?

Yohan Weerasinghe
Ranch Hand

Joined: Oct 07, 2010
Posts: 497

Hi,

Please have a look at the following code



I want to have some vertical space between the text fields. How could I do that? Please help...


Are you better than me? Then please show me my mistakes..
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 9995
    
    7

Check out GridLayout API docs for a constructor which lets you define the gaps


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
Yohan Weerasinghe
Ranch Hand

Joined: Oct 07, 2010
Posts: 497

Maneesh Godbole wrote:Check out GridLayout API docs for a constructor which lets you define the gaps


Thanks a lot for the quick reply.. I will check it and come back :
Yohan Weerasinghe
Ranch Hand

Joined: Oct 07, 2010
Posts: 497

First, pardon me for the late reply...

Thanks lot for the answer... It worked...
 
Consider Paul's rocket mass heater.
 
subject: How to set paddings?
 
Similar Threads
The "Next" is not working
RMI: FileNotFound exception and NullPointException
Alignment Issue
Java uses or overrides a deprecated API?
Maximize button in JDialog