Results 1 to 4 of 4
- 12-06-2011, 07:20 PM #1
Senior Member
- Join Date
- Aug 2011
- Posts
- 248
- Rep Power
- 2
Layouts
Hello everyone,
I've stopped working with gui for the last few months because I my basic java knowledge was rusty.
Now after a while I'm feeling that my base has expend and I'm ready to start writing gui programs properly.
I got to know most of the component sub-classes but I have to say it was a nightmater to code without a layout manager.
So my question is, what is the most basic, easiet and popular layout to start with.
I've read some tutorials and I couldn't get a clear answer.
Thanks in advanced.
- 12-06-2011, 07:26 PM #2
Re: Layouts
It really depends on how you want your components laid out! I would take a look through this if I were you: A Visual Guide to Layout Managers (The Java™ Tutorials > Creating a GUI With JFC/Swing > Laying Out Components Within a Container)
How to Ask Questions the Smart Way
Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!
- 12-06-2011, 07:54 PM #3
Senior Member
- Join Date
- Aug 2011
- Posts
- 248
- Rep Power
- 2
Re: Layouts
I thought that there is a "popular" layout but it seems I were wrong.
I already added this link to favorite, thanks for clearing this up for me.
- 12-06-2011, 08:00 PM #4
Re: Layouts
I'm not sure there is a favorite layout. Different layouts are used for different things. For example, you can't really compare a CardLayout to a BorderLayout.
For what it's worth though, I am a big fan of BoxLayout. I probably use it a little too much actually. But if you just want something simple, FlowLayout is pretty friendly.How to Ask Questions the Smart Way
Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!
Similar Threads
-
Swing layouts
By jayragz in forum AWT / SwingReplies: 2Last Post: 07-08-2011, 11:10 AM -
Layouts and Sizes
By Bagzli in forum New To JavaReplies: 2Last Post: 07-01-2011, 05:24 PM -
problems with layouts !
By ron2794 in forum NetBeansReplies: 1Last Post: 12-15-2010, 01:23 AM -
Can you have multiple layouts using swing?
By fresh83 in forum New To JavaReplies: 2Last Post: 12-27-2009, 09:38 PM -
Layouts ?
By plodos in forum EclipseReplies: 3Last Post: 07-30-2007, 03:03 PM


1Likes
LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks