Jpanels with in Jpanels and no flow layout just postion
so I have two class that has extend Jpanel
MasterPanel Extends Jpanel()
so if try to do InsidePAnel.setLocation()
it doesn't let me move the panel around inside the other panel.
how do I add components with out using layouts
Re: Jpannels with in Jpannels and no flow layout just postion
o my... over 200 views and not a single reply???
I hope this can help you.
first set the masterPanel layout to null.
when you set the containers layout to null remember to set every object within the container bounds. like so.
masterPanel mP = new masterPanel();
insidePanel iP = new insidePanel();
iP.setBounds(0, 0, 20, 20);
Re: Jpanels with in Jpanels and no flow layout just postion
A JPanel has no reason to move unless you use its setLocation( ... ) method to set it to a different location.
Originally Posted by Nemus