Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / GUI / March 2005

Tip: Looking for answers? Try searching our database.

refresh

Thread view: 
nialltimpson - 31 Mar 2005 13:39 GMT
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!"



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.