java - Layout - Relative to screensize -
so computer science student , i've finished first year. wanted create simple program , realized tired of using no layout;
this.setlayout(null); it tiresome add bounds every single component. well, have been using jpanel components , gridlayout lot, have made work bit easier. tired of it.
i care of gui make , use half time programming make gui before start adding functionality of code. not using layout , adding bounds forced setresizable(false) because looks bad if change size of jframe.
i've been searching bit, , know of borderlayout, , flowlayout, don't them. there layout keeps relative size of components respect size of window?
for example want make simple program looks this: (quick sketch in photoshop)

i can make 3 panels, said, if change size of frame stays in place instead of being relative window-size.
can guys me?
this design looks me fit borderlayout, in north have values changes center have main part, , south have buttons.
you can apply borderlayout jframe, create 3 jpanels each of north,center , south sections. if want use responsive design components , panels, take @ gridbaglayout more flexible gridlayout
Comments
Post a Comment