1. Drop Down Menus coderanch.comi have two drop down menus. one is the parent menu and the other is a child drop down menu. the child drop down menu listing should change whenver the parent entry change. To make thing more clear- Eg; suppose parent drop down menu has two listing: Hardware Software and child drop down menu has following thigs: Hard disk VB Memory ... |
2. drop down menus.... coderanch.com |
3. Add Drop Down Menu coderanch.com |
4. Drop Down Menu Buttons coderanch.comHi. I'm looking for a way that I can create a menu button that has an optional drop-down arrow. Clicking the button switches the mode of my application to a "drawing" mode, where you can draw several different types of lines. If they just click the button, it should use the default drawing tool, but if they click the drop-down arrow ... |
5. drop down menu coderanch.comusing the correct layoutManager/s (often nested) usually gets you what you want with location. Absolute positioning (null layout) lets you specify location, but then you are also responsible for sizing components and allowing for different user options e.g. font/resolution/resizing etc etc. All this is handled by the layoutManager, so using a null layoutManager is rarely recommended. |
6. Drop down menu coderanch.comOk. I have another problem. I tried creating a Menu File -> exit. The File text showed up but when "File" is selected, there is no drop down for exit. Here is the added code I've created.. JMenuBar menuBar = new JMenuBar(); JMenu menu = new JMenu("File"); menu.setFont(BIGGER_FONT); menuBar.add(menu); String[] menuText = {"exit"}; for (int i = 0; i < menuText.length; ... |
7. drop down menu java-forums.org |