Questions tagged [jmenu]

361 questions
0
votes
1 answer

Vertical layout of the icon and text in a JMenu

I try to find a way to place the icon of a JMenu above its text. I've seen the method setComponentOrientation(..), but it influences only the horizontal order of the icon and the text (icon on the left side, text on the right - or the opposite). Is…
milka
  • 131
  • 2
  • 6
0
votes
1 answer

How to call a Jmenu screen after successfulley login in java swing

Please see the below codem I am trying to call a Jmenu class after successful log in Login : public class Login { Connection con; Statement st; ResultSet rs; JFrame f = new JFrame ("User Login"); JLabel l = new JLabel…
0
votes
2 answers

how add Cut and find to a menu ?

I have added copy and clear to my codes and they work fine, but i still have problem with the cut and the find command that allow user to search the output area for specifed test public class rr extends JFrame implements ActionListener { private…
0
votes
1 answer

How to get JMenu title in Joomla

I have a JMenu object (from standard mod_menu in Joomla 2.5) but I don't know how to retrieve its title, does anyone know how to do this? I retrieved my active menu in this way: $menu = $app->getMenu(); It was easy to get every menu item or module…
BitRider
  • 255
  • 2
  • 11
0
votes
1 answer

jmenu - transparency for child menu elements

I am using jmenu.js and setting child menu elements to have transparency. Problem is that the child elements with transparency show the parent's (i.e. main menu bar) background. What I want is have transparency on the child menus which show…
IlludiumPu36
  • 4,196
  • 10
  • 61
  • 100
0
votes
2 answers

Is it possible to make some items in the menu to fade in with 500 ms onset delay in Java?

I have a JMenu of 16 JMenuItems, of which I want 3 items to be displayed upfront and the rest 13 items to fade in with a 500 ms delay. Is there a way to do this animation in Java?
naive
  • 13
  • 5
0
votes
2 answers

How to add a background picture to the JMenu Screen?

so I was wondering if there is anyway to add a picture as a background for the jmenu and by that I don't mean the JMenu bar but the actual screen below it. I have looked online for a long time and can't seem to find any solution to my problem. Any…
user2229592
  • 71
  • 1
  • 1
  • 9
0
votes
0 answers

JMenu's pop-up will not close when the cursor leaves the JMenu

JButton jButton1 = new JButton("Click Me"); public void showPopupMenu1(JButton invoker){ JPopupMenu popupMenu = new JPopupMenu(); popupMenu.setLayout(new GridLayout(5, 1)); JMenu menu = new JMenu("Other"); menu.add(new…
imarefe
  • 5
  • 4
0
votes
1 answer

JMenu Item Action Listener is not being detected

I am making a library database for a school project and am having a little trouble with my menu. So the main problem is that in the Action Listener method when I write (e.getSource()==m1Frame1) my program does not detect the menu item and gives…
user2229592
  • 71
  • 1
  • 1
  • 9
0
votes
2 answers

JFileChooser to open a file from a JMenu

fileItem1is a JMenuItem when i click on fileItem1, this is how you would make it open a file and then just display the name of that file in the JFrame: // open file fileItem1.addActionListener(new ActionListener() { public void…
user2145688
  • 11
  • 1
  • 1
  • 7
0
votes
1 answer

Java setPressedIcon not working

I have menu in my application, and I want to set menu item normal state icon, and pressed state icon. Normal state icon is added, but when I press menu item, normal state icon is not changed by pressed state icon. What is problem here: JMenu…
MrD
  • 2,423
  • 3
  • 33
  • 57
0
votes
1 answer

JMenuItems are hiding behind my JApplet

Well I'm making a client for my server and the JMenu worked fine until I added the applet, now when I click on the menu to look at the drop down menu, it doesn't show. I assume its hiding behind the applet but I can't fix it public class Loader…
Jonathan Beaudoin
  • 2,158
  • 4
  • 27
  • 63
0
votes
1 answer

Implementing java menubar and opening new window

I am trying to develop java menubar with different items on it. And once you click on the selected item another window should be opened. I manage to run the menu but it seems I can not open the other windows. In other words my menu item is there but…
John
  • 627
  • 6
  • 19
0
votes
4 answers

Java ActionListener in another Class

I am trying to build a small notepad application using the Java Swing library. I have a main function which calls a constructor of JFrame (NotepadClass). In this NotepadClass I have a MenuDesigner class something like this: this.setJMenuBar(new…
Koushik S
  • 11
  • 2
0
votes
1 answer

Get rid of sub menu in Java Swing using Windows builder

I am trying to learn Java Swing and Windows Builder by creating a personal project. I added a menu bar File, Edit, View, Help etc. When I click on 'File' I get Open,Save,Save As. This is also correct. But using the default options in Windows…
Deepak B
  • 2,245
  • 5
  • 26
  • 28