NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.

To learn about what's going on, see About the Archive Site.

message from visad-list@ssec not forwarded to visad@unidata

Here's a very interesting message that Frank Krause posted to
visad-list@xxxxxxxxxxxxx that somehow did not get forwarded to
visad@xxxxxxxxxxxxxxxx.
 
> From:    IN%"fkrause@xxxxxxxxx"
> To:      dsoleno <dsoleno@xxxxxxxxxxxxx>
> Subject: Re: application versus applet
> CC:      visad-list@xxxxxxxxxxxxx
> Lines:   215
> Time:     1-JUL-1998 09:39:32.51
> Folder:  NEWMAIL
> Replied: No
>
>  First off all: Yes, it is possible to display a VisAD graph as an
>                 applet! But sometimes netscape reacts unstable.
>
>  I followed the tips of David S. Soleno and here is a possible result.
>
>  Thanks again,
>
>
>         Frank Krause
>
>
> //////////////////////////////////////////////
> //////////////////////////////////////////////
> //////////////////////////////////////////////
> //////////////////////////////////////////////
>
> The java file:
>
>
> // import needed classes
>
> import visad.*;
> import visad.java3d.DisplayImplJ3D;
> import java.rmi.RemoteException;
> import java.math.*;
> import java.awt.*;
> import java.awt.event.*;
> import java.awt.swing.*;
>
>
> public class ScatterApplet extends java.applet.Applet
> {
>   DisplayImpl displayApplet;
>
>   public void init ()
>   {
>     this.setLayout ( new BorderLayout() );
>
>     try
>     {
>     // construct scatter plot Displays
>
>       displayApplet = new DisplayImplJ3D( "image display for applet" );
>
>
>    ...
>
>    .................. filling the display with data here ............
>
>    ...
>
>
>
>     // create JPanel in Applet
>
>       JPanel panel = new JPanel();
>       panel.setLayout( new BoxLayout( panel, BoxLayout.Y_AXIS ) );
>       panel.setAlignmentY( JPanel.TOP_ALIGNMENT );
>       panel.setAlignmentX( JPanel.LEFT_ALIGNMENT );
>
>      // add display to JPanel
>
>       panel.add( displayApplet.getComponent() );
>
>       this.add( "Center", panel );
>
>       this.setSize( 400, 300 );
>       this.setVisible( true );
>
>     } // try
>     catch ( Exception e )
>     {
>       showStatus( new String( e.getMessage() ) );
>     }
>   }
> }
>
> //////////////////////////////////////////////
> //////////////////////////////////////////////
> //////////////////////////////////////////////
> //////////////////////////////////////////////
>
>  The html file: it was converted by the HTML converter. It only works
>                 for netscape. Internet Explorer needs other commands.
>
>
> <HTML>
> <title>
>    Graph
> </title>
> <BODY>
> <!--"CONVERTED_APPLET"-->
> <!-- CONVERTER VERSION 1.0 -->
> <EMBED type="application/x-java-applet" java_CODE
> "ScatterApplet.class" java_CODEBASE = . java_ARCHIVE = "visad.jar" WIDTH
> = 400 HEIGHT = 300
>  
> pluginspage="http://java.sun.com/products/plugin/1.1/plugin-install.html";><NOEMBED>
>
> </NOEMBED></EMBED>
>
> <!--
> <APPLET  CODE = "ScatterApplet.class" CODEBASE = . ARCHIVE = "visad.jar"
> WIDTH = 400 HEIGHT = 300 >
>
>
> </APPLET>
> -->
> <!--"END_CONVERTED_APPLET"-->
>
> </BODY>
> </HTML>
>
>
>
>
> dsoleno wrote:
>
> >  You can run JDK 1.2 beta 3  applets in browsers if you configure your
> > browser to use the corresponding JRE 1.2 beta 3 downloadable from
> > Sun's Developer Connection (you have to register first) instead of the
> > browser's default one.  Try looking at Sun's White Paper for general
> > information on the compile and runtime environments as well as a whole
> > host of other topics.
> >
> > A word of warning before you begin.  The use of RMI in applets is
> > complicated. By default having an applet contact a host other than the
> > one that served the applet class file raises an Exception from the
> > AppletSecurityManager.
> > Netscape Security Issues is a good source of information for
> > Communicator woes and workarounds.
> > Internet Explorer presents additional challanges.  First you would
> > need to download the RMI package that Microsoft refuses to ship with
> > IE.  If you do a search of their site using "RMI" or "Java RMI" you
> > can find several places where they explain why they don't include RMI
> > by default and that they do make it available for download from their
> > site for anyone who is interested in using it.  What you won't find is
> > where on their site it is available unless you were insightful enough
> > to know that the magic search phrase is "RMI.zip".  In any case the
> > link above will take you to the ftp site.  After you have done this
> > you will still need to overcome their SecurityManager issues just as
> > in Netscape.  The MS Java page is a good place to start looking for
> > more information.
> >
> > In the end you may find it easier to install  Sun's Java plug-in and
> > use its console application to configure your browser's JRE.
> >
> > About six months ago the company I worked for looked into writing
> > sophisticated RMI enabled applets.  After six weeks of research we
> > postponed the project until such time that we deemed there to be
> > better support for RMI based applets by the manufacturers.  It could
> > be that it's an easy task these days, expecially with the Java plug-in
> > now available.
> >
> > I know I haven't addressed all the concerns you have but hopefully the
> > sites above will lead you to the answers you need.  Let the mailing
> > list know how it works out for you.  Maybe it's time my company starts
> > looking at applets again as well.
> >
> >
> >
> > --
> > David S. Soleno
> > Software Developer
> > SciberNet, Inc.
> > Tel: (619) 824-0840>
> > Fax: (619) 824-0846
> > e-mail: dsoleno@xxxxxxxxxxxxx
> >
>
>
> --
>
>  ------------------------------------------------------------------
> |                                                                  |
> |                                                                  |
> |  Frank Krause                            Tel: ++49-40-56081 254  |
> |                                          Fax: ++49-40-56081 222  |
> |  EVOTEC BioSystems GmbH               e-mail: fkrause@xxxxxxxxx  |
> |  Schnackenburgallee 114                                          |
> |  D-22525 Hamburg                           http://www.evotec.de  |
> |  Germany                                                         |
> |                                                                  |
> |                                                                  |
>  ------------------------------------------------------------------
 
Bill Hibbard
whibbard@xxxxxxxxxxxxx

  • 1998 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the visad archives: