コード例 #1
0
ファイル: LlamaChat.java プロジェクト: raulgq1/LlamaChat
 public void mouseClicked(MouseEvent e) {
   if (e.getSource() == bottomText) {
     try {
       getAppletContext().showDocument(new URL(linkURL), "_blank");
     } catch (java.net.MalformedURLException ex) {
     }
   } else {
     maybeShowPopup(e);
   }
 }
コード例 #2
0
ファイル: LlamaChat.java プロジェクト: raulgq1/LlamaChat
 /** 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());
   }
 }
コード例 #3
0
ファイル: LlamaChat.java プロジェクト: raulgq1/LlamaChat
 public void mouseExited(MouseEvent e) {
   if (e.getSource() == bottomText) {
     bottomText.setCursor(Cursor.getDefaultCursor());
   }
 }
コード例 #4
0
ファイル: LlamaChat.java プロジェクト: raulgq1/LlamaChat
 public void mouseEntered(MouseEvent e) {
   if (e.getSource() == bottomText) {
     bottomText.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));
   }
 }