How can I press a swing JButton using mouse events? -


I have a pocket (or component, literally) that I will try to think that it has been clicked and that's why Firing its action incident I do not want to call the action or doClick directly because I am trying to make a solution that normalizes beyond the buttons, and I am forced to post events.

I would have thought that posting a MousePressed event would have done this in the queue of the system event, but not so. (With the appropriate location, count, etc.).

Then I thought that a mouse was rotated over the mouse, the mouse was pressed, a mouse and mouse clicked mouse, but no.

None of this causes the fire to fire Jebton's action as if I actually click on it.

Has anyone demonstrated their actions by Pocketton driving with mouse events? Moved a JSlider with mouse events? Tree node extension?

Thanks for any help.

Have you tried the FireActionPerformed method? I can not stop from the top of my head, now I remember that all components are near, but if I remember correctly, then all buttons and menu items should be separated. Just an idea


Comments

Popular posts from this blog

Eclipse CDT variable colors in editor -

AJAX doesn't send POST query -

wpf - Custom Message Box Advice -