Beispiel #1
0
 public void mouseClicked(MouseEvent e) {
   if (e.getSource() == bottomText) {
     try {
       getAppletContext().showDocument(new URL(linkURL), "_blank");
     } catch (java.net.MalformedURLException ex) {
     }
   } else {
     maybeShowPopup(e);
   }
 }
Beispiel #2
0
 /** 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());
   }
 }
Beispiel #3
0
 public void mouseExited(MouseEvent e) {
   if (e.getSource() == bottomText) {
     bottomText.setCursor(Cursor.getDefaultCursor());
   }
 }
Beispiel #4
0
 public void mouseEntered(MouseEvent e) {
   if (e.getSource() == bottomText) {
     bottomText.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));
   }
 }