Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: float based layout manager?

  1. #1
    Junior Member
    Join Date
    Jun 2010
    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default float based layout manager?

    are there any layout managers out there that can set up the layout based on which fractional position of the window it takes up? or at least convert absolute coordinates into fractions? also, if i got one or wrote my own, how would i get it to work with Window Builder Pro? i've tried all the layout managers, and my components all stay the same size when i resize my window.

    Thanks!
    Last edited by deepthought; December 26th, 2010 at 05:27 PM.


  2. #2
    Forum Squatter newbie's Avatar
    Join Date
    Nov 2010
    Location
    North Wales
    Posts
    661
    My Mood
    Stressed
    Thanks
    28
    Thanked 115 Times in 106 Posts
    Blog Entries
    1

    Default Re: float based layout manager?

    I'm not sure about fractional, but best layout manager I can personally think of is GridBagLayout, where you define locations based on x-y coordinates.

    I believe the reason for:
    "my components all stay the same size when i resize my window."

    is because components are being placed in absolute positions(fixed) instead of relative(which would require some calculations.

    Sorry I can't be more helpful.

Similar Threads

  1. Fantasy Football Offline Draft Manager Program
    By aussiemcgr in forum Java Theory & Questions
    Replies: 0
    Last Post: September 6th, 2010, 09:52 AM
  2. problem in managing layout
    By namreen in forum What's Wrong With My Code?
    Replies: 0
    Last Post: August 26th, 2010, 12:52 AM
  3. How do you layout these components centered
    By robertbob in forum AWT / Java Swing
    Replies: 2
    Last Post: May 24th, 2010, 11:52 PM
  4. Senior Development Manager - Core Java/J2SE - £80-90K + £10K Bonus
    By iNeedJavaGurus in forum Paid Java Projects
    Replies: 0
    Last Post: September 18th, 2009, 10:00 AM
  5. Replies: 6
    Last Post: August 30th, 2009, 04:31 AM