Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Linux Archive
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-21-2007, 09:59 AM
Member
 
Join Date: Nov 2007
Posts: 4
dinesh kaushik is on a distinguished road
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 10:04 AM.
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 11-21-2007, 10:41 AM
Senior Member
 
Join Date: Jul 2007
Posts: 1,266
hardwired is on a distinguished road
The popup trigger varies by platform. Try this in your MouseListener:
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()); }
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 11-21-2007, 06:02 PM
Member
 
Join Date: Nov 2007
Posts: 4
dinesh kaushik is on a distinguished road
Thanks for sending reply. But I am still unable to get expected output.
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Windows Linux conflict - TrayIcon image not display in Linux Eranga Advanced Java 2 01-06-2009 06:24 PM
Mouse dragg not working Preethi AWT / Swing 1 02-08-2008 06:51 AM
the -eprof option? GVD Advanced Java 2 01-10-2008 03:48 PM
Keyboard key are not working in solaris and linux. dinesh kaushik AWT / Swing 1 12-22-2007 06:18 AM
Click Framework 1.3 levent Java Announcements 0 06-09-2007 10:27 AM


All times are GMT +3. The time now is 02:29 PM.


VBulletin, Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org