int newItemSpace = itemSpaceFromEvent(e);
if (currentItemSpace != newItemSpace) {
currentItemSpace = newItemSpace;
if (currentItemSpace != -1) {
// add anything special?
OQAppletMessage m = (OQAppletMessage) messages.elementAt(messages.size()-(newItemSpace+1));
if (m != null) { // should always be real, but just in case
String iu = m.getItemURL();
if (iu.equals("")) {
setStatusLabelText("(No link for this item)");
} else {
setStatusLabelText(iu);
}
}
} else {
// add anything special?
if (messages.size() > 0) { setDefaultStatusLabel();}
}
paint(getGraphics());
}
} else {
if (e.id == Event.MOUSE_DOWN) {
int newItemSpace = itemSpaceFromEvent(e);
if (newItemSpace != -1) {
// see if there is an ItemURL header,
// then try to open a browser window to it.
OQAppletMessage m = (OQAppletMessage) messages.elementAt(messages.size()-(newItemSpace+1));
String s = m.getItemURL();
if (s.equals("") == false) {
setStatusLabelText("Full Story at: " + s);
} else {
setStatusLabelText("No associated story.");
}