luck, db
There are no new questions, but there may be new answers.
SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions How To Answer Questions
Originally posted by Wally Flint:
Oh yes, and one more thing!!
When I select the JMenuItem, I want to keep the JMenu that contains it from collapsing until I have instantiated a JOptionPane (like an "ok" message), and then after the user clicks "ok" in the dialog box, I'll let the JMenu collapse. Can't figure out how to do that either. This is one of those days where I've spent so many hours trying to do the simplest things that I can't think anymore. Pardon me if I'm asking stupid questions.
Originally posted by Wally Flint:
And I'm having another problem with JMenuItem. If I listen for mouseReleased, the behavior seems unpredictable. On a MacBook Pro, if I click the JMenu to open it up, then release the mouse, then move the mouse down until it is over the JMenuItem, then click the mouse, the listener that is listening to the JMenuItem gets a mouseReleased. But if I press and hold the mouse on the JMenu, then keep holding the mouse down until I am over the JMenuItem, then release the mouse, I don't get a mouseReleased...
man this swing stuff is enough to drive you to distraction.
Your buns are mine! But you can have this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
|