Results 1 to 3 of 3
  1. #1
    mireazma is offline Member
    Join Date
    Apr 2013
    Posts
    16
    Rep Power
    0

    Default Most useful, easy and intuitive layout manager?

    Hello.
    I'm new to java and I'm already bending my mind to the tearing point with swing layouts. I want to make a simple app with a few components that re-position if I changed its width and height.
    So, I need a layout manager in which I would set each component sizes in pixels and position by x and y coordinates in pixels, or percents of the container, and after that it keeps the proportions of the spacings between the components but keeps the components at fixed specified dimensions. Kind of uniform gather/spread of the components.
    This is the most useful, easy and intuitive approach with a layout.

    So, which manager is closest to the description?

  2. #2
    JosAH's Avatar
    JosAH is online now Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,657
    Blog Entries
    7
    Rep Power
    21

    Default Re: Most useful, easy and intuitive layout manager?

    Maybe a GridBagLayout comes closest to what you want ...

    kind regards,

    Jos
    cenosillicaphobia: the fear for an empty beer glass

  3. #3
    mireazma is offline Member
    Join Date
    Apr 2013
    Posts
    16
    Rep Power
    0

    Default Re: Most useful, easy and intuitive layout manager?

    Thanks. I read the layouts tutorial. I'm planning on writing one simple and intuitive on my own though it won't happen any time soon :)

Similar Threads

  1. Layout manager
    By dacoolest in forum AWT / Swing
    Replies: 2
    Last Post: 12-19-2011, 07:23 PM
  2. Simple GUI layout manager
    By globo in forum New To Java
    Replies: 3
    Last Post: 11-16-2010, 01:17 AM
  3. Layout Manager
    By globo in forum New To Java
    Replies: 8
    Last Post: 11-01-2010, 12:19 AM
  4. Layout manager
    By Nicholas Jordan in forum Java Applets
    Replies: 2
    Last Post: 11-24-2008, 03:02 PM
  5. MiG Layout Manager 2.4
    By levent in forum Java Software
    Replies: 0
    Last Post: 05-16-2007, 05:11 AM

Tags for this Thread

Posting Permissions

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