othello.gui
Class OthelloJApplet

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--java.awt.Panel
                    |
                    +--java.applet.Applet
                          |
                          +--javax.swing.JApplet
                                |
                                +--othello.gui.OthelloJApplet
All Implemented Interfaces:
javax.accessibility.Accessible, java.awt.image.ImageObserver, java.awt.MenuContainer, OthelloParameters, javax.swing.RootPaneContainer, java.io.Serializable

public class OthelloJApplet
extends javax.swing.JApplet
implements OthelloParameters

The class OthelloJApplet function as the main class for this package. The class OthelloJRootPane has all graphics and the AI-connection.

Version:
$Revision: 1.0.1, 2003-09-18 $
Author:
Peter Larsson
See Also:
Serialized Form

Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface othello.gui.OthelloParameters
A_HINT, ABOUT, BACKGROUNDCOLOR, BLACK, BLACKCOLOR, BLACKPLAYER, BOARDSIZE, BUTTONBACKGROUNDCOLOR, BUTTONFOREGROUNDCOLOR, CANCEL, CELLSIZE, COLUMNS, DEPTH_PLY, DESIGNTEAM, EMPTY, EXIT, FALSE, FORWARD, GAME, GAME_OVER, HEIGHT, HELP, HINT, LABELFOREGROUNDCOLOR, NEW_GAME, NO, NO_OF_BLACKS, NO_OF_WHITES, OFFSET, OK, OTHELLO, PICS, PLAYER_PLAYS_BLACK, PLAYER_PLAYS_WHITE, PLAYERS, PLAYERSTRINGS, REWIND, ROWS, SPACING, TRUE, VERSION, WHITE, WHITECOLOR, WHITEPLAYER, WIDTH, WINNER, YES
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
OthelloJApplet()
           
 
Method Summary
 void init()
          Initiates the GUI interface towards the user
 void run()
          This is the run method for the JApplet
 void stop()
          The method that stops the JApplet
 
Methods inherited from class javax.swing.JApplet
getAccessibleContext, getContentPane, getGlassPane, getJMenuBar, getLayeredPane, getRootPane, remove, setContentPane, setGlassPane, setJMenuBar, setLayeredPane, setLayout, update
 
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
 
Methods inherited from class java.awt.Panel
addNotify
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getInsets, getLayout, getListeners, getMaximumSize, getMinimumSize, getPreferredSize, insets, invalidate, isAncestorOf, layout, list, list, locate, minimumSize, paint, paintComponents, preferredSize, print, printComponents, remove, removeAll, removeContainerListener, removeNotify, setFont, validate
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addPropertyChangeListener, addPropertyChangeListener, bounds, checkImage, checkImage, contains, contains, createImage, createImage, disable, dispatchEvent, enable, enable, enableInputMethods, getBackground, getBounds, getBounds, getColorModel, getComponentOrientation, getCursor, getDropTarget, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, 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, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, 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
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OthelloJApplet

public OthelloJApplet()
Method Detail

init

public void init()
Initiates the GUI interface towards the user
Overrides:
init in class java.applet.Applet

run

public void run()
This is the run method for the JApplet

stop

public void stop()
The method that stops the JApplet
Overrides:
stop in class java.applet.Applet