Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7839139
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T15:20:36+00:00 2026-06-02T15:20:36+00:00

I have written a program with two components that use mouseListeners: ResizeRectangle draws a

  • 0

I have written a program with two components that use mouseListeners:

  1. ResizeRectangle draws a rectangle with handles and allows moving and resizing of the rectangle. It handles MouseEvents and MouseMotionEvents (MouseMove, MousePressed, MouseDragged and MouseReleased).
  2. IconGrid draws a grid of icons within the rectangle and allows selecting (clicking) an icon. It handles the MouseClicked event for this.

It all works fine under Windows. I tried to port the program to the Mac today, but there the MouseClicked event never gets fired. I put the MouseClicked event in ResizeRectangle, but there it also wont get fired. I put the MouseReleased event in IconGrid and that does get fired. So the problem really seems to be with the mouseClicked event.

I read another article that stated that on the Mac even a small pixel change between mouse press and mouse release would result in MouseClicked not being fired. But even when I click with my mouse in the air (so no chance of moving the mouse between the press and the release), the mouseClicked event doesnt get fired.

Anyone else had this problem? Is this a bug on the Mac?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T15:20:37+00:00Added an answer on June 2, 2026 at 3:20 pm

    Got the source of the error. I run OSX in a virtual machine (VMWARE) and had a mouse compatibility option checked which caused the problem with the MouseClicked event. Sorry for the trouble.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have two programs written in C++ that use Winsock. They both accept TCP
I have written a program that uses qhttp to get a webpage. This works
I have written a java program that is actually works as a gui to
I have written a c# program that calls a c++ dll that echoes the
I am having trouble compiling a program I have written. I have two different
I have a program written in c that gets invoked like: my_program arg1 arg2
I have written down the following program that uses the quicksort algorithm to sort
Basically I have written two modules for my Python Program. I need one module
I need help to identify the bug in my program that I have written
I've written a small Swing program that draws a head and when a JCheckBox

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.