well I need a few tips on which layout managers to use to divide a frame into two regions, let’s say on the left side of the frame a drawing jpanel would be inserted and on the right side of the frame I would create buttons and other stuff to control it. So what layout manager should I use and how should it look? Because last time I needed something like that I tried using box layout and then borderlayout, but I guess I didn’t know how to use it properly cause the result wasn’t good.
Can anyone help?
I think a JSplitPane is what you want and need.
It does exactly what you want: split a frame in 2 independent areas in which you can do whatever you want.
Since this is your only component, I think a FlowLayout for the parent frame would suffice.
For more details see here: http://docs.oracle.com/javase/tutorial/uiswing/components/splitpane.html