jmenu

How to make a JMenu have Button behaviour in a JMenuBar

Hi I was trying to make a JMenu behave like a JButton but I'm having some problems and hopefully someone here can help! I've added a MenuListener to the JMenu item with this but I cant get the popup menu/focus to leave to enable me to properly click the JMenu repeated times to trigger this function and i was hoping someone could tell m...

jsubmenu not getting focus after moving main panel displaying on cygwin

I have a java application running on RedHat Linux that uses swing components. To run the application, I do an ssh -Y from windows machine running cygwin to the RedHat Linux server and then run the application. My application has some menus on the main panel with each menu having submenus. If I don't move the main panel when the applica...

Java jmenu on left side

In response to a recent slashdot post, I've decided I wish to add an option for menus to appear on say the left hand side so it doesn't obscure the entire application when open. Simply for user convenience, is there any way to force a jmenu on a jdesktop to be on the left hand side or right hand side, i.e., a vertical menu? ...

Why isn't JMenu always on top?

The JMenu behaves normally until a JButton is used to update a JTable on the JFrame. Then the JMenu is mostly hidden by a JPanel (see images below). Shouldn't the JMenu always be on top when it is selected? Why has it been pushed to the back? The code that updates the table on jButtonAddActionPerformed is. public class MyClass extends j...