• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Bear Bibeault
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Jj Roberts
  • Tim Holloway
  • Piet Souris
Bartenders:
  • Himai Minh
  • Carey Brown
  • salvin francis

Obsolete Interface Used, a bug of JRE?

 
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear All,

I'm writing an applet to use in web application which is for showing a list from backend db. I want to keep the previous state of the list (cursor position, the selected entry...) when user navigates back to the page containing the applet.
My solution is to keep the main Panel object (showing the list) of the applet in a static Hashtable and get it from this Hashtable when returning.
My applet worked smoothly in IE with Microsoft JVM plugin but it failed when I used Sun JRE 1.4 (IE, Firefox). Here is exception it thrown:


This exception thrown when the Panel object is retrieved from static Hashtable and added to the applet's interface.

Has anyone experienced this problem? Please let me know how to fix it?

Thanks in advance.
[ July 27, 2005: Message edited by: Chinh Tran Nam ]
 
author and iconoclast
Posts: 24203
43
Mac OS X Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you perhaps using an ancient copy of Visual J++ as your development environment?
 
Chinh Tran Nam
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No, I'm using Eclipse. Please let me know what will happen if I use that version of Visual J++?
Thanks
[ July 28, 2005: Message edited by: Chinh Tran Nam ]
 
Ranch Hand
Posts: 275
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Eclipse will use whatever SDK it finds, and it might have found an old one. You can dig around in Eclipse to see which SDK it's using. You can set it in two places, one for the default Java project, and one for the individual project. If you created the project yourself (ie didn't inherit it), then likely you're using the default SDK.
 
Yeah, but how did the squirrel get in there? Was it because of the tiny ad?
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic