This week's giveaway is in the
We're giving away four copies of
video training course and have Ken Kousen on-line!
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
video training course this week in the
Swing / AWT / SWT
Joined: Sep 10, 2008
Mar 26, 2009 10:00:21
Is there a way to get a
to expand its menus when clicking instead of when hovering the mouse over the menu?
Joined: Jul 26, 2007
Mar 26, 2009 11:16:02
So you want to expand/collapse the submenus on mouse movements.
You can get the result by subclassing
and adding a mouse listener to detect the mouse entered and mouse exited events. Check out JMenu#fireMenuXXX methods.
Warning:Take this with a grain of salt. I haven't tried it myself.
Also check out
How to ask questions
Donate a pint, save a life!
Onff-turn it on!
Did you see how Paul
cut 87% off of his electric heat bill with 82 watts of micro heaters
subject: JPopupMenu question
Problem while working with JPopupMenu
How to make JPopupMenu invisible?
show and hide a JPopupMenu
Scrolling JPopup Menu
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015