brandonborkholder / glg2d

Graphics2D wrapper for JOGL
77 stars 31 forks source link

Mouse Events in UIDemo #25

Closed shannah closed 10 years ago

shannah commented 10 years ago

I am running the UIDemo class (from tests) and it renders great, but the window doesn't seem to acknowledge any mouse events. E.g. When I click on any of the components, nothing happens. Can't select/enter text in text fields etc...

Is this a current limitation, or is there something I'm missing.

shannah commented 10 years ago

Edit: It seems that I can enter text into text fields, and I can toggle focus. But mouse presses (e.g. on buttons) don't appear to have any effect. E.g. When you click on a button, it should look like the button is pressed, but there is no change to the look of the button. Same with text fields (which is why I thought for a moment that it wasn't registering the mouse clicks at all).

shannah commented 10 years ago

I should mention, I'm on OS X Java 7u45. I have actually tried attaching mouse listeners to buttons (within the GLG2DCanvas), the GLG2DCanvas itself and the JFrame and none of them seem to register mouse press events.

brandonborkholder commented 10 years ago

Fixed in 005b777a929c5da1b9fe6344a57b4b7f5c844c57. Re-open this ticket if you still have trouble.

shannah commented 10 years ago

Thanks. Works great now!