How to create a sort of drop down menu at mouse location please?

Hello,
I would like to create a sort of drop down menu. When the user right clicks, I would like to create something similar as if you right click in your browser, or right click in this forum text box area (you get "undo", "copy", "paste".. that appears right next to the mouse).
What Swing class would you use for that please?
Thank you very much.

Use a JPopupMenu
You will need to add a MouseListener that shows it to the component you want to display it on.

Similar Messages

  • How to create a multi select drop down filed in crm 7.0

    Hi All,
            I need to create a multi select drop down field in crm web ui where one field have 7 value and we can select more than one value at a time.I have no idea how to create a multi select drop down field in web ui.
    Please help.....

    Hi vishwas
    Please follow the thread where a similar requirement was posted.
    Re: Drop-down list box / pick-list with multiple selections at a time
    Here the suggestions say that a workaround could be to associate a table view to the field.
    Regards,
    Nisha

  • I have a new computer with Windows 7 professional, Office 2007, Adobe XI. I have just created a word document and tried save it as a PDF but the PDF option doesn't appear in the drop down menu. Any ideas please? Thank you.

    I have a new computer with Windows 7 professional, Office 2007, Adobe XI. I have just created a word document and tried save it as a PDF but the PDF option doesn't appear in the drop down menu. Any ideas please? Thank you.

    What is "Adobe XI" - Reader, or Acrobat?
    But either way, 'Save as Adobe PDF' is a Word function, independent of what Adobe software you have installed.

  • How do I get the complete drop down Menu?

    How do I get the complete drop down menu when I CTRL-Mouse click a folder. I am getting MORE in the bottom, and I need it to be removed.
    Thanks

    The "More" area in the contextual menu's are bothering quite a few people. It's a feature of Leopard and can't be removed. There may be a hack available, but I'm waiting for some help from Apple...
    It reminds me of the Personalized menu's that Microsoft enables by default in some versions of MS Office for Windows. And it's a feature that I turn off immediately after installing Office for a client.
    Two steps forward, One Back.

  • How can I do an animated drop down menu in Adobe Edge Animate?

    Hi everyone! well, it's easy to create a whole animated (fade color and opacity) navigation buttons menu in Edge Animate with rollover and rollout actions, but thing get too messy when try to make an animated drop down menú. How can I do this process more easy?
    Thanks!
    Néss.

    One useful video : http://www.adobe-edge-forum.com/2012/01/adobe-edge-html5-interactive-drop-down-menu-tutori al/
    But glad to know it worked for you.
    Thanks and Regards,
    Sudeshna Sarkar

  • How to "Copy & Paste" onto a drop down menu?

    How do you make a drop down menu with a giant list of countries without having to plug in every country one by one?
    I'm trying to recreate a drop down menu my boss has on his website onto Adobe Formscentral. The problem is I don't want to make a drop down menu and have to type out every country he has on the website drop down "It's seriously has every country in the world" If there is script I have to type somwhere so be it, rather mess around with that than waste company time typing countries down.

    Hi,
    We do not have any way to import data into a dropdown list and do not have any Templates with a complete Country list, but you can add or vote on either/both in the feature ideas:
    http://forums.adobe.com/community/formscentral?view=idea
    If you need to add a new idea click "Create an idea" under "Actions" in the top right.
    Thanks,
    Josh

  • How to build advanced search with drop down menu (ASP)

    Hi,
    I'm using CS4 with ASP / SQL. I have a search page which contains only 2 fields; one is user input (search term), the other is a drop down menu to define which column they want to search on. How can I define the SQL statement - or can I only choose to search on values in the table, rather than on columns?
    thanks

    DineshS wrote:
    Which dropdown menu you want to customized ?The specific menu we would like to customize is the 'Action' menu on the Person form that usually contains 'Create Employment' and so on. We have a specific recruiter responsibility that we would like to limit to 'Create Applicant'. I have been unable to come up with a combination of steps in personalizations that sets that value in the dropdown and allows it then be unchangeable. If you have any suggestions, please let me know. I would prefer not to create a custom form but without personalizations, I might have to.

  • How can change background color of drop down menu navigation?

    Hi,
    I am using multi level drop-down-navigation menu in my website.
    I am get good drop-down menu from htmldrive.net, but problem is how can change menu background color black to other colors.
    please help me
    Link & code is given below
    http://www.htmldrive.net/items/demo/913/Multi-Level-Drop-Down-Menu-Navigation-with-CSS3
    HTML Code
    <div id="nav">
    <ul>
    <li><a href="#">Home</a></li>
    <li><a href="#">About Us</a></li>
    <li><a href="#">Our Portfolio</a></li>
    <li><a href="#">One Dropdown</a>
            <ul>
            <li><a href="#">Level 2.1</a></li>
            <li><a href="#">Level 2.2</a></li>
            <li><a href="#">Level 2.3</a></li>
            <li><a href="#">Level 2.4</a></li>
            <li><a href="#">Level 2.5</a></li>
            </ul>
    </li>
    <li><a href="#">Three Levels</a>
            <ul>
            <li><a href="#">Level 2.1</a></li>
            <li><a href="#">Level 2.2</a></li>
            <li><a href="#">Level 2.3</a>
                    <ul>
                    <li><a href="#">Level 2.3.1</a></li>
                    <li><a href="#">Level 2.3.2</a></li>
                    <li><a href="#">Level 2.3.3</a></li>
                    <li><a href="#">Level 2.3.4</a></li>
                    <li><a href="#">Level 2.3.5</a></li>
                    <li><a href="#">Level 2.3.6</a></li>
                    <li><a href="#">Level 2.3.7</a></li>
                    </ul>
            </li>
            <li><a href="#">Level 2.4</a></li>
            <li><a href="#">Level 2.5</a></li>
            </ul>
    </li>
    <li><a href="#">Services</a></li>
    <li><a href="#">Contact Us</a></li>
    </ul>
    </div>
    CSS CODE
    #nav {
            float: left;
            font: bold 12px Arial, Helvetica, Sans-serif;
            border: 1px solid #121314;
            border-top: 1px solid #2b2e30;
            -webkit-border-radius: 5px;
            -moz-border-radius: 5px;
            border-radius: 5px;
            overflow: hidden;
    #nav ul {
            margin:0;
            padding:0;
            list-style:none;
    #nav ul li {
            float:left;
    #nav ul li a {
            float: left;
            color:#d4d4d4;
            padding: 10px 20px;
            text-decoration:none;
            background:#3C4042;
            background: -webkit-gradient( linear, left bottom, left top, color-stop(0.09, rgb(59,63,65)), color-stop(0.55, rgb(72,76,77)), color-stop(0.78, rgb(75,77,77)) );
            background: -moz-linear-gradient( center bottom, rgb(59,63,65) 9%, rgb(72,76,77) 55%, rgb(75,77,77) 78% );
            background: -o-linear-gradient( center bottom, rgb(59,63,65) 9%, rgb(72,76,77) 55%, rgb(75,77,77) 78% );
            box-shadow: 0 1px 0 rgba(255, 255, 255, 0.1) inset, 0 0 5px rgba(0, 0, 0, 0.1) inset;
            border-left: 1px solid rgba(255, 255, 255, 0.05);
            border-right: 1px solid rgba(0,0,0,0.2);
            text-shadow: 0 -1px 1px rgba(0, 0, 0, 0.6);
    #nav li ul {
            background:#3C4042;
            background-image: -webkit-gradient( linear, left bottom, left top, color-stop(0.09, rgb(77,79,79)), color-stop(0.55, rgb(67,70,71)), color-stop(0.78, rgb(69,70,71)) );
            background-image: -moz-linear-gradient( center bottom, rgb(77,79,79) 9%, rgb(67,70,71) 55%, rgb(69,70,71) 78% );
            background-image: -o-linear-gradient( center bottom, rgb(77,79,79) 9%, rgb(67,70,71) 55%, rgb(69,70,71) 78% );
            border-radius: 0 0 10px 10px;
            -moz-border-radius: 0 0 10px 10px;
            -webkit-border-radius: 0 0 10px 10px;
            left: -999em;
            margin: 35px 0 0;
            position: absolute;
            width: 160px;
            z-index: 9999;
            box-shadow: 0 0 15px rgba(0, 0, 0, 0.4) inset;
            -moz-box-shadow: 0 0 15px rgba(0, 0, 0, 0.4) inset;
            -webkit-box-shadow: 0 0 15px rgba(0, 0, 0, 0.4) inset;
            border: 1px solid rgba(0, 0, 0, 0.5);
    #nav li ul a {
            background: none;
            border: 0 none;
            margin-right: 0;
            width: 120px;
            box-shadow: none;
            -moz-box-shadow: none;
            -webkit-box-shadow: none;
            border-bottom: 1px solid transparent;
            border-top: 1px solid transparent;

    Change this:
    .ddsmoothmenu{
    font: bold 12px Verdana;
    background: #414141; /*background of menu bar (default state)*/
    width: 100%;
    to this:
    .ddsmoothmenu{
    font: bold 12px Verdana;
    background: #new color code;
    width: 100%;
    And repeat this on other selectors.
    Nancy O.

  • How to get "tones" tab  in drop down menu

    how to get "tones" tab  in drop down menu

    I assume that you are referring to the categories on your iTunes library (?), if you are then go into Edit > Preferences and on the General tab make sure that Tones is ticked
    You can also enable the left-hand sidebar on iTunes 11 on a PC via control-S, which then allows you to view the sections of your library (those enabled in Preferences) via that sidebar, and if you have iOS devices they will also show on that sidebar when connected.

  • How do you Make an Interactive Drop Down Menu in Adobe Acrobat Pro That Uses Hyperlinks?

    Hi first off let me point out and apologise in advance for my ignorance and possibly my misuse of the correct terms, I'm new to this.
    Anyway here goes, my best attempt to try and explain myself. Using Adobe Acrobat Pro I am trying to create a drop down menu that lists a set of documents. Once you click an item in the drop down menu it then opens up the corresponding document. So far example the Menu reads "Documents" and below it there is three options "Dogs" "Cats" "Hotdogs" when you click on "Hotdogs" you open up the document for hotdogs etc.
    I have actually done it once before using Javascript and a combo box and I think basically you buried the links to documents in a series of bookmarks, the Javascript code then was basically a shortcut to activate those bookmarks.
    So in short, could someone please tell me the code I would need to make this happen? I have looked extensively for the right forum post to see if my question has already been covered but I couldn't find anything and I possibly could have been using the wrong search terms.
    Please ask me to clarify anything to help you understand what it is I'm asking.
    Thank you in advance for all your help.
    Elliot.

    Hey I think I found a solution to my own problem I made an "OK Button" right click>properties>actions>select action>run a javascript>add - and executed this code:
    function searchBookmarks(bkm, nLevel, bkmName)
      if ( bkm.name == bkmName ) return bkm;
      if (bkm.children != null) {
      for (var i = 0; i < bkm.children.length; i++)
      var bkMark = searchBookmarks(
      bkm.children[i], nLevel + 1, bkmName);
      if ( bkMark != null ) break;
      return bkMark;
      return null;
    function bookmarksAsPopUp(bookmarks)
       if(bookmarks && bookmarks.children)
         for(var i=0;i<bookmarks.children.length;i++)
      bookmarkName = bookmarks.children[i].name.replace(/\s{2,}/g,' ');
      while (bookmarkName.indexOf(String.fromCharCode(11)) > 0)
      bookmarkName = bookmarkName.substring(0,bookmarkName.indexOf(String.fromCharCode(11))) +" "+ bookmarkName.substring(bookmarkName.indexOf(String.fromCharCode(11))+1)
      popUp = popUp+"{cName: '"+bookmarkName+"', cReturn: '"+bookmarkName+"'" ;
      if(bookmarks.children[i].children)
              popUp = popUp + ", oSubMenu: [";
       bookmarksAsPopUp(bookmarks.children[i]);
       popUp = popUp + "]";
      popUp = popUp+"}";
      if (i != bookmarks.children.length-1)
      popUp = popUp+", "
       return popUp;
    var popUp = "";
    bookmarksAsPopUp(this.bookmarkRoot);
    var cChoice = eval("app.popUpMenuEx(" + popUp + ")" ) ;
    bkm = searchBookmarks(this.bookmarkRoot, 0, cChoice );
    if ( bkm != null ) bkm.execute();
    Then you can just add your own bookmarks and they populate the pop-up menu automatically (including the hierarchy sub menu structure, you nest bookmarks within a main book mark.) which is a more efficient way than the one I used before.
    I take no credit for this by the way my source is here PDF Bookmarks as a PopUp Menu | The Practical:PDF Blog
    I hope this helps anybody looking to do the same.

  • How Do You Build A DPS Drop Down Menu?

    Hello,
    I've been working with Adobe DPS for a year and a half now, and also use edge and muse for some of the HTML5 solutions - though both Edge and Muse are still very unstable for my liking within a Folio.
    However, I would like to build a "Drop Down Menu" that will work within a Folio. I have tried Edge, but, because of the resolution issues with Edge, I always get the Type "Appearance" being too large. With Muse, it is too inconsistent and works sometimes and does not work sometimes. So, is this a technique I should abandon until Adobe comes up with an answer/solution for us?
    Is there a better way? InDesign allows me to create amazing drop down menu's, but, iOS does not support SWF files.
    I'm stuck with no answers, can you help?
    Thank you
    Lain

    I don't know if that is the only way. Someone else here may have a different solution.
    Have you looked at Dreamweaver? It is a pretty powerful tool and is WYSIWYG. You should be able to create the necessary html and css (maybe java scipt and jquery too) there and use that in your html overlay.

  • How to store session variables in drop down menu (and radiobutton/checkbox)

    How am I going to store session variables in the drop down menu, radio button, checkbox.
    In text area, I do like below:
    <input type="text" name="membershipno" size="5" maxlength="50" value="<%=((session.getValue("Smembershipno")!=null)?session.getValue("Smembershipno"):"") %>">
    Any idea?

    Hi jeffkyt79, I could have answered this on Expert's Exchange. But I suppose it would be hard as the site is down right now :-(
    Here is sample code for the form:
    <form action="" name="form1">
    <input type="text" name="field1" value="<%
    if (session.getAttribute("field1")!=null) {
    out.println(session.getAttribute("field1"));
    } %>"><br>
    <input type="text" name="field2" value="<%
    if (session.getAttribute("field2")!=null) {
    out.println(session.getAttribute("field2"));
    } %>"><br>
    <input type="text" name="field3" value="<%
    if (session.getAttribute("field3")!=null) {
    out.println(session.getAttribute("field3"));
    } %>"><br>
    <input type="checkbox" name="check1" value="tick"<% if (session.getAttribute("check1")!=null) out.println(" checked"); %>><br>
    <% String selRadio=(session.getAttribute("r1")!=null)?(String)session.getAttribute("r1"):""; %>
    <input type="radio" name="r1" value="yesdot"<% if (selRadio.equals("yesdot")) {out.println(" checked");} %>>
    <input type="radio" name="r1" value="nodot"<% if (selRadio.equals("nodot")) {out.println(" checked");} %>><br>
    <select name="sel">
    <% String selOption=(session.getAttribute("sel")!=null)?(String)session.getAttribute("sel"):""; %>
    <option value="option1"<% if (selOption.equals("option1")) {out.println(" selected");} %>>OPTION 1
    <option value="option2"<% if (selOption.equals("option2")) {out.println(" selected");} %>>OPTION 2
         <option value="option3"<% if (selOption.equals("option3")) {out.println(" selected");} %>>OPTION 3
    </select>
    </form>
    And here's the revised javascript function to put in form1.jsp:
    function newWin() {
    f=document.form1.elements;
    str="?";
    mypage="test2.jsp"; // I've hardcoded the url for testing but you can fix this
    for (i=0;i<f.length;i++) {
    if (f.type=="text") {
    if (f[i].value!="") {
    str=str+f[i].name+"="+f[i].value+"&";
              continue;
         if (f[i].type=="checkbox"||f[i].type=="radio") {
         if (f[i].checked) {
         str=str+f[i].name+"="+f[i].value+"&";
         if (f[i].type=="select-one") {
         str=str+f[i].name+"="+f[i].options[f[i].selectedIndex].value+"&";
    str=str.substr(0,str.length-1);
    // now open the popup
    mypage+=str;
    win=window.open(mypage, 'myname'); // I've left out the winprops but you can fix this
    If you can ask any more questions, could you do it on EE (if possible!!). I know this works because I've tested it.

  • How to show custom descriptions in drop down menu?

    We are designing 3D pie chart in BAM report and trying to incorporate drop down menu at top.
    The drop down menu is currently displaying 2 fields of associated dataobject - "TaskStatus" and "TaskUser".
    But We would like to have "By status", "By user" insted of "TaskStatus" and "TaskUser".
    Can anyone help us achieving this?
    Thanks.
    Edited by: user13027638 on Oct 12, 2010 9:00 AM
    Edited by: user13027638 on Oct 12, 2010 10:46 AM

    I'm assuming you are using Field type prompts and these 2 fields (TaskStatus and TaskUser) are fields to group by for the pie chart.
    If that is the case, the only workaround I see is to create 2 calculated columns in the dataobject, using Architect and not Active Studio.
    For example:
    New field name: By status
    Calculated expression: TrimEnd(TaskStatus)
    New field name: By user
    Calculated expression: TrimEnd(TaskUser)
    Then edit your prompt so that the 2 new calculated columns are the selection options for the drop down.

  • How do I reset the font drop-down menu?

    In the font drop-down menu, all used fonts are listed on top of the rest. Now I got a long pile of used fonts, but only two fonts among them are most frequently used, and I want to keep only these two on top of the drop-down menu. How do I reset the list (clear the history)? Thanks.

    Mine shows only the last 6 used fonts. Note that you can option click the fonts drop down menu to show them only by name, without their preview, thus saving you some space.

  • How do I remove the autocomplete drop-down menu from textboxs, not the awesome bar?

    I like having the drop-down menu from the url, but the autocomplete option for textboxs within like when I type my username and it pops up with all of the ones that has been used on that site are really annoying. How do I get rid for the latter? I didn't have this before I upgraded to Firefox, and now I can't get rid of it. Fyi, I'm rather tech inept, don't use complicated comp sci words please!

    You can use History > 'Clear Recent History" to clear already saved form data.
    *https://support.mozilla.org/kb/Clear+Recent+History
    Use these steps to remove saved (form) data from a drop down list:
    #Click the (empty) input field on the web page to open the drop down list
    #Highlight an entry in the drop down list
    #Press the Delete key (on Mac: Shift+Delete) to remove it.
    *http://kb.mozillazine.org/Deleting_autocomplete_entries
    See also "Prevent Firefox from automatically completing URLs":
    *https://support.mozilla.org/kb/search-your-bookmarks-history-and-tabs-awesome-bar

Maybe you are looking for

  • How can I download java game?

    Hi everyone, sorry for my english, it is not my native language. I have Game.Jar file, which is java game for Nokia ,and I uploaded this file into database. Now I have a filed, type of byte[] (array of bites) next, I generate URL like http://site.com

  • How can I get speaker volume contol in the toolbar on my iMac ?

    How can I get speaker volume contol in the toolbar on my iMac ?

  • About DAQ task and writing to a line

    Hi all,   I swtich from Labview to Labwindows and switch from traditional DAQ to DAQmx. I have two questions about using the DAQmx. Based on the example from NI, I write a function for a single sample output to a single digitial line void WriteLine(i

  • Reimport model

    Hi, I was wondering how ABAP WebDynpro handles model changes? In Java WD, you can do something called "Reimport model", which will then regenerate the context nodes for import and export and the java representing classes of ABAP objects/ddic structur

  • Settings general usage doesn't see space taken up by videos app.

    settings-space-usage is not displaying space occupied by videos app. consequently videos apps keeps eating up space. the only recourse is to backup the ipad and restore it.