Results 1 to 4 of 4
Like Tree1Likes
  • 1 Post By KevinWorkman

Thread: Layouts

  1. #1
    tnrh1 is offline Senior Member
    Join Date
    Aug 2011
    Posts
    251
    Rep Power
    4

    Default 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.

  2. #2
    KevinWorkman's Avatar
    KevinWorkman is offline Crazy Cat Lady
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    3,993
    Rep Power
    9

    Default 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!

  3. #3
    tnrh1 is offline Senior Member
    Join Date
    Aug 2011
    Posts
    251
    Rep Power
    4

    Default 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.

  4. #4
    KevinWorkman's Avatar
    KevinWorkman is offline Crazy Cat Lady
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    3,993
    Rep Power
    9

    Default Re: Layouts

    Quote Originally Posted by tnrh1 View Post
    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.
    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.
    tnrh1 likes this.
    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

  1. Swing layouts
    By jayragz in forum AWT / Swing
    Replies: 2
    Last Post: 07-08-2011, 11:10 AM
  2. Layouts and Sizes
    By Bagzli in forum New To Java
    Replies: 2
    Last Post: 07-01-2011, 05:24 PM
  3. problems with layouts !
    By ron2794 in forum NetBeans
    Replies: 1
    Last Post: 12-15-2010, 01:23 AM
  4. Can you have multiple layouts using swing?
    By fresh83 in forum New To Java
    Replies: 2
    Last Post: 12-27-2009, 09:38 PM
  5. Layouts ?
    By plodos in forum Eclipse
    Replies: 3
    Last Post: 07-30-2007, 03:03 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •