Results 1 to 3 of 3
  1. #1
    Join Date
    Nov 2007
    Posts
    4
    Rep Power
    0

    Default Mouse Right click option not working in solaris and linux OS

    Hi all,

    I am working on the AWT/SWING java application. This application is working fine in window, but problem occurs when I make mouse right click option in solaris or linux no window is popup.......looking as right click option disabled.Pls provide me good suggestion for above problem.

    All guys suggestion are most welcome !!!!!!!!

    -Dinesh
    Last edited by dinesh kaushik; 11-21-2007 at 09:04 AM.

  2. #2
    hardwired's Avatar
    hardwired is offline Senior Member
    Join Date
    Jul 2007
    Posts
    1,576
    Rep Power
    9

    Default

    The popup trigger varies by platform. Try this in your MouseListener:
    Java Code:
    public void mousePressed(MouseEvent e) {
        checkPopupTrigger(e);
    }
    
    public void mouseReleased(MouseEvent e) {
        checkPopupTrigger(e);
    }
    
    public void mouseClicked(MouseEvent e) {
        checkPopupTrigger(e);
    }
    
    private void checkPopupTrigger(MouseEvent e) {
        System.out.println("isPopupTrigger = " + e.isPopupTrigger());
        System.out.println("isRightMouseButton = " +
                            SwingUtilities.isRightMouseButton());
    }

  3. #3
    Join Date
    Nov 2007
    Posts
    4
    Rep Power
    0

    Default

    Thanks for sending reply. But I am still unable to get expected output.

Similar Threads

  1. Replies: 6
    Last Post: 04-08-2009, 05:05 AM
  2. Mouse dragg not working
    By Preethi in forum AWT / Swing
    Replies: 1
    Last Post: 02-08-2008, 05:51 AM
  3. the -eprof option?
    By GVD in forum Advanced Java
    Replies: 2
    Last Post: 01-10-2008, 02:48 PM
  4. Keyboard key are not working in solaris and linux.
    By dinesh kaushik in forum AWT / Swing
    Replies: 1
    Last Post: 12-22-2007, 05:18 AM
  5. Click Framework 1.3
    By levent in forum Java Software
    Replies: 0
    Last Post: 06-09-2007, 09:27 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •