for the archives: correct code is:
private void changeLabel()
{
System.out.println("language = " + language);
jPanel1.removeAll();
jPanel1.add(new JLabel(language), "Center");
Type: Posts; User: apchar
for the archives: correct code is:
private void changeLabel()
{
System.out.println("language = " + language);
jPanel1.removeAll();
jPanel1.add(new JLabel(language), "Center");
Junky, as I mentioned, the actual app is more complicated. I thought it prudent to boil it down to as little as possible.
Consider the bit of code below. It's a much simplified version of my real app.
In jPanel1 is a single label. In jPanel2 is a single button.
The button in jPanel2 is supposed to wipe clear (with...