Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

AbsoluteLayout.  RSS feed

 
Cristian Cardenas
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • 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.
 
Paul Stevens
Ranch Hand
Posts: 2823
  • Mark post as helpful
  • send pies
  • 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.
 
Isaias C. Barroso
Ranch Hand
Posts: 165
  • Mark post as helpful
  • send pies
  • 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
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!