001         package com.croftsoft.apps.ajgp.anim;
002    
003         import java.awt.Dimension;
004    
005         import com.croftsoft.core.CroftSoftConstants;
006         import com.croftsoft.core.gui.multi.MultiApplet;
007         import com.croftsoft.core.lang.Pair;
008    
009         /*********************************************************************
010         * An example MultiApplet implementation.
011         *
012         * @version
013         *   $Date: 2008/04/19 21:31:00 $
014         * @since
015         *   2002-09-15
016         * @author
017         *   <a href="https://www.croftsoft.com/">David Wallace Croft</a>
018         *********************************************************************/
019    
020         public final class  ExampleMultiApplet
021           extends MultiApplet
022         //////////////////////////////////////////////////////////////////////
023         //////////////////////////////////////////////////////////////////////
024         {
025    
026         private static final String  VERSION = "2003-09-15";
027    
028         private static final String  TITLE = "Example MultiApplet";
029    
030         private static final String  APPLET_INFO
031           = "\n" + TITLE
032           + "\n" + CroftSoftConstants.COPYRIGHT
033           + "\n" + CroftSoftConstants.DEFAULT_LICENSE
034           + "\n" + CroftSoftConstants.HOME_PAGE
035           + "\n" + "Version " + VERSION
036           + "\n";
037    
038         private static final Pair [ ]  APPLET_PAIRS = {
039           new Pair (
040             "Example",
041             "com.croftsoft.ajgp.anim.AnimationExample" ) };
042    
043         //////////////////////////////////////////////////////////////////////
044         // News panel constants
045         //////////////////////////////////////////////////////////////////////
046    
047         private static final String  NEWS_NAME
048           = MultiApplet.DEFAULT_NEWS_NAME;
049    
050         private static final String  NEWS_HTML
051           = "<html><body><pre>" + APPLET_INFO + "</pre></body></html>";
052    
053         private static final String  NEWS_PAGE
054           = "https://www.croftsoft.com/library/books/ajgp/";
055    
056         //////////////////////////////////////////////////////////////////////
057         // Frame constants
058         //////////////////////////////////////////////////////////////////////
059    
060         private static final String  FRAME_TITLE = TITLE;
061    
062         private static final String  FRAME_ICON_FILENAME
063           = "media/frame_icon.png";
064    
065         private static final Dimension  FRAME_SIZE = null;
066    
067         private static final String  SHUTDOWN_CONFIRMATION_PROMPT
068           = "Close " + TITLE + "?";
069    
070         //////////////////////////////////////////////////////////////////////
071         //////////////////////////////////////////////////////////////////////
072    
073         public static void  main ( String [ ]  args )
074         //////////////////////////////////////////////////////////////////////
075         {
076           System.out.println ( APPLET_INFO );
077    
078           MultiApplet.launch (
079             APPLET_INFO,
080             APPLET_PAIRS,
081             NEWS_NAME,
082             NEWS_HTML,
083             NEWS_PAGE,
084             FRAME_TITLE,
085             FRAME_ICON_FILENAME,
086             ExampleMultiApplet.class.getClassLoader ( ),
087             FRAME_SIZE,
088             SHUTDOWN_CONFIRMATION_PROMPT );
089         }
090    
091         //////////////////////////////////////////////////////////////////////
092         //////////////////////////////////////////////////////////////////////
093    
094         public  ExampleMultiApplet ( )
095         //////////////////////////////////////////////////////////////////////
096         {
097           super ( 
098             APPLET_INFO,
099             APPLET_PAIRS,
100             NEWS_NAME,
101             NEWS_HTML,
102             NEWS_PAGE );
103         }
104    
105         //////////////////////////////////////////////////////////////////////
106         //////////////////////////////////////////////////////////////////////
107         }