public void mouseClicked(MouseEvent e) { if (e.getSource() == bottomText) { try { getAppletContext().showDocument(new URL(linkURL), "_blank"); } catch (java.net.MalformedURLException ex) { } } else { maybeShowPopup(e); } }
/** Checks to see if the event was to show the popup menu */ private void maybeShowPopup(MouseEvent e) { if ((e.getModifiers() & MouseEvent.BUTTON3_MASK) != 0) { popup.show(userList, e.getX(), e.getY()); } }
public void mouseExited(MouseEvent e) { if (e.getSource() == bottomText) { bottomText.setCursor(Cursor.getDefaultCursor()); } }
public void mouseEntered(MouseEvent e) { if (e.getSource() == bottomText) { bottomText.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR)); } }