G
Geoff Cox
Hello,
For some reason the
contentArea.remove(myPanel3);
works but the
contentArea.remove(myPanel2);
does not - any ideas please?
(happy to post the whole code if this helps)
Cheers
Geoff
if (textIndex == 0)
{
contentArea.remove(myPanel2);
contentArea.remove(myPanel3);
myPanel3 = new JPanel();
myPanel3.setBackground(Color.white);
JLabel endMessage = new JLabel("Thank you - all questions
answered");
myPanel3.add(endMessage);
contentArea.add(myPanel3, BorderLayout.SOUTH);
setContentPane(contentArea);
contentArea.setVisible(true);
}
For some reason the
contentArea.remove(myPanel3);
works but the
contentArea.remove(myPanel2);
does not - any ideas please?
(happy to post the whole code if this helps)
Cheers
Geoff
if (textIndex == 0)
{
contentArea.remove(myPanel2);
contentArea.remove(myPanel3);
myPanel3 = new JPanel();
myPanel3.setBackground(Color.white);
JLabel endMessage = new JLabel("Thank you - all questions
answered");
myPanel3.add(endMessage);
contentArea.add(myPanel3, BorderLayout.SOUTH);
setContentPane(contentArea);
contentArea.setVisible(true);
}