The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

import-bot (20211) [Avatar] Offline
#1
[Originally posted by skip]

Hi Jon,

I want to develop an applet with DoubleFrame but your book is focused on
developing application. Could you tell me how to modify applications such as
MultiDisplaying to applet.

Thank you,
S.K.
import-bot (20211) [Avatar] Offline
#2
Re: Applet using DoubleFrame
[Originally posted by author]

Two things to keep in mind for Java 1.2 applets are:

1) The DoubleFrame class is derived from JFrame. An applet version would have
to be derived from JApplet. You will have to get rid of the window specific
calls (e.g. pack and show) and implement the applet specific methods.

2) The html page containing the applet must be "converted" to use the
browser's java plugin. The converter comes with the JDK.

Hope this helps
--jon

> Hi Jon,
>
> I want to develop an applet with DoubleFrame but your book is focused on
> developing application. Could you tell me how to modify applications such as
> MultiDisplaying to applet.
>
> Thank you,
> S.K.
import-bot (20211) [Avatar] Offline
#3
Re: Applet using DoubleFrame
[Originally posted by skip]

I have modified the DoubleFrame class and got the Java Plug-in
HTML converter v1.12. I applet can be compiled successfully but
the browser prompts "exception: java.lang.ClassNotFoundException:
j3dui.utils.Debug". Would you mind send me a workable example of
Applet using DoubleFrame so that I can follow.

Thanks.
-- S.K.

> Two things to keep in mind for Java 1.2 applets are:
>
> 1) The DoubleFrame class is derived from JFrame. An applet version would have
> to be derived from JApplet. You will have to get rid of the window specific
> calls (e.g. pack and show) and implement the applet specific methods.
>
> 2) The html page containing the applet must be "converted" to use the
> browser's java plugin. The converter comes with the JDK.
>
> Hope this helps
> --jon
import-bot (20211) [Avatar] Offline
#4
Re: Applet using DoubleFrame
[Originally posted by author]

Your applet cannot find the Debug class that is part of the j3dui library.
You have to either include the whole j3dui library in a jar file that you
specify in the applet "archive" parameter, or just include the subset of the
library that your applet is using. Another possibility is that you can install
the j3dui library on the target machine (e.g. stick it in the same directory
as the j3d class library).

--jon


> I have modified the DoubleFrame class and got the Java Plug-in
> HTML converter v1.12. I applet can be compiled successfully but
> the browser prompts "exception: java.lang.ClassNotFoundException:
> j3dui.utils.Debug". Would you mind send me a workable example of
> Applet using DoubleFrame so that I can follow.
>
> Thanks.
> -- S.K.
>