Results 1 to 3 of 3
  1. #1
    alinaqvi90 is offline Member
    Join Date
    May 2010
    Posts
    32
    Rep Power
    0

    Default any layout that uses exact coordinates

    Hi All

    I am working on an AWT application and I need some sort of layout manager that lets me specifiy exact coordinates where I need my components to be placed inside the panel.


    The only platform my application will run will be windows so I am not really concerned about portability.

    any ideas ??

    many thanks in advance :)

  2. #2
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,453
    Blog Entries
    7
    Rep Power
    20

    Default

    Quote Originally Posted by alinaqvi90 View Post
    Hi All

    I am working on an AWT application and I need some sort of layout manager that lets me specifiy exact coordinates where I need my components to be placed inside the panel.


    The only platform my application will run will be windows so I am not really concerned about portability.

    any ideas ??

    many thanks in advance :)
    You could try a null layout, i.e. no LayoutManager at all; you have to position and size all your components yourself; you'll get back to using LayoutManagers after you've seen the results ...

    kind regards,

    Jos

  3. #3
    Prajin's Avatar
    Prajin is offline Senior Member
    Join Date
    Jun 2010
    Location
    Ktm, Nepal
    Posts
    120
    Rep Power
    0

    Default

    Josah is right, using layout is best option.
    But 1 question? Does exact coordiates means setting components location only or does it means location and size of components?

    Regards

Similar Threads

  1. doesnt show exact size
    By clydedoris in forum NetBeans
    Replies: 3
    Last Post: 07-13-2010, 06:59 AM
  2. Replies: 7
    Last Post: 10-28-2008, 01:41 PM
  3. [SOLVED] how to replace exact string in java
    By pankaj_salwan in forum New To Java
    Replies: 22
    Last Post: 07-08-2008, 09:28 AM
  4. Replies: 2
    Last Post: 03-25-2008, 05:49 AM
  5. Replies: 1
    Last Post: 05-19-2007, 12: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
  •