Results 1 to 3 of 3
  1. #1
    OllyHal is offline Member
    Join Date
    Feb 2012
    Posts
    25
    Rep Power
    0

    Default Which Java Swing Layout Do I Use?

    Hi,

    Just starting to make a Java Application with an okay background knowledge of Java. My problem is I need to decide on what layout manager to use, I starting using absolute positioning but then found out when I resize the components stay the same therefore I was looking for one that similar to applications layouts to date such as "word", "Chrome" etc that when you resize them the components resize with it.

    Thanks,

  2. #2
    KevinWorkman's Avatar
    KevinWorkman is offline Crazy Cat Lady
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    4,041
    Rep Power
    10

    Default Re: Which Java Swing Layout Do I Use?

    What layout you use is going to depend on what exactly you want your program to look like. For almost anything except the most basic programs, you're going to have to nest layouts (put a JPanel with one layout inside another JPanel with another layout inside another...). Recommended reading:Lesson: Laying Out Components Within a Container (The Java™ Tutorials > Creating a GUI With JFC/Swing)
    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
    OllyHal is offline Member
    Join Date
    Feb 2012
    Posts
    25
    Rep Power
    0

    Default Re: Which Java Swing Layout Do I Use?

    ah I think I know what I was doing wrong, I was not using any panels and only using a jframe which would just make it a lot harder. Thanks for your help.

Similar Threads

  1. Swing Html Layout
    By Kiruthigadhandapani in forum AWT / Swing
    Replies: 1
    Last Post: 05-03-2011, 04:39 PM
  2. help with swing layout
    By TopNFalvors in forum New To Java
    Replies: 6
    Last Post: 04-08-2011, 06:22 PM
  3. Need Swing Layout Advice
    By Rocketz in forum New To Java
    Replies: 2
    Last Post: 03-08-2011, 01:46 AM
  4. Swing layout is done wrong
    By Onra in forum New To Java
    Replies: 5
    Last Post: 10-08-2010, 05:36 AM
  5. Add Swing Layout.jar
    By anilkumar_vist in forum New To Java
    Replies: 0
    Last Post: 10-02-2010, 05:42 AM

Posting Permissions

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