Hey, I'm wondering if any one can give me some advise.
Im writeing an applet which I set up all GUI components on a border
laylout. throught init();
i.e
pane.add(cards,BorderLayout.CENTER);
pane.add(button,BorderLayout.SOUTH);
pane.add(options,BorderLayout.EAST);
Now later on in the code when to user recevis something from my server, I
want to add
pane.add(winOptions,BorderLayout.EAST);
Which Im hopeing will overlap options, so that you cant see it, however
the screen is not get refreshed, and im geting a null pointer exception.
any idea's Id appreceate any input.
niall
Aki \ - 31 Mar 2005 14:29 GMT
> Hey, I'm wondering if any one can give me some advise.
>
[quoted text clipped - 13 lines]
> the screen is not get refreshed, and im geting a null pointer exception.
> any idea's Id appreceate any input.
Have you tried putting
"pane.remove(options);"
before the line
"pane.add(winOptions,BorderLayout.EAST);" ?
If you want display "options" instead of "winOptions" later on, do this
in reverse.

Signature
-Aki "Sus" Laukkanen
"Älä multa kysy tai mä vastaan!"
"Don't ask me or I'll answer!"