swing - Java JFrame Item Positions/Sizes -
i aware of methods , coding required set jframe item's position , size, need bit of knowing how correctly size , position items. there way use jframe api/method separate window sections make positioning items easier? maximum values height , width? how set button average size? if have experience jframes, please give me info me understand how position , size jframe items.
you shouldn't worrying pixel perfect positioning of components. swing wasn't meant used such. being language meant run on many different platforms, gui library should flexible such. maintain flexibility, layout managers introduced. should using these layout managers sizing , positioning for you.
you can see visualization of how each work @ a visual guide layout managers. these layout managers, you'll want learn (at least)
which ones respect preferred size , ones don't.
how each ones represented visually.
how create white space, using gaps, empty borders, struts
how use use nested containers different layout managers desired result.
it may intimidating different possibilities, learning new, take 1 step @ time. go through each tutorial each layout manager.
Comments
Post a Comment