• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

AbsoluteLayout.

 
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Why JDK does not have an AbsoluteLayout to be easier the GUI development? Why I have to learn about different type of layouts, I think this makes more difficult the GUI development.
Thanks.
Cristian.
 
Ranch Hand
Posts: 2823
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It does have it. But I would highly recommend learning the layouts. They really are not that difficult to learn. Start with a panel and set the layout. Place a couple of components on it. Change layouts to see the effects. Resize the GUI.
I don't like the null layout because you then have to code all of your own resizing or lock the user from resizing.
 
Ranch Hand
Posts: 165
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
You can utilize the setLayout(null) and put your components in specifics positions.
But this isn't a good idea, i developer a small software utilizing null Layout for Windows, when i need run the same software in Linux, the screen wasn't the same thing.
The better to do is study the Layout Managers, case your application will be cross platform.
Best Regards
 
All of life is a contant education - Eleanor Roosevelt. Tiny ad:
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic