Class TestApplet

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--java.awt.Panel
                    |
                    +--java.applet.Applet
                          |
                          +--TestApplet

public class TestApplet
extends java.applet.Applet
implements java.awt.event.ActionListener, java.lang.Runnable

This applet is used to connect (TCP connection) to the Dynamic Proxy Server (DPS) running the Rlcrx proxylet [the host it was served from] to allow the packets to be streamed back to the application/applet of the browser Because it is an untrusted applet, it can only connect to the host from which it came, i.e in conjunction with the Dynamic Proxy Server(DPS) that the applet was downloaded from.

See Also:
Serialized Form

Inner Class Summary
 class TestApplet.CloseableFrame
          This class is a convenient subclass of Frame that knows how to handle the WindowClosing event generated when the user requests that the window be closed.
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Constructor Summary
TestApplet()
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
          When the button is clicked, start a thread that will connect to the DPS server from which this applet was received and receive the data that is being multicast by Rlcsender....
 void init()
          The init method just creates a button to display the applet.
static void main(java.lang.String[] args)
           
 void run()
          This is the method that does the networking and displays the results.
 
Methods inherited from class java.applet.Applet
destroy, getAppletContext, getAppletInfo, getAudioClip, getAudioClip, getCodeBase, getDocumentBase, getImage, getImage, getLocale, getParameter, getParameterInfo, isActive, newAudioClip, play, play, resize, resize, setStub, showStatus, start, stop
 
Methods inherited from class java.awt.Panel
addNotify
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getInsets, getLayout, getMaximumSize, getMinimumSize, getPreferredSize, insets, invalidate, isAncestorOf, layout, list, list, locate, minimumSize, paint, paintComponents, paramString, preferredSize, print, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, removeNotify, setFont, setLayout, update, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addPropertyChangeListener, addPropertyChangeListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, getBackground, getBounds, getBounds, getColorModel, getComponentOrientation, getCursor, getDropTarget, getFont, getFontMetrics, getForeground, getGraphics, getHeight, getInputContext, getInputMethodRequests, getLocation, getLocation, getLocationOnScreen, getName, getParent, getPeer, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isDisplayable, isDoubleBuffered, isEnabled, isFocusTraversable, isLightweight, isOpaque, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, remove, removeComponentListener, removeFocusListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, reshape, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setForeground, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, show, size, toString, transferFocus
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TestApplet

public TestApplet()
Method Detail

init

public void init()
The init method just creates a button to display the applet. When the user clicks the button, we'll check who is logged on.
Overrides:
init in class java.applet.Applet

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
When the button is clicked, start a thread that will connect to the DPS server from which this applet was received and receive the data that is being multicast by Rlcsender....
Specified by:
actionPerformed in interface java.awt.event.ActionListener

run

public void run()
This is the method that does the networking and displays the results. It is implemented as the body of a separate thread because it might take some time to complete, and applet methods need to return promptly.
Specified by:
run in interface java.lang.Runnable

main

public static void main(java.lang.String[] args)