Reference notes on working with applet

1 view
Skip to first unread message

Fei

unread,
Apr 17, 2008, 11:43:10 PM4/17/08
to informative-workspace-discuss
This is a post for applet related problems discussion. A reference
wiki page can be found on
http://code.google.com/p/informative-workspace/wiki/AppletProblemsReference?updated=AppletProblemsReference&ts=1208489927

First problem is the getParameter(String paramName) method throws null
pointer exception while trying to get the param from the applet tag.
The solution is found after some googling. It turns out to be caused
by having a constructor instead of a init() method for the applet.
Change the constructor to the init() method solved the problem.

Second problem is the debugging output while interacting with the
applet. System.out doesn't show output in console while the webapp is
being deployed. I think only the logger can have output in this case.
I tried

ProjectOverviewerApplication app =
(ProjectOverviewerApplication)ProjectOverviewerApplication.get();
app.getLogger();

However, in deployment time, the applet requires the
ProjectOverviewerApplication classes files. I assume given that, it
probably would then requires the util.Logger classes. This is
definitely not a good solution.

I also am not familiar with logging, any good way to solve this?

Jianfei Liao

unread,
Apr 18, 2008, 5:46:45 AM4/18/08
to informative-workspace-discuss
Stupid me. Forgot there's a Java console I can look at from FireFox tool. System.out works there.
Reply all
Reply to author
Forward
0 new messages