Class AppletFrame

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class AppletFrame extends JPanel
See Also:
  • Constructor Details

    • AppletFrame

      public AppletFrame(JPanel a, int w, int h, String baseDirPath, Hashtable params)
      Construct an AppletFrame.
      Parameters:
      a - the applet
      w - width of the frame
      h - height of the frame
      baseDirPath - base directory path
      params - applet parameters
  • Method Details

    • appletResize

      public void appletResize(int width, int height)
      Resize the applet to the width and height
      Parameters:
      width - new width
      height - new height
    • getCodeBase

      public URL getCodeBase()
      Get the code base
      Returns:
      code base
    • getDocumentBase

      public URL getDocumentBase()
      Get the document base
      Returns:
      document base
    • getParameter

      public String getParameter(String name)
      Get a parameter from the list of parameters
      Parameters:
      name - name of the parameter
      Returns:
      get the parameters for this name
    • getImage

      public Image getImage(URL url)
      Get the image at the url
      Parameters:
      url - location of image
      Returns:
      the image
    • showStatus

      public void showStatus(String status)
      Show the status of this applet
      Parameters:
      status - applet status
    • getApplet

      public JPanel getApplet(String name)
      Get the applet of said name
      Parameters:
      name - name of the applet
      Returns:
      null
    • getApplets

      public Enumeration getApplets()
      Get an enumeration of the applets.
      Returns:
      null in this implementation
    • getAudioClip

      public Clip getAudioClip(URL url)
      Get the audio clip at the location specified.
      Parameters:
      url - location of clip
      Returns:
      the clip
    • showDocument

      public void showDocument(URL url)
      Show the document at the location specified
      Parameters:
      url - document location
    • showDocument

      public void showDocument(URL url, String target)
      Show the document at the url with the target
      Parameters:
      url - document URL
      target - target
    • getStream

      public InputStream getStream(String key)
      Get the InputStream for the given key
      Parameters:
      key - key for stream
      Returns:
      null
    • getStreamKeys

      public Iterator getStreamKeys()
      Get the keys for a given stream
      Returns:
      null
    • setStream

      public void setStream(String key, InputStream stream)
      Set the input stream for the given key
      Parameters:
      key - key to use
      stream - stream for key