All Packages Class Hierarchy This Package Previous Next Index
Class benno.awt.HostLabel
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Label
|
+----benno.awt.HostLabel
- public class HostLabel
- extends Label
- implements Runnable
This subclass of java.awt.Label provides a label which initially displays
the IP address of the supplied InetAddress object and then launches a thread to
look up the name of the host and to attempt to "ping" that host by connecting
to the WWW port (port 80).
The label automatically colour-codes itself depending on the status and known
information:
yellow whilst looking up host name.
cyan whilst attempting to ping.
green if pinged ok.
red if ping failed.
- Version:
- $Revision: 1.3 $
- Author:
- Ben Clifford
-
HostLabel(InetAddress)
-
-
run()
- The body of the thread to look up the host name
HostLabel
public HostLabel(InetAddress i)
run
public void run()
- The body of the thread to look up the host name
All Packages Class Hierarchy This Package Previous Next Index