Resizing only one part of the Java Swing components -


on java swing application have 2 components. on left side navigation (jlist) , on right side jtable. leave possibility increase size of window, without increasing size of both components.

the proportion of 50/50 kept, through ought whole sizing. use gridlayout. behavior rooted layoutmanager or property has set?

gridbaglayout allow achieve this. however, have considered using jsplitpane left-hand side contains navigation panel , right hand side contains table? configure additional space allocated right hand side calling setresizeweight(0.0). however, still retain flexibility of allowing user manually resize navigation area if required. have option hide navigation panel calling setonetouchexpandable(true) on split pane.


Comments

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -