Hierarchal Menu Behavior in Swing

When a user pops up a hierarchical menu, she should be able to drag directly to the desired item in that menu. The shortest path to the desired menu item is usually a diagonal path.
Under Swing, the user must first drag horizontally into the hierarchical menu and then drag down that menu to select the item, otherwise the hierarchical menu closes. This is very disconcerting behavior for users who are expecting the normal platform behavior (the Mac and Windows allow direct [diagonal] dragging).
I feel this is a significant problem, but I tried submitting it as a bug and didn't get much interest from Sun. Please post your agreement (or disagreement) to this topic so that I can build a stronger case. Thanks.

Personally, I find it mildly amazing that Sun showed "no interest" in this issue. It's the lack of attention paid to exactly these sorts of seemingly minor, but actually extremely important, interface issues that has caused developers to look for alternatives to Swing. SWT, anyone?
If Sun cares about the user experience they will pay attention to this issue, and others like it...

Similar Messages

  • Pop up menu behavior

    I'm using Dreamweaver 2004 MX
    Created a Pop up menu behavior in my Template and it worked
    OK.
    When new html pages are created based on theTemplate, the Pop
    up menu does not work. Any suggestions?

    Are you sitting down? Read this -
    http://www.losingfight.com/blog/2006/08/11/the-sordid-tale-of-mm_menufw_menujs/
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "jbudraitis" <[email protected]> wrote in
    message
    news:g9s73j$4hp$[email protected]..
    > I'm using Dreamweaver 2004 MX
    >
    > Created a Pop up menu behavior in my Template and it
    worked OK.
    >
    > When new html pages are created based on theTemplate,
    the Pop up menu does
    > not
    > work. Any suggestions?
    >

  • How to create file menu in the swing?

    How to create file menu or any menu in the swing?
    Please help me.

    How to create file menu or any menu in the
    swing?
    Please help me.By file menu, do you mean where you can choose a file to open or save to? If so, have you had a look at the File Chooser component? If not, please click on the link in the previous sentence to the Sun tutorial.
    Good luck
    /Pete

  • "Show Pop-Up Menu" behavior problems

    Greetings—
    The "Show Pop-Up Menu" under Add Behaviors is grayed-out and
    won't allow additional links to be added to the templates. I'm
    currently on DW MX 2004.
    Thank you

    > Does anyone have any suggestions what to do so this
    selection is not
    > grayed
    > out?
    The functionality has been REMOVED as a primary function in
    CS3. It will
    allow you to edit a LEGACY MENU, but not create a new menu
    from scratch.
    This is a good thing. The DW menus were indescribably
    horrible.
    In their place, use the Spry menus, or -
    Check the uberlink and MacFly tutorials at PVII -
    http://www.projectseven.com/
    and the Navbar tutorial/articles at Thierry's place
    http://tjkdesign.com/articles/dropdown/
    Or this one (more recent article):
    http://tjkdesign.com/articles/Pure_CSS_Dropdown_Menus.asp
    Or to get it done fast, go here -
    http://www.projectseven.com/tutorials/navigation/auto_hide/index.htm
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "Moni057" <[email protected]> wrote in
    message
    news:f3na5s$9lv$[email protected]..
    >I just got CS3 (and un-installed DW8) and I have learned
    that the "Show
    >Pop-Up
    > Menu" behavior is depreciated. The problem I'm having is
    it is Grayed out
    > (And
    > yes, I made sure I had a 'link' selected when I tried to
    choose this
    > behavior)
    Is there a setting in the Preferences that I missed or is CS3
    just teasing
    > me w/a remembrance of this easy to use pop up menu
    maker? Any help is
    > appreciated :)
    >
    > Thanks,
    > Monica
    >
    > [email protected]
    >
    > ps: I do know about the "Spry assets" but I want to see
    if the above
    > option is
    > possible first. thanx :)
    >

  • CS3 "Show Pop-Up Menu" Behavior Help

    I just got CS3 (and un-installed DW8) and I have learned that
    the "Show Pop-Up Menu" behavior is depreciated. The problem I'm
    having is it is Grayed out (And yes, I made sure I had a 'link'
    selected when I tried to choose this behavior) Does anyone have any
    suggestions what to do so this selection is not grayed out? Is
    there a setting in the Preferences that I missed or is CS3 just
    teasing me w/a remembrance of this easy to use pop up menu maker?
    Any help is appreciated :)
    Thanks,
    Monica
    [email protected]
    ps: I do know about the "Spry assets" but I want to see if
    the above option is possible first. thanx :)

    > Does anyone have any suggestions what to do so this
    selection is not
    > grayed
    > out?
    The functionality has been REMOVED as a primary function in
    CS3. It will
    allow you to edit a LEGACY MENU, but not create a new menu
    from scratch.
    This is a good thing. The DW menus were indescribably
    horrible.
    In their place, use the Spry menus, or -
    Check the uberlink and MacFly tutorials at PVII -
    http://www.projectseven.com/
    and the Navbar tutorial/articles at Thierry's place
    http://tjkdesign.com/articles/dropdown/
    Or this one (more recent article):
    http://tjkdesign.com/articles/Pure_CSS_Dropdown_Menus.asp
    Or to get it done fast, go here -
    http://www.projectseven.com/tutorials/navigation/auto_hide/index.htm
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "Moni057" <[email protected]> wrote in
    message
    news:f3na5s$9lv$[email protected]..
    >I just got CS3 (and un-installed DW8) and I have learned
    that the "Show
    >Pop-Up
    > Menu" behavior is depreciated. The problem I'm having is
    it is Grayed out
    > (And
    > yes, I made sure I had a 'link' selected when I tried to
    choose this
    > behavior)
    Is there a setting in the Preferences that I missed or is CS3
    just teasing
    > me w/a remembrance of this easy to use pop up menu
    maker? Any help is
    > appreciated :)
    >
    > Thanks,
    > Monica
    >
    > [email protected]
    >
    > ps: I do know about the "Spry assets" but I want to see
    if the above
    > option is
    > possible first. thanx :)
    >

  • Expandable Menu in Java Swing app

    Hello JFriends,
    is it possible to create a expandable menu in java swing app? I am thinking of something like menu in MS Visio: http://img32.imageshack.us/i/menuip.jpg/
    It works like that: When user click on a bar it expands (with nice animation) and shows containing components.
    Or maybye there are components like that?
    Thanks in advance for Your reply and please forgive me if my english is bad.
    JRegards :-)

    Yes, such constructs are possible. There isn't a pre-made component exactly like that. The NetBeans IDE has a Window - named Palette - that's very similar. The code is open source.
    You can read about Java menus here:
    [http://java.sun.com/docs/books/tutorial/uiswing/components/menu.html]

  • Weird custom menu behavior in 8.2

    I'm in charge of upgrading a large project from LV 7.1 to 8.2 and I ran into several problems but was able to resolve them except 2 major ones (not including the crashing tables and indices in self-indexing while loops).
    1) Our custom menu now seems to badly lag when trying to open it. Takes a good 2-3 seconds for any items to show up when the application is running and this behavior continues UNTIL i switch to the block diagram and put in the password for our application (to access the code). This definitely seems like a bug and I wasn't able to find any similar posts. Is this a known issue? Why does it happen?
    2)Badly lagging .VIT files. We have about 7 custom display .vit subvis which get called as clones by the application. They're not marked as re-entrant and I know 8.x changed the pass-by-value to pass-by-reference handling of clones. Is this the case? Why are my .vit now running twice as slow as in 7.1 on the same computer?
    Altenbach mentioned overlapping elements on the FP of the .vit's in another post, but could someone clear this up for me please? Does slightly overlapping cursor display on a wavegraph count? Or is this when you have a completely different FP control right on top of another control? Any help is greatly appreciated.Message Edited by romulus on 01-24-2007 08:27 AM
    Message Edited by romulus on 01-24-2007 08:31 AM

    Hey romulus,
                  I am still not fully understanding the best way to try and reproduce your issue.  If I were to create a new VI with a custom runtime menu in 7.1, then lock the block diagram with a password, and then open this VI in 8.20, should it display this behavior?  I will continue trying to reproduce this on my machine, but have been unable to thus far.  If you can provide a VI that replicates this problem, I would be happy to talk with R&D about it and see what is happening to cause the issue.  Thanks!!
    Brian B
    Field Sales Engineer
    Tennessee/Southern Kentucky
    National Instruments

  • Alternative to Anonymous/Inner when Adding Behavior to Swing Elements?

    Hello! I am new to Java and have been trying to teach myself the basics by writing a Swing "JApplet". In adding mouse-click behavior to elements, I have been able to get the desired results by using anonymous "inner" classes. However, I am wondering if there is an alternative way to do this, that may be neater. For example, is there a way to make a non-inner class to apply the behavior, and then use it multiple times? The catch is that I need to apply this behavior to dynamically generated elements, to it has to be able to access certain variables.
    But enough talk, here is a link to the working applet:
    [http://brockfanning.com/RandomCells.html|http://brockfanning.com/RandomCells.html]
    And here is the working code:
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    public class RandomCells extends JApplet
         private JPanel mainPanel;
         public void init()
              // Set up main grid
              mainPanel = new JPanel();
              mainPanel.setLayout(new GridLayout(0,2));
              getContentPane().add(mainPanel);
              // add a specific mouse-click behavior for each of a random number of 1 to 10 cells
              int randomNumber = (int)(10 * Math.random()) + 1;
              for (int cell = 1; cell <= randomNumber; cell++)
                   JPanel newCell = new JPanel();
                   mainPanel.add(newCell);
                   newCell.add(new JLabel("Click to dislay the number " + Integer.toString(cell)));
                   // Make the "cell" variable "final" so it can be used in the following anonymous method
                   final int cellFinal = cell;
                   // Add mouseclick behavior to the cell
                   newCell.addMouseListener(new MouseAdapter()
                        public void mouseClicked(MouseEvent me)
                             JOptionPane.showMessageDialog(mainPanel, Integer.toString(cellFinal), "", JOptionPane.PLAIN_MESSAGE);
    }Any help in an alternative to this anonymous inner class technique would be greatly appreciated!

    One more question if possible:
    How would I reference the RandomCells class from the new separated class?
    I'll post what I have below. But notice the "???????" in the new CellClick class. I'm not sure what to put here, as I need to reference the "mainPanel" field of the RandomCells class. Is there any way to do this without explicitly passing the mainPanel as a parameter?
    RandomCells class:
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    public class RandomCells extends JApplet
         private JPanel mainPanel;
         public void init()
              // Set up main grid
              mainPanel = new JPanel();
              mainPanel.setLayout(new GridLayout(0,2));
              getContentPane().add(mainPanel);
              // add a specific mouse-click behavior for each of a random number of 1 to 10 cells
              int randomNumber = (int)(10 * Math.random()) + 1;
              for (int cell = 1; cell <= randomNumber; cell++)
                   JPanel newCell = new JPanel();
                   mainPanel.add(newCell);
                   newCell.add(new JLabel("Click to dislay the number " + Integer.toString(cell)));
                   // Make the "cell" variable "final" so it can be used in the following anonymous method
                   final int cellFinal = cell;
                   // Add mouseclick behavior to the cell
                   newCell.addMouseListener(new CellClick(cellFinal));
    }CellClick class:
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    public class CellClick extends MouseAdapter
         // Fields
         private int var1;
         // Constructor
         public CellClick(int var1)
              this.var1 = var1;
         // Methods
         public void mouseClicked(MouseEvent me)
              JOptionPane.showMessageDialog(???????, Integer.toString(this.var1), "", JOptionPane.PLAIN_MESSAGE);
    }

  • I need the action for menu in java swing

    hai friends
    have a peace day.
    i created a menu using swing, but i don't know how to give the action.
    eg: i created menu called FILE if i click this menu its goes to specify program
    please give any idea or sample code.
    thank u
    regards
    rex

    Hi,
    u have to implement ActionListener...when u r pressing menu item the events
    will come inside the ActionPerformed function.
    for example
    public class Menuexample implements ActionListener
    public Menuexample()
    filemenuiem=new MenuItem("File");
    filemenuiem.addActionListener(this);
    public void actionPerformed(ActionEvent ae) {
    if(ae.getSource==filemenuitem)
    regards
    pradeep

  • RH9 FlashHelp Related Topic popup menu behavior

    Hi. Recently upgraded to RH9 from RH7. Output is FlashHelp. Use IE7.
    Discovered that when clicking on Related Topics button, page scrolls up and popup menu appears at the top of the topic, rather than appearing next to the button as it used to. Is there any way to resolve this buggy behavior? Attempted to recreate the button, used the topics found dialog option, etc. Get the same result regardless of changes to Related Topics options.
    This issue occurs when I generate the output and test locally, as well as when it's published to our server.
    Appreciate any suggestions.

    Try Tools > Update DHMTL...
    It's a wild guess and beyond that, I have no other ideas. Sorry.
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • Show pop up menu- behaviors

    i can't see show popup menu in behaviors in Dreamweaver CS3 ,
    is it exist in another place or i need to install it ,
    how can i solve this issue .

    lionardo_1977 wrote:
    > i can't see show popup menu in behaviors in Dreamweaver
    CS3 , is it exist in another place or i need to install it ,
    > how can i solve this issue .
    The Show Popup Menu was deprecated. You should be able to
    find it in the ~Deprecated flyout when you click the + button on
    the Behaviors panel.
    However, please I believe that you can only work with a page
    that already has a popup menu on it and you cannot add new one to
    page that doesn't have one on it already. As this feature is
    deprecated Adobe suggest working with the Spry menus (on the Insert
    bar) instead.
    For a commercial solution that offers a number of styling
    options beyond what you get out of the box for the Spry menus, you
    may want to consider WebAssist's CSS Menu Writer:
    http://www.webassist.com/professional/products/productdetails.asp?PID=146
    Or take a search through the Dreamweaver Exchange:
    http://www.adobe.com/exchange/
    Danilo Celic
    |
    http://blog.extensioneering.com/
    | WebAssist Extensioneer
    | Adobe Community Expert

  • Show pop-up menu behavior

    For some reason when I select my object to attach a
    Pop-up Menu from the behaviors panel it is grayed out. What am I
    doing wrong? Please help!

    Frankly, what you are doing wrong is using the Pop-up menus
    in the first
    place. You have no idea how awful these are. Please read this
    http://www.losingfight.com/blog/2006/08/11/the-sordid-tale-of-mm_menu
    Murray
    On 10/8/07 9:43 AM, in article
    fedc5b$r3d$[email protected],
    "weilerm1983" <[email protected]> wrote:
    >
    For some reason when I select my object to attach a
    Pop-up Menu
    > from the behaviors panel it is grayed out. What am I
    doing wrong? Please
    > help!

  • Strange menu behavior

    I authored a DVD in SVDSP 3 with a bunch of Stories. It is setup for different chapters (Stories) play and then take you back to the menu. The end jump of one of the stories is set to a particular menu and button. When the story ends it briefly goes back to a different menu (with all it's highlights off) then quickly goes to the menu it supposed to do. Any suggestions as what might be wrong? Anybody see this behavior before?

    Is this in simulator or on the final disc? Have you copied the settings from one story and changed it later? Did you overwrite the previous build folder or delete it and start again?
    Sounds to me like the sort of glitch that creeps in when you are re-using build folders. Also, have you tried deleting the PAR files and then re-building to a different location?

  • Any way to get the Tiger folder=menu behavior back?

    I didn't realize how much I missed this Tiger feature until now it's gone:
    In Tiger, if you dragged a folder into the Dock, you could click-and-hold on it to display a pop-up menu of its contents. If there were other folders inside it, they would display as submenus. You could follow along the submenus until you reached the item you wanted. For example, you could launch an application or open a document buried several layers deep in sub-folders by following along the pop-up menus.
    In Leopard, as far as I can tell, if you put a folder's icon in the Dock, you can ONLY make it behave as a Stack. Stacks are OK if everything in the folder is at the same level... but if you've got other folders inside, the Stack is pretty much useless.
    Has anyone found a way to get the Tiger functionality back? I've tried the fn, ctrl, option and command keys, hoping one of these would display the submenus, but no luck.

    Okay, I found that third-party developers have stepped up with ways to do this (one I've tried is the free HierarchicalDock -- http://www.eternalstorms.at/utilities/hierdock/) but now that I've had a few weeks to get used to Leopard, I find that I don't miss menu folders as much as I did. They were always kind of slow to update anyway, and there are other ways in Leopard to do what I want.

  • Different behavior between Swing in 1.3 and 1.4

    I have to overtake an application based on JDK1.3 with a complex swing gui. Several components are self developed, for example buttons , menutems. I dont know the reason. All works (almost )fine in JDK 1.3 but in 1.4 i have a lot of side effects :
    - When i close a combobox i will not correctley repainted (gray rectangle)
    - focus on textfield was lost
    I dont think, this is a bug in swing. But i dont see a solution for that. My questions :
    1. Is there related changes in Swing ?
    2. What the best approach to solve this problems ?

    jre 1.3 is ok for me, but i am working with eclipse and some fauture for developing requires 1.4. Also possible "plugins" for our appl (java to com bridge) reuires 1.4. :-(
    The question is, how to detect some errors of this appl. My be over a debugger ?

Maybe you are looking for