facebook

How to create a popup context menu?

  1. MyEclipse Archived
  2.  > 
  3. Matisse/Swing UI Development
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #288472 Reply

    dgsmith
    Member

    How do you create a right click context menu and associate it with a Component? I’ve searched for docs at this site and the netbeans site and can’t find anything that details the process.

    Platform: JDK 1.6.0_04; MyEclipse: 6.0.1-GA-200710

    When I “drag” the Popup Menu from the Matisse Palette to a form component I get a jPopupMenu under “Other Components” but no visual indication of its presence (is this normal??).

    When I double click the the jPopupMenu in Other Components, I get a small square displayed. When I try to “drag” a Menu Item from the palette to this small square nothing happens, it doesn’t visually attach.

    I can’t find documentation on how to bind the popup to a specific Component, although if I right click on a form component there’s a Bind->componentPopupMenu option available.

    Can you point me to where all the documentation is for this (and all the other Matisse interface capabilties/complexities)? I cannot seem to locate the detailed matisse interface documentation.

    Thanks.
    Dale

    #288501 Reply

    Riyad Kalla
    Member

    Dale,

    You can use the context-menu to design the popup menu, for some reason the visual design aspects of it from Matisse itself weren’t quite done yet when we did the integration for the last refresh, we should pick that up with another refresh later this year.

    Also I’ve created an example project for you, you can just run the class to see it in action.

    Attachments:
    You must be logged in to view attached files.
    #288521 Reply

    dgsmith
    Member

    Thanks for this – it demos what I needed…

    Dale

    #288531 Reply

    Riyad Kalla
    Member

    No problem, glad it helped.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: How to create a popup context menu?

This topic is marked as closed to new replies, however your posting capabilities still allow you to do so.

You must be logged in to post in the forum log in