| 3 |
|
//---IMPORTS--- |
| 4 |
|
import javax.swing.*; |
| 5 |
|
import javax.swing.border.*; |
| 6 |
– |
import java.awt.Color; |
| 7 |
– |
import uk.ac.ukc.iscream.util.*; |
| 8 |
– |
|
| 6 |
|
import java.awt.*; |
| 7 |
|
import java.awt.event.*; |
| 11 |
– |
import java.net.*; |
| 12 |
– |
import java.io.*; |
| 13 |
– |
import java.util.Date; |
| 14 |
– |
import java.text.DateFormat; |
| 15 |
– |
import java.util.Locale; |
| 16 |
– |
import java.util.HashMap; |
| 17 |
– |
import javax.swing.border.*; |
| 8 |
|
|
| 9 |
|
/** |
| 10 |
< |
* NASTY AND BASIC, PLEASE DON'T COMPLAIN |
| 10 |
> |
* Root for the SwingClient...starts the whole show off... |
| 11 |
|
* |
| 12 |
|
* @author $Author$ |
| 13 |
|
* @version $Id$ |
| 115 |
|
public static void addMessage(String message) { |
| 116 |
|
_messages.insert(message + "\n", 0); |
| 117 |
|
} |
| 128 |
– |
//---ATTRIBUTES--- |
| 118 |
|
|
| 119 |
+ |
//---ATTRIBUTES--- |
| 120 |
+ |
|
| 121 |
+ |
ImageIcon _serverIcon = new ImageIcon("server.gif"); |
| 122 |
+ |
JLabel _serverCountLabel; |
| 123 |
+ |
int _serverCount = 0; |
| 124 |
+ |
|
| 125 |
+ |
//---STATIC ATTRIBUTES--- |
| 126 |
+ |
|
| 127 |
|
static JLabel _controlStatus = new JLabel("Control Link: Disconnected", JLabel.LEFT); |
| 128 |
|
{ |
| 129 |
|
_controlStatus.setBorder(new EtchedBorder(EtchedBorder.LOWERED)); |
| 134 |
|
_dataStatus.setBorder(new EtchedBorder(EtchedBorder.LOWERED)); |
| 135 |
|
} |
| 136 |
|
|
| 137 |
< |
static JLabel _queueStatus = new JLabel("-", JLabel.LEFT); |
| 137 |
> |
static JLabel _queueStatus = new JLabel(" ", JLabel.LEFT); |
| 138 |
|
{ |
| 139 |
|
_queueStatus.setBorder(new EtchedBorder(EtchedBorder.LOWERED)); |
| 140 |
|
} |
| 144 |
– |
|
| 145 |
– |
ImageIcon _serverIcon = new ImageIcon("server.gif"); |
| 146 |
– |
JLabel _serverCountLabel; |
| 147 |
– |
int _serverCount = 0; |
| 141 |
|
static JTextArea _messages = new JTextArea(); |
| 149 |
– |
|
| 150 |
– |
//---STATIC ATTRIBUTES--- |
| 151 |
– |
|
| 142 |
|
} |