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)

enter image description here

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.

link oracle border layout

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

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -