All Examples This Package
Class examples.rmi.stock.StockApplet
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----java.awt.Panel
|
+----java.applet.Applet
|
+----examples.rmi.stock.StockApplet
- public class StockApplet
- extends Applet
- implements StockNotify, Serializable
This applet is part of the WebLogic RMI Stock examples package.
The StockApplet exports a remote object, and contacts the StockWatch
server to register interest in receiving stock updates. The applet
displays the updates in a graph format.
The classes in this package have been adapted to work with
WebLogic RMI from WebLogic.
-
StockApplet()
-
-
destroy()
- Cleans up when applet is destroyed.
-
init()
- Initializes the applet.
-
paint(Graphics)
- Repaints the panel.
-
update(Date, Stock[])
- Displays stock updates for a particular time.
StockApplet
public StockApplet()
update
public void update(Date date,
Stock stock[])
- Displays stock updates for a particular time.
- Parameters:
- date - Time of the stock update
- stocks - Array of the stocks for which the
object has registered interest.
init
public void init()
- Overrides:
- init in class Applet
destroy
public void destroy()
- Cleans up when applet is destroyed. The applet cancels all
requests for stock updates.
- Overrides:
- destroy in class Applet
paint
public void paint(Graphics g)
- Repaints the panel.
- Parameters:
- g - Graphics object
- Overrides:
- paint in class Container
All Examples This Package