Class ChatDemo

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--javax.swing.JComponent
                    |
                    +--javax.swing.JPanel
                          |
                          +--ChatDemo

public class ChatDemo
extends JPanel


Field Summary
 (package private) ChatServerserverStub
           
 (package private) Timertimer
           

Fields inherited from class javax.swing.JComponent
WHEN_FOCUSED, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_IN_FOCUSED_WINDOW, UNDEFINED_CONDITION, TOOL_TIP_TEXT_KEY

Fields inherited from class java.awt.Component
TOP_ALIGNMENT, CENTER_ALIGNMENT, BOTTOM_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT

Constructor Summary
ChatDemo(ChatServer serverStub)
           
ChatDemo()
           

Method Summary
 voidaddMessage(String msg)
           
 static voidmain(String[] args)
           
 voidsetBusy(boolean busy)
           
 voidsetChatServer(ChatServer serverStub)
           
 voidstartTimer()
           
 voidstopTimer()
           

Methods inherited from class javax.swing.JPanel
updateUI, getUIClassID, getAccessibleContext, getUI, setUI

Methods inherited from class javax.swing.JComponent
getAlignmentX, getAlignmentY, getDebugGraphicsOptions, getHeight, getWidth, getX, getY, addNotify, disable, enable, grabFocus, removeNotify, requestFocus, resetKeyboardActions, revalidate, getAutoscrolls, getVerifyInputWhenFocusTarget, isDoubleBuffered, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, requestDefaultFocus, requestFocusInWindow, setAlignmentX, setAlignmentY, setDebugGraphicsOptions, contains, paintImmediately, reshape, repaint, setAutoscrolls, setDoubleBuffered, setEnabled, setOpaque, setRequestFocusEnabled, setVerifyInputWhenFocusTarget, setVisible, requestFocus, setBackground, setForeground, getNextFocusableComponent, setNextFocusableComponent, isLightweightComponent, getTopLevelAncestor, getMaximumSize, getMinimumSize, getPreferredSize, setMaximumSize, setMinimumSize, setPreferredSize, setFont, getGraphics, paint, print, printAll, update, getInsets, getVisibleRect, computeVisibleRect, paintImmediately, repaint, scrollRectToVisible, getPropertyChangeListeners, addPropertyChangeListener, removePropertyChangeListener, getVetoableChangeListeners, addVetoableChangeListener, removeVetoableChangeListener, getToolTipText, setToolTipText, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getDefaultLocale, setDefaultLocale, getActionMap, setActionMap, getInputMap, getInputMap, setInputMap, getInputVerifier, setInputVerifier, getRootPane, createToolTip, getRegisteredKeyStrokes, getConditionForKeyStroke, unregisterKeyboardAction, getTransferHandler, setTransferHandler, getBorder, setBorder, getAncestorListeners, addAncestorListener, removeAncestorListener, getSize, getInsets, getLocation, getToolTipLocation, getBounds, getActionForKeyStroke, getPropertyChangeListeners, addPropertyChangeListener, removePropertyChangeListener, getClientProperty, putClientProperty, getToolTipText, getListeners, registerKeyboardAction, registerKeyboardAction

Methods inherited from class java.awt.Container
countComponents, getComponentCount, doLayout, invalidate, layout, removeAll, transferFocusBackward, transferFocusDownCycle, validate, isFocusCycleRoot, isFocusTraversalPolicySet, remove, areFocusTraversalKeysSet, setFocusCycleRoot, getComponents, getComponent, findComponentAt, getComponentAt, locate, remove, isAncestorOf, applyComponentOrientation, isFocusCycleRoot, minimumSize, preferredSize, deliverEvent, getFocusTraversalPolicy, setFocusTraversalPolicy, paintComponents, printComponents, insets, getLayout, setLayout, getContainerListeners, addContainerListener, removeContainerListener, list, list, getFocusTraversalKeys, setFocusTraversalKeys, add, add, findComponentAt, getComponentAt, add, add, add

Methods inherited from class java.awt.Component
hide, list, nextFocus, repaint, show, transferFocus, transferFocusUpCycle, getFocusTraversalKeysEnabled, getIgnoreRepaint, hasFocus, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusOwner, isFocusTraversable, isFocusable, isFontSet, isForegroundSet, isLightweight, isShowing, isValid, isVisible, move, resize, setLocation, setSize, inside, repaint, setBounds, repaint, enable, enableInputMethods, setFocusTraversalKeysEnabled, setFocusable, setIgnoreRepaint, show, dispatchEvent, getBackground, getForeground, getComponentOrientation, setComponentOrientation, getFocusCycleRootAncestor, getParent, getCursor, setCursor, getSize, size, resize, setSize, handleEvent, postEvent, keyDown, keyUp, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, getFont, paintAll, getGraphicsConfiguration, createImage, imageUpdate, remove, getLocation, getLocationOnScreen, location, setLocation, contains, add, bounds, getBounds, setBounds, getToolkit, getDropTarget, setDropTarget, getComponentListeners, addComponentListener, removeComponentListener, getFocusListeners, addFocusListener, removeFocusListener, getHierarchyBoundsListeners, addHierarchyBoundsListener, removeHierarchyBoundsListener, getHierarchyListeners, addHierarchyListener, removeHierarchyListener, getInputMethodListeners, addInputMethodListener, removeInputMethodListener, getKeyListeners, addKeyListener, removeKeyListener, getMouseListeners, addMouseListener, removeMouseListener, getMouseMotionListeners, addMouseMotionListener, removeMouseMotionListener, getMouseWheelListeners, addMouseWheelListener, removeMouseWheelListener, getInputContext, getInputMethodRequests, getColorModel, createVolatileImage, getPeer, list, list, getTreeLock, getName, toString, setName, getLocale, setLocale, getFontMetrics, createImage, checkImage, prepareImage, checkImage, prepareImage, createVolatileImage, action, gotFocus, lostFocus

Methods inherited from class java.lang.Object
hashCode, notify, notifyAll, wait, wait, wait, getClass, equals

Field Detail

serverStub

ChatServer serverStub

timer

Timer timer
Constructor Detail

ChatDemo

public ChatDemo(ChatServer serverStub)

ChatDemo

public ChatDemo()
Method Detail

addMessage

public void addMessage(String msg)

main

public static void main(String[] args)

setBusy

public void setBusy(boolean busy)

setChatServer

public void setChatServer(ChatServer serverStub)

startTimer

public void startTimer()

stopTimer

public void stopTimer()

Association Links

to Class ChatServer

to Class javax.swing.Timer

to Class javax.swing.JButton

to Class javax.swing.JTextField

to Class javax.swing.JTextArea

to Class javax.swing.JScrollPane

to Class javax.swing.JButton

Dependency Links

to Class javax.swing.JPanel

to Class ChatServer

to Class javax.swing.Timer

to Class java.awt.event.ActionEvent

to Class java.lang.String

to Class javax.swing.JButton

to Class javax.swing.JTextField

to Class javax.swing.JTextArea

to Class javax.swing.JScrollPane

to Class Diagram <default>