ymazal_ca
asked on
contentPane.add(FrameSIP, FlowLayout.CENTER); crushes
Hi experts,
The included code shows an error because the contentPane.add(FrameSIP, FlowLayout.CENTER); is not accepted.
Any one knows why ?
The included code shows an error because the contentPane.add(FrameSIP, FlowLayout.CENTER); is not accepted.
Any one knows why ?
public static void main(String[] args) {
mainWindow tempy = new mainWindow();
tempy.setVisible(true);
Container contentPane = tempy.getContentPane();
contentPane.setLayout(new FlowLayout());
JInternalFrame FrameSIP = new JInternalFrame();
FrameSIP.setVisible(true);
//FrameSIP.set
contentPane.add(FrameSIP, FlowLayout.CENTER);
//tempy.setLayout(new FlowLayout());
//FrameSIP.setSize(300, 300);
}
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
contentPane.setLayout(new FlowLayout(FlowLayout.CENT
then add the frame without position:
contentPane.add(FrameSIP);