JComboBox - selection down arrow not appearing

Hi All,
I am writing a swing application which uses a JComboBox with a Vector<String> as it's constructor arguments. This JComboBox is then added to a JPanel derived class which is in turn added to a JFrame. The JComboBox works fine but the selection down arrow does not appear for some reason.
So I built a quick test application (in a similar fashion) and the JComboBox also works fine but this time the selection down arrow does appear.
I can't figure out what I'm doing different. Can anyone tell me the circumstances under which the down arrow will / will not appear in a JComboBox?
Thanks,
Dougall

Hi,
The reason I had used this approach is that sometime I wish the content pane to hold a JPanel type component (only) and sometimes a JTable type (only). I had (foolishly perhaps) assumed that this would not be possible with a standard layout manager.
As es5f2000 suggests I shall investigate a CardLayout manager.
If this does not succeed I shall keep the present system which currently works fine (maybe performance issues?). The bounds and size of the parent container are both work fine so long as I remember to call .validate() on the new component being added to the JFrame.
The JFrame itself is specifically set to be a fixed non-resizable size, surely this is a case in which although not recommended, it's ok to use absolute positioning?
Thanks again,
Dougall

Similar Messages

  • Query Selection Screen does not appear in Web Analyzer

    Hi Experts,
    Query Selection Screen appears when we open the query in Bex Analayzer in production system. But when we open the query in ABAP or JAVA Web view, the selection screen does not appears.
    As the volume of data in the cube is very high, and since the selection screen is not appearing, the query extracts 1.5Mrecords and results in dump.
    Kindly let me know the possibility for selection screen not appearing.
    Note: The selection screen appear in Development system in Bex Analyzer, ABAP View and Java View
    Regards
    Suresh Kumar

    Dear Suresh,
    You can check if the parameter &VARIABLE_SCREEN=X is added to standard template or not, If not add this,
    In order to add this parameter in the webtemplate you have to change 0ANALYSIS_PATTERN and save it as ZANALYSIS_PATTERN and enter this standard web template under TCODE RSCUSTV27.
    Also I would like to explain you the behavior of Web Analyzer,
    Parameter VARIABLE_SCREEN=X only influences the WEB application at startup. This will not come into affect
    when you use the 'New Analysis' button. The 'New Analysis' button resets the dataprovider so this would not
    affect the variable screen and would not redisplay the variable screen as you require.
    Regards,
    Arvind

  • HT2486 The selected file does not appear to be a valid comma separated values (csv) file or a valid tab delimited file. Choose a different file.

    The selected file does not appear to be a valid comma separated values (csv) file or a valid tab delimited file. Choose a different file.

    I guess your question is, "what's wrong with the file?"
    You're going to have to figure that out yourself, as we cannot see the file.
    Importing into Address book requires either a tab-delimited or a comma-delimited file. You can export out of most spreadsheets into a csv file. However, you need to make sure you clean up the file first.  If you have a field that has commas in the field, they will create new fields at the comma. So, some lines will have more fields than the others, causing issues like the error you saw.

  • Motion tween- arrows not appearing, tween not working! please help?

    I select where I want my motion tween to be, ctrl-click and select 'create motion tween'. It appears blue, and does not come up with an error message but no arrows appear like in the video's and the motion tween has not worked. Any ideas why? Also, I opened up a file that already had a motion tween in it (made by somebody else) to test it. I selected the motion tween and clicked 'remove tween' and straight away clicked 'create motion tween' again- to put exactly the same motion back into it, but the same thing happens- the selected area appears blue but no motion tween. Then, if I select it again, the option is 'remove motion' not 'remove tween' as before. A little complicated and could really use some help! Thanks!

    Thanks very much for the help. Classic tween has worked, the arrows have appeared and the figure moves but the shapes do not move around their anchor points and go all over the place before suddenly appearin in the right position on the very last frame.This is a screenshot of what i see on the second to last frame:
    And this is the last frame:
    I made sure all the anchor points were in the right place beforehand, any ideas why the shapes wont move right?
    Thanks.

  • Down Arrow not Functioning Properly

    The down arrow key is not doing what it is supposed to do. When pressed, nothing happens. For example, in Firefox it doesn't scroll down. In Word, it doesn't scroll down. In games, it doesn't control anything, and isn't recognized when pressed or rebound.
    HOWEVER, the button clearly still functions. It still does other things. For example, in Firefox, when command+downArrow is pressed, it scrolls to the bottom of the page.
    The problem also occurs when using just the laptop with no external hardware connected, when using an Apple blue tooth wireless keyboard, and when using a wireless usb Logitech keyboard. Both these external keyboards function perfectly in every other way.
    This problem seemed to arise after I first plugged in my wireless Logitech keyboard (that is not OS X compatible on the box, as far as I know). When performing the keyboard set up, I could not complete the "keyboard type detection test" (because my shift control and alt keys were not side by side) so instead I chose the "standard us keyboard" option.
    So why has my down arrow become unmapped has a "move thing down" button? And how can I fix it.
    Thanks
    PS: Completely unrelated (I assume), but I recently had the logic board on the MBP replaced, after a fatal crash during World of Warcraft play that rendered the computer unusable. When the power button was pressed, it beeped SOS on a black screen. Lots of troubles here, I am not too impressed.
    Message was edited by: Foliot

    You can't brick your MBP doing anything with .plist files. I suggest that if the Logitech keyboard's software included a preference pane in the System Preferences window, you look carefully at all the settings in that prefpane for any that seems like it might have affected the mapping or behavior of your arrow key, and then look in Hard drive/Users/youraccountname/Library/Preferences for a .plist file with Logitech in its name or that appears related to the Logitech keyboard. If you find one, drag it out to the desktop, restart the computer, and see whether the key behaves any better. If you don't find anything in that folder that strikes you as a likely suspect, look for a .plist file with a "last modified" date on or shortly after the date when you first connected the Logitech KB, and drag that file to the desktop, then repeat the test.
    Not knowing what if any software was installed to support the Logitech KB, and relying totally on your recollection that the problem began when you first used it, this is about all I can suggest. The ultimate resolution if all else fails will be to reinstall your OS, but I hope if my suggestions fail, someone else will have other ideas for you before you go to that drastic and tedious length.
    Of course if you have a bootable clone of your hard drive from before the problem arose, simply restoring that to your internal hard drive will resolve the problem in about the same way as reinstalling everything, but in a small fraction of the time.
    Message was edited by: eww

  • HP Smart Web Printing Select Button does not appear

    Just started to use Smart Web Printing. The Select Button as shown in the help file does not appear on the screen. Instead, a small box "x Select area to remove" shows within the area to print.
    Printer: HP Photosmart C6380
    System: Windows Vista SP2 Home Premium
    Browser: Internet Explorer v9
    [email protected]

    Hi,
    The HP Smart Web Printing software is not compatible with Internet Explorer 9, you should unisntall it and upgrade to its replacement app HP Smart Print which compatible with your web browser:
    http://h10025.www1.hp.com/ewfrf/wc/document?docname=c02994297&tmp_track_link=ot_faqs/top_issues/en_u...
    Shlomi
    Say thanks by clicking the Kudos thumb up in the post.
    If my post resolve your problem please mark it as an Accepted Solution

  • Bex selection screen does not appear when running workbook via RRMX.

    Hi Experts,
    I have following problem: When I run a BEx workbook from a user menu (trans. RRMX), I get no selection screen, but just the workbook with text: "no data found". When I press the refresh button (variable change button), the selection screen appears and after that the data are visible in the workbook. When I run the underlying query the selection screen appears normally. With some other workbooks with selections I do not have such a problem.
    Anybody can give me a hint how to get the selection screen diplayed? We are on BI 7.1, Bex SP 10, patch 1.
    Thank you,
    Michal

    Dear Michal,
    Your Question:
    Anybody can give me a hint how to get the selection screen diplayed? We are on BI 7.1, Bex SP 10, patch 1.
    Answer:
    Open the workbook and goto workbook setting from the analyzer design toolbar.
    Check the Refresh workbook on check box.
    So every time the selection screen will be appear after exectuion of the workbook.
    Thanks & Regards,
    Praveen.K

  • Selection screen text not appearing in other than engllish language .

    Hello All,
                On selction screen I have 3 select-option and 2 radio button for that I have the  selection text maintain in 'Selection Text".
                When I login to system using French language then on selection screen only select options text  is appearing in French language and Radio buttons text is not appearing in French language, it appearing in English  language. In the program where I have maintain the selction text one column is there name as  "Dictionary Object" which has the check box. In that, for select options check box is check in Dictionary object but for Radio button that check box is in disable mode.
                 So how can Radio buttons text is appearing in French language when login through french language.

    You've two options.  One, log in in French and maintain the texts for the radio buttons directly.  Two, use tx SE63 to maintain the texts for the radio buttons in French.
    The select-options are automatically translated because their texts come from the data dictionary, and (as presumably they're SAP standard types), they're already translated as part of the French language pack.  But the radio-buttons you have to do yourself.
    matt

  • Changes made in the web report selection scree do not appear on webpage.

    Hi
    I want to add 2 checkboxes on a web page of a report. I have done the changes in R/3 ABAP report (Added checkboxes on selection screen) and also released the report for internet using SMW0 transaction. But these two checkboxes are not appearing on the web page in internet explorer.
    Whenever I try to access the URL
    http://www.abc.com/scripts/wgate?~service=webrfc&_FUNCTION=WWW_GET_SELSCREEN&_REPORT=ZWR_PO_DELIVERY&_TEMPLATE=po_selscreen
    it redirects it to the URL below
    http://www.abc.com/scripts/po.asp?SESSION=PRD:ebgwebap:0000.00f5.7e1af317.e4db&SELD_EINDT_LOW=26.04.2008&SELD_BEDAT_LOW=01.04.2007&SELD_BEDAT_HIGH=26.02.2008
    What should I do so that these two checkboxes would start appearing on the webpage?
    Edited by: Pratiksha Parab on Feb 26, 2008 11:28 AM

    thats difficult to say without seeing the code in the template.
    when you dont supply any _tempate value in the url, the system by default uses
    WEBREPORTING_SELSCREEN template.
    your po_selscreen may be a copy of this and modified to change the look and feel or something like that. compare these two and see whats causing the selscreen from appearing completely

  • The selection 'photocast' does not appear on my share menu.

    I have a .mac account, but the "photocast" selection does not appear on my iphoto6 share menu.

    jntr:
    First delete the iPhoto Preference file. If that doesn't help try repairing disk permissions and, if necessary, reinstall iPhoto for the disk it came on, update to 6.0.5 and then repair disk permissions again. If you do try a reinstall of iPhoto you'll have to delete the current application and all files with "iPhoto" in the file name that reside in the HD/Library/Receipts folder.
    Do you Twango?
    TIP: For insurance against the iPhoto database corruption that many users have experienced I recommend making a backup copy of the Library6.iPhoto database file and keep it current. If problems crop up where iPhoto suddenly can't see any photos or thinks there are no photos in the library, replacing the working Library6.iPhoto file with the backup will often get the library back. By keeping it current I mean backup after each import and/or any serious editing or work on books, slideshows, calendars, cards, etc. That insures that if a problem pops up and you do need to replace the database file, you'll retain all those efforts. It doesn't take long to make the backup and it's good insurance.

  • Partner selection pop-up not appearing while saving

    HI Experts,
    I have maintained partner determination procedure, based on this there is pop-up box triggered for selecting the partner for service team, but the same is not appearing when i change the determination time to "When saving" but the pop-up box is triggered when the determination time is "recurring", is there any ways we can trigger this pop-up box when i serach for the service team durring entry.
    Thanks & Regards
    Milan

    Thanks for the reply Anil.
    Please find the code below.
    The requirement is simple.
    1)we need to go to VT02.
    2)delete the stages and then save.
    In step 2 ( when we hit on delete, sy-ucomm 'TSLP', the pop up should appear.
    But it is not appearing.
    the lines in bold is the code that is added for the pop to come.
    But it is still not coming.
    report YCONV no standard page heading.
    include bdcrecxx.
    start-of-selection.
    perform open_group.
    perform bdc_dynpro      using 'SAPMV56A' '0011'.
    perform bdc_field       using 'BDC_OKCODE'
                                  'UETS'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'VTTK-TKNUM'.
    perform bdc_field       using 'VTTK-TKNUM'
                                  '7505000593'.
    perform bdc_dynpro      using 'SAPMV56A' '0040'.
    perform bdc_field       using 'BDC_OKCODE'
                                  'MKAL'.
    perform bdc_dynpro      using 'SAPMV56A' '0040'.
    perform bdc_field       using 'BDC_OKCODE'
                                  'TSLP'.
    **begin insert
    *PERFORM BDC_DYNPRO      USING 'SAPLSPO1' '0100'.
    *PERFORM BDC_FIELD       USING 'BDC_OKCODE'
                                 'YES'.
    **end insert
    perform bdc_dynpro      using 'SAPMV56A' '0040'.
    perform bdc_field       using 'BDC_OKCODE'
                                  'SICH'.
    *begin insert
    perform bdc_dynpro      using 'SAPLSPO1' '0100'.
    perform bdc_field       using 'BDC_OKCODE'
                                  'YES'.
    *end insert
    PERFORM BDC_TRANSACTION USING 'VT02'.
    perform close_group.

  • Drop down is not appearing in firfox

    i have the jsf page in that dropdowns are not appearing correctly when i am using firefox it displays only half size also there are more spacing between the components but it was working fine in IE..please give me an some suggestion for that..
    Thanks in Advance
    Mohan

    mohanraj.N wrote:
    i have the jsf page in that dropdowns are not appearing correctly when i am using firefox it displays only half size also there are more spacing between the components but it was working fine in IE..please give me an some suggestion for that..First, this has nothing to do with JSF. Second, you haven't posted any code. How could we possibly suggest a solution without any understanding of the problem?

  • Bar icons for wireless and menue arrows not appear

    bar icons for wireless, bluetooth, volume and menue arrows not appear

    What other items do you have there? There have been some 3rd party applications whose menu bar access has caused problems with the existing menu bar items. If you have 3rd party items, try removing them from the menu bar and seeing if the problem is resolved.

  • Down-arrow icon appears next to search bar, and iTunes freezes!!!

    Hi Everyone,
    For the past few days, whenever I open iTunes a little download arrow icon appears next to the search bar (see attached image)  after about 1 minute, and then the program becomes unresponsive. Does anyone have any idea what's going on here? I tried disabling the genious, but it didn't seem to help.. Please help!!
    I'm using the latest iTunes, with 11.0.4 (4), Mac OS 10.8.4.
    Thanks very much!!!

    Actually I think I figured it out. I think I was using a faulty link for one of my podcast subscriptions that was messing everything up (Tiny Desk Concerts Audio Podcast)
    Thanks all!

  • Apple drop down menu not appearing.....

    Recently had to do a complete restore from my back up to my mac mini.
    Seems to have sorted out most of the problems I was having (but not all).
    However the Apple Symbol drop down Menu in the Menu bar turns blue when clicked on, but no sub menu appears.
    Very inconvenient.
    I'd be grateful for any thoughts on a solution to this.
    And while I'm on the subject of weird things that the restore has produced......
    I use iWeb to create a number of websites but now, after the restore, the icon in the dock is grey and when I try to open it I get a message that says
    You can't open the application iWeb because it may be damaged or incomplete.
    Any suggestions or possible solutions gratefully received.
    Thanks
    Gordon

    On Tue, 28 Nov 2006 11:38:59 +0000 (UTC), "Kamesh192"
    <[email protected]> wrote:
    > <form action="<?php print
    $_SERVER['PHP_SELF'];?>" method="get">
    > <label for="menu"></label>
    >
    > <select name="ID" class="dropdown" id="menu"
    onchange="this.form.submit()">
    > <noscript><input type="submit" value="Go"
    /></noscript>
    > <option value="" selected="selected">Jump To
    Another Project</option>
    > <?php
    > do {
    > ?>
    > <option value="<?php echo
    $row_rsOtherDevs['devID']?>"><?php echo
    >$row_rsOtherDevs['title']?></option>
    > <?php
    > } while ($row_rsOtherDevs =
    mysql_fetch_assoc($rsOtherDevs));
    > $rows = mysql_num_rows($rsOtherDevs);
    > if($rows > 0) {
    > mysql_data_seek($rsOtherDevs, 0);
    > $row_rsOtherDevs = mysql_fetch_assoc($rsOtherDevs);
    > }
    > ?>
    >
    > </select>
    > </form>
    Change the above to:
    <form action="<?php print $_SERVER['PHP_SELF'];?>"
    method="get">
    <select name="ID" class="dropdown" id="menu"
    onchange="this.form.submit()">
    <option value="" selected="selected">Jump To Another
    Project</option>
    <?php
    do {
    ?>
    <option value="<?php echo
    $row_rsOtherDevs['devID']?>"><?php echo
    $row_rsOtherDevs['title']?></option>
    <?php
    } while ($row_rsOtherDevs =
    mysql_fetch_assoc($rsOtherDevs));
    $rows = mysql_num_rows($rsOtherDevs);
    if($rows > 0) {
    mysql_data_seek($rsOtherDevs, 0);
    $row_rsOtherDevs = mysql_fetch_assoc($rsOtherDevs);
    ?>
    </select>
    <noscript><input type="submit" value="Go"
    /></noscript>
    </form>
    Gary

Maybe you are looking for