How to display a drop down list

how to display a drop down list when the user clicked (right click) on a JPanel or a JFrame

how to display a drop down list when the user clicked
(right click) on a JPanel or a JFrameI've not done it my self, I just looked it up:
JComponent.setComponentPopupMenu(JPopupMenu popup).
The menu doesn't showed automatically when I added it to a JComponent and tried to right click.
I guess you could add a listener and call setVisible and setLocation for the menu in the listener, but there has to be an easier way...

Similar Messages

  • Clicking on the downward arrow at the right end of the location bar no longer displays the drop-down list of sites visited, bookmarks and addresses typed in location bar

    Since I upgraded to Firefox version 3.6.10, clicking on the downward arrow at the right end of the location bar no longer displays the drop-down list of sites visited, bookmarks and addresses typed in location bar. My Tools > Options > privacy setting is to save history, and if I start typing a previously accessed website's address in the location bar, then the full address appears as a drop-down item. But not when I just click at the right end of the bar.

    You can try "Reset all user preferences to Firefox defaults" on the [[Safe mode]] start window.
    Start Firefox in [[Safe Mode]] to check if one of your add-ons is causing your problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    See [[Troubleshooting extensions and themes]] and [[Troubleshooting plugins]]

  • How to change the drop down list "Category" in the Risk page (PWA 2013)

    Hello,
    How to change the drop down list "Category" in the Risk page of a Project Site. I need to change the list of elements.
    Thanks

    Hi Robert,
    You actually cannot edit the current template.
    The process is as follow: 
    create a brand new project site from the existing template,
    edit the site configuration (list, column, webparts, image, logo, theme...),
    save it as a template,
    associate it to an EPT.
    See reference below:
    http://blogs.msdn.com/b/brismith/archive/2010/03/15/customizing-the-project-site-in-project-server-2010.aspx
    Hope this helps,
    Guillaume Rouyre, MBA, MCP, MCTS |

  • How can I increase the number of Tags displayed in Drop down list?

    When I go to Bookmarks/Tags, there are only 10 tags displayed. I have created at least 15 tags.
    Is there a way to increase the number of Tags displayed in the Drop down list?
    Thanks

    Do you mean "Recent Tags" which has an icon a blue-colored folder with a primitive looking magnifying glass over the folder?
    That folder does have a limit of 10 results. If you want to create an "All Tags" item on the Boomarks Menu, you can do that by creating your own "smart folder." The process I use is a little involved, so bear with me (also, see the screen shots).
    The query used by Recent Tags is:
    place:type=6&sort=14'''&maxResults=10'''
    So for All Tags we will drop the maximum results limit:
    place:type=6&sort=14
    ''If you prefer your tags in alphabetical order instead of having the most recently used at the top, use this instead:''
    place:type=6&sort=1
    Go ahead and select the line you want and right-click > copy it.
    Next, click the bookmarks drop-down button, expand the Bookmarks Toolbar, right-click any existing item, and choose New Bookmark.
    In Location, paste the query, and in name, type All Tags (or your preferred description). When you click Add Bookmark, Firefox will add it, but it doesn't show the blue search folder icon. Drag the bookmark to the menu, and it will turn into a functioning search folder.
    Success?

  • Trouble displaying A drop down list in Contribute

    I am having trouble with a client that has downloaded Contribute onto their windows computer. The page in question contains a drop-down  nav- bar which I coded using CSS. I have had the page certified by W3 CSS and the html also went through at 100%. It displays perfectly in all browsers and also in my version of Contribute 6.5. My client is also running the same version of Contribute, however the drop-down menu won't render properly in their version of contribute unless they try to edit the page. This is a problem because they rely on the navigation bar to navigate the site for editing. On their version of contribute the navigation bar appears as a lengthy unordered list instead of a smooth drop-down list which appears on all other browsers and versions of Contribute. I have changed the name of the CSS file and its location several times. This hasn't solved the issue. Any suggestions please???

    Hi Dominic,
         Thanks for showing interest.
    I spoke to Adobe staff today who were very helpful. They put it down to a bad installation of Contribute. I have suggested to the client to clear the cache and reinstall Contribute tomorrow morning. IE is working fine on my clients machine and shows the page correctly. I will keep you posted on how it goes.
    This is how it displays on the same version of Adobe Contribute on my Mac and all browsers.

  • Filtering in excel - not all options display in drop down list

    I have found an issue with the filter drop-down list in Excel 2010. I have now been upgraded (by my employee) to Excel 2013 and same problem still exists.
    Problem: I highlight the row containing the column headings; then click on filter (available via the Home tab); then click on the down arrow in the column of interest (in this case "Council Names" column); the drop-down window appears but not all
    council names are displayed in the selection list, even though those council names are still in the list. I am aware of the 10,000 option limit with the selection list, but my spread sheet has well under 10,000 rows (unless there is something hidden that I
    do not know about).
    I have found work-arounds for the problem by searching google for answers to similar problems. I have also spoken to my employee's IT HelpDesk. I will explain the work-arounds I have found below. However, my main concerns now are:
    (1) What is the cause of the problem? Is there are better fix that addresses the cause, rather than having to use work-arounds?
    (2) Is the issue an indication that the spread sheet has been corrupted in some way? - I need assurance that this is not an indication that the spread sheet is unstable and such problems could multiply or already be existing. (The reason I ask
    this is that I had an earlier version of the same spread sheet where the problem did not occur, but it appeared in a later copy - could the copying of the sheet/workbook have caused the problem?)
    Workarounds found:
    (1) Select the entire sheet, then select the filter button in Home tab
    (2) select all the columns manually (click in top left cell and drag down until all data selected), then select filter button
    (3) Ensure all rows in the column of interest are filled in, then select filter button
    I would really appreciate any answers/assistance.

    Hi Jan,
    Thank you very much! Yes you are right - I have looked at the Current Region and the Council Names within that region match those in the filter list. The Current Region does not contain the entire sheet.
    [By the way - there were some errors in my original post: employee should be employer and in my description of the problem the following should read
    "...even though those council names are still in the spread sheet". I assume that this would not change your response?]
    Further questions
    (1) It is odd, though, that an earlier version of the same spread sheet had a complete list of council names (the current range on this sheet contains all of the required rows of the sheet). How did the current region change between versions (I did not knowingly
    do it)?
    (2) Does the above mean that the file, workbook or spread sheet is damaged/corrupted in some way? If yes, can this be corrected and how?
    (3) In addition to (2) above - what is the safest way to copy an excel workbook to minimise risk/avoid future corruption? [I have been copying and keeping earlier versions, partly for testing reasons, but also as a safety measure for the project as
    we are making changes all the time and may decide we wish to go back to the previous version(s)].
    Regards and thanks again,
    Bea Rogers.

  • How to get prefilled drop down list in Adobe form from WebDynpro context

    Hi All,
    We all know that we can have dropdown list in webdynpro which can be automatically populated by the context node collection.
    How can we have the same functionality in Adobe form drop down list. I tried to bind the node attribute to drop down list in Adobe form but it shows me only first element. I am not able to see all the elements in the dropdown but if I am doing same thing for WebDynpro DropDown list I can see the complete List.
    Anybody with Solution?

    Hi Ricky
    I have started a thread for this problem and got an answer for it already. Unfortunately I did not have the time to check it out yet; have a look over there:
    https://mail.cirrus.ch/exchweb/bin/redir.asp?URL=https:///community [original link is broken]
    I appreciate if you tell me whether it worked for you.
    Andreas

  • How to create Dynamic Drop down list ?

    Hi experts
    I want to create a Dynamic Drop down list that should be an Editable,after editing that i need to save.
    thanks,
    vikram.c.

    Hello,
    Please go through this link:
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/vc/linking%2bdrop-down%2blists
    If useful reward.
    Vasanth

  • How to create conditional drop-down lists

    I would like to create a form that utilizes conditional drop-down selection boxes like at http://blogs.office.com/b/microsoft-excel/archive/2009/11/24/create-conditional-drop-down- lists.aspx
    How can I create a form that contains fields like this?
    Is there a sample I can download?

    I have downloaded the AcroForm version (ListProgramming_Part1_AcroForm.pdf).
    I'm not able to consistently recreate.  I was first playing with the form by selecting values in the drop down.  At one point I went to Document Javascripts and select "Example1".  I chose to edit.  Make no changes and select "OK" I get "SyntaxError: missing } in compound statement 39 at line 40"
    The sec ion of code is:
    function SetPartEntries()
       // Only run this code on when the selection is commited.  
       if(event.willCommit)
          // There are 3 rows in the order form so in order to use other fields in 
          // the same row we first have to acquire the name of the row
          // we are operating on.  This is part of the List field's name, so we 
          // just have to split it off 
          var cRowName = event.target.name.split(".").shift();
          // Now get the new parts list from the Master List
          // Since the selection is being committed, event.value contains the selection text
          var lst = oAssemblyParts[event.value];
          // If an entry is selected that we don't have a parts list for, then
          // the parts list is just cleared. 
          if( (lst != null) && (lst.length > 0) )
             this.getField(cRowName + ".PartSelect").setItems(lst);
          else
             this.getField(cRowName + ".PartSelect").clearItems();
          // We have a new parts lists and the first entry is 
          // is a non-selection.  so clear the price field.
          this.getField(cRowName + ".Price").value = 0;
    I am not able to recreate if I select "Edit all Javascripts" only when I use document javascripts.

  • How to make a drop down list default to a blank space

    I have a drop down list
    <cfselect name="EmployeeName" query="getname"
    value="EmployeeName" selected=" "></cfselect>
    I want the list to default to a blank space, can this be
    done?
    If so, how?

    I figured out a way to do it, except now I ran into another
    problem. The way I have it set up, i can't make it required now.
    Any ideas?
    <cfselect name="EmployeeName" query="getname"
    value="EmployeeName" required="yes" message="Please select your
    name">
    <option value="" selected="selected"></option>
    </cfselect>

  • How to open the Drop Down List on the "enter" event?

    I am trying to find a way for the users to see the expanded drop down list options without using their mouse to click on the down-arrow.
    I am able to add script to the "enter" event so when user key-broad-tabbed into the drop down field, the first items of the list shows up:
    dropdown1.selectedIndex = 0
    However, it would be nice if at the same time, they can also see the rest of the options within the drop down expanded.
    Any help/hints would be appreciated
    Thanks in advance
    p

    It would even be nice if the PDF could default with the small arrow already displaying instead of having having to click the field, then click the arrow. I'm just hoping adobe would add this in a future version.

  • A simple process I just don't know - how to make one drop down list dependent on another.

    Drop-Down List One has 17 office names. Drop-Down List Two has sub-office names associated with each of the 17 main offices.  If user selects Office 3 from Drop Down List One, only sub-offices associated with Office 3 should appear as choices in Drop-Down List Two.  How do I do that?

    You have asked your question in the Adobe Reader user forum.
    You cannot do what you want with Adobe Reader. Adobe Reader is a PDF viewer - no more, no less.
    You need Acrobat.
    The Acrobat user forums are at:
    https://forums.adobe.com/community/acrobat
    Be well...

  • How to use multiple drop down lists and do not allow duplicates.

    I am creating a roster that has multiple positions on multiple pages. I have a drop-down list that is populated with all of the employees and want to make sure that the same employee cannot be selected for multiple posts. Ideally, when one is selected in a position, that person would not be an option in the other drop-down lists. Also, when the form is published, the end user will not use the drop-down lists in order. I have found script to remove selected items, but it only works when the user makes selections in order (List1, List2, List3 etc).
    First time posting, any help would be appreciated.

    Look into the ring control.  It behaves a lot like an enum, but you can dynamically set its contents and values associated with those contents.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • How to populate page drop-down list in Struts from action?

    I have following mockup JSP:
    <td colspan="2" height="28"> <font size="2">
            <html:select property="sj">
               <html:option value="allj">aaa,1,str1</html:option>
             </html:select>
                        </font>
                      </td>
    ...Struts action will prepare results as String[] array e.g.:
    aaa,1,str1
    aaa,2,str2
    aaa1,1,str3
    aaa1,b,str4
    and I have to show this in the page as a drop-down list of values that are represented in this String[] array returned from Struts action.
    Should action return result array in original ActionForm submitted to the action by this page or should it just put the array into request or session? I need an example if possible
    Many thanks,

    Hi,
    In ur Action Class create aa ArrayList of LabelValueBean Object (use import org.apache.struts.util.LabelValueBean; )
    Eg:
    ArrayList myList  = new ArrayList();
    for( int i=0; i<10 ; i++ )
       myList.add( new LabelValueBean(  "Label of  "+ i , " value of " +i  ) );
    }put myList either in request or session
    eg
    session.setAttribute(  "DisplayList", myList  );****************************************************************
    in JSP use JSTL Tags for JSP
    eg
    <html-el:select property="listToDisplay"  style="width=200" size="1">
    <html-el:option value="-1">--Select One--</html-el:option>
    <html-el:options collection="DisplayList" property="value" labelProperty="label" />
    </html-el:select>Here "DisplayList" will be ref'ed from session scope or request scope.
    Hope this can solve ur Doubt.
    Ganesh

  • How to Populate a drop down list using the values of a text field?

    Hi,
    I wanted to Populate the items of my drop down list according to the value entered in the textfield above it?
    also the value of list remains consistent in other rows also where i am using the drop down list field.
    Please Try to help me in this query.
    Thanks in Advance!!!
    I am using Javascript in adobe version ES 8.2.

    Part II:
    If you have other items for your droplist(s) that are to appear in addition to the "variable language" entered by a user you can add that to the script.  For example in addition to the Party1 and Party2 name appearing in my droplist I also want the list to have an option for a user to select: The parties jointly.  I add this to the script:
    this.addItem(Party1.rawValue);
    this.addItem(Party2.rawValue);
    this.addItem ("The parties jointly");
    If you have trouble making it work, post a bit of your actual form requirements.

Maybe you are looking for

  • Backup discs could not be read error occurred (-50). HELP!

    I'm using itunes 9.0.2; running Windows XP on Oracle Virtual Box in Ubuntu 10.04. the latest itunes will not work and 9.0.2 is the closest i can get. One out of 4 backup discs contains only the itunes purchases and it works but a message pops up: +'c

  • I/O error opening a pdf file with form fields, using itextsharp

    Hi, I'm using itextsharp PDFStamper to set the form fields in a pdf file. It works on my computer properly, but on the QA site and other developer's machine it only shows the values of the form fields, the original text does not show, and it gives th

  • How to delete recurring cookie in Safari?

    I try do delete cookies in Safari 5.1.7 with settings to "Block from 3rd parties and avertizers". Most cookies can be deleted, but there is one named 194] that I delete and 2 seconds later it reappears in the cookies list. I tried to search the mac f

  • Using iMac and Macbook together..

    I've read that it's possible to use an iMac's screen as a monitor for a MacBook Pro via Thunderbolt but is it a simple case of plugging in the cable and I'm good to go with the laptop and then unplugging it (without having to power down) and carrying

  • What is a module ?why do we develop it?

    what is a module ?why do we develop it?