Why JComboBox not shown?

I use a JPanel, and tried to show a JComboBox on it.
But somehow the JComboBox is not shown. Need
help here. Thank you.

Just for fun, I wrote a small test program that included the following lines:
modeType.addItem("Phi");
modeType.addItem("Pump_probe delay");
modeType.setSelectedIndex(0);
modeType.setEnabled(true);
modeType.setBounds(40, 150, 120, 30);
add(modeType, null);As you can see, those lines are identical to the code you posted. modeType is a JComboBox that I'm adding to a JPanel that has no layout manager. In my program the combobox shows up perfectly.
This tells us that the problem with your code is not those 6 lines, but something else. And without seeing the rest of your code it's awfully difficult to guess what it can be.

Similar Messages

  • Why graphics not shown?

    I am runinng a programe in Forte. The code has graphics(gif) located in the same directory as the class file and refered in the code with just the graphic name. The graphics are not shown when the code is excured.
    I have set the classpath with ".", but it does not help. Do I have to code a hard path for the graphics?
    Thanks

    Try something like:
        imageLabel = new JLabel();
        javax.swing.ImageIcon icon = new javax.swing.ImageIcon(
            getClass().getResource("d_sun.gif")
        if( icon != null ) {
          imageLabel.setIcon( icon );
        }If your class is in a package (and the gif is in the package too) you will want the relative path as well.
            getClass().getResource("/com/GumBTech/GumUtil/d_sun.jpg")

  • Stock for 0STOCKTYPE value # not shown

    Hi experts,
    I've got a little problem with showing stock with dimension stocktype.
    I've created a query with the free dimension stocktype. When adding this to the rows all stocktypes but the empty ('#') are shown. The total shows the value including '#' data:
                                            Stock (Value)
         Plant      Stock Type                          EUR
         1101     Frei verwendbar               -25.190.984,26
                 Gesperrt                 7.423.054,97
                 Kundenkonsi frei ver          -181.952,48
                 Transit                    34.243.952,30
         Total                                  23.680.941,04
    Does anybody has an idea why # ist not shown?
    Kindest,
    Ralf

    Hi,
    Enable the Key and Text type for stock type and check if you get any values. Doesn't seem like you have given any restriction otherwise total will not addup.
    Still you can check if you have put any global filter or any specific filter to Stock type if it is RKF?
    Regards,
    Durgesh.

  • Thanks Neil. Though I have purchased Mountain Lion from Mac App stores before HD crash, this is not shown in the list of purchases.why?

    Thanks Neil. Though I have purchased Mountain Lion from Mac App stores before HD crash, this is not shown in the list of purchases.why?
    regards,
    [email protected]

    If you go to System Preferences > Network do you see other networks listed on the left panel?  Is the lock in the lower left corner closed?  If not, highlight your network, then close the lock so you block other networks.

  • Why photos are not shown in pdf

    in some pdf's the pictures and photos are not shown, do you know why

    Refer this article
    The Microsoft.SharePoint.SPFieldCollection.AddFieldAsXml method
    http://blogs.msdn.com/b/sharepointdev/archive/2011/01/20/why-do-my-new-list-fields-not-appear-on-the-new-edit-or-display-forms.aspx
    Please remember to click 'Mark as Answer' on the answer if it helps you

  • Why is the 9860 not shown on UK site? am I buying a dud?

    The daughter wants to upgrade from her 9300. Shes decided she wants a tocuh phone back, so looked at options. 9380 (too small screen), 9810 (maybe, but bulky), and the 9860.
    However I'm in UK and the 9860 isnt even listed on the smartphone list of phones. Am I buying a dud here? is it not supported anymore? why is it not shown, was it that bad?
    I will have to buy this SIM free or PAYG, as shes mid contract.
    anyone please? and comments on the actual phone?
    cheers

    Not sure why its not listed, but you can purchase SIM free from Play.com at least
    http://www.play.com/Mobiles/Mobile/4-/22144649/BlackBerry-Torch-9860-SIM-Free-Unlocked-Mobile-Phone/...

  • HT5620 hi , why the rest security question not shown in my browser to press on it and rest my forgotten answers ?? hellllp plzzzz

    hi , why the rest security question not shown in my browser to press on it and rest my forgotten answers ?? hellllp plzzzz

    Alternatives for Help Resetting Security Questions and/or Rescue Mail
         1. If you have a valid rescue email address, then use this procedure:
             Rescue email address and how to reset Apple ID security questions.
         2. Fill out and submit this form. Select the topic, Account Security. You must
             have a Rescue Email to use this option.
         3. This is the only option if you do not already have a valid Rescue Email.
             These are telephone numbers for contacting Apple Support in your country.
             Apple ID- Contacting Apple for help with Apple ID account security. Select
             the appropriate country and call. Ask to speak to the Account Security Team.
         4. Account security issues almost always require you to speak directly to an
             Apple representative to securely establish your identity as the account holder.
             You can set it up so that Apple calls you, either immediately or at a time
             convenient to you.
                1. Go to www.apple.com/support.
                2. Choose Contact Support and click Contact Us.
                3. Choose Other Apple ID Topics and choose the appropriate topic for
                    your issue.
                4. Follow the onscreen instructions.
             Note: If you have already forgotten your security questions, then you cannot
             set up a rescue email address in order to reset them. You must set up
             the rescue email address beforehand.
    Your Apple ID: Manage My Apple ID.
                            Apple ID- All about Apple ID security questions.

  • Why are the DNG Thumbnails of my Sony DRC RX100 not shown in the File Finder of my Mac?

    When I first import the original RAWs from my Sony DRC RX100, I can see the thumbnails in the File Finder (so my Mac with OSX 10.9.1. is perfectly fine), but after reworking them with Lightroom and exporting them as DNG files, the pictures are not shown any more as thumbnails in the file finder, but as empty white boxes. The curious thing is that the RAW pictures shooted with my Nikon D5200 do not have any visualization problem after exporting them from Lightroom.  The problem is very disgusting, as I can not search for pictures in the file finder. And Adobe did just close my open request on this issue (case #0180632682) without my consent and without any solution! Who else has got this problem and knows if there is any help to this stupid phenomenon? Does anyone at Adobe take care at all?
    Thanks!
    Tinero

    I think that this is a Lightroom problem because the original Raw files from the camera card are shown as thumbnails in the file finder, but after importing them into Lightroom as dng, retouching them and exporting them with Lightroom, the files are not shown any more. Obviously my sony RX100 camera is not the problem, at least not for my Mac. As Lightroom always needs to work together with a windows PC or a Mac, Adobe should ensure the compatibility of the functions with the host system. I think that is what all consumers logically expect from Lightroom. And a photography SW should be able to show fotos and export visible foto files...
    The very same Dng files from my other camera (a Nikon d5200) do not have this problem at all, although I export them in the very same format as the pics from my Sony, which is not at all an exotic camera. This is very confusing.
    I export dng files because this is the Lightroom own raw format that keeps the original quality of my raws. TIFF files are too large, and jpegs sensibly reduce the quality. So there is no option. I need to stay in Raw. Do I have any other quality options?

  • Why Arabic charactes in PDF are not shown ?

    I have Microsoft IIS , oracle report server , Acrobat writer 5 and report builder 6
    in Windows2000 with Arabic language enabled.
    In live previewer and HTML format Arabic characters are shown correctly in my report
    also when i print my report by Acrobat distiller printer, but when i generate to file PDF ,
    arabic characters are not shown correctly (they are not shown as question marks )
    this meanes that my reports in IE5 as PDF do not show arabic characters.
    How Can I define my Acrobat distiller printer as default printer used by web CGI (rwcgi60) ?
    I have found this statment in developer documents:
         "PDF does not support multi-byte character sets."
    wether it meanes that i can not have reports with arabic characters as PDF?
    thanks for your help.

    Jalal,
    BiDi was not supported in PDF output in reports 6/6i. It is supported in reports 9i.
    Thanks
    The Oracle Reports team

  • Modified versions from external editor are not shown in browser, why?

    After I modify an image in Silver Efex and save it , the image is not shown in it's modified form in the browser. When I open the image it shows as modified.

    Remember when you return an image from an external editor/plugin the returned image is made into a new master. Are you sure you're looking at the correct image in Aperture?
    If that's not it post back describing the exact steps you are taking from sending the image to the plugin until you're back in Aperture.
    regards

  • Why is some text not shown after merging multiple documents

    One of my clients is using Adobe Acrobat XI and they are merging multiple PDF documents (up to 1000 single PDF's!) to create one big PDF document.
    But somehow just some parts of the text are not shown after the merging (it is actually still there because you can copy and paste it in to Word and you will see it again)?
    Any suggestions?

    Hi Wunold van Drunen,
    Since you have identified the problematic pages, have you checked if the issue occurs with the same pdf when merged with a smaller number may be 10 pdfs.
    How are these pdfs created? It might be possible that the said document's pdf structure is incorrect.
    You may want to sanitize the said pdf's before combining and check.
    Regards,
    Rave

  • Why the distant objects are not shown ?

    Hi , everyone .
    The distant objects are not shown unless moving the view closer to them in Java3D .
    How to change or set to show the distant objects without moving the view ?
    Anyone on any information or advice would be helpful.
    3QS !!!
    PS: using the defualt virtual universe : SimpleUniverse

    When you are creating the View Object do something like this:
    // Set up the Front Clipping Distance - in Virtual Eye Coordinates
    myView.setFrontClipPolicy( View.VIRTUAL_EYE );
    myView.setFrontClipDistance( FRONT_CLIP_DISTANCE );
    // Set up the Back Clipping Distance - In Virtual Eye Coordinates
    myView.setBackClipPolicy( View.VIRTUAL_EYE );
    myView.setBackClipDistance( BACK_CLIP_DISTANCE );
    The VIRTUAL_EYE can be replaced by PHYSICAL_EYE and a few others(check javadocs for View for more info)
    and the FRONT_CLIP_DISTANCE and BACK_CLIP_DISTANCE are just :
    public static final double FRONT_CLIP_DISTANCE = 0.1; // 0.1 Virtual Meters
    public static final double BACK_CLIP_DISTANCE = 100; // 100 Virtual Meters
    so to get your objects in the distance to render at a greater distance from them, then just increase the BACK_CLIP_DISTANCE to 1000 or something like that
    NOTE: the larger the BACK_CLIP_DISTANCE, the longer and slower it will take to render you scene each frame. YOU WILL PAY FOR THIS (in CPU time)
    Hope this helps
    -- Rob

  • Apple tv my tv programmes are not playing in widescreen even though rented movies are. Aditionally my photos on my iPhone 4 are also shown only in the middle of the screen? Why are not all films/programmes / photos filling the whole screen?

    Just purchased Apple TV 2 & music videos purchased and films rented from iTunes play in 16:9 ratio and fill my 6 year old Samsung TV screen completely. However my photos and videos played by AirPlay play in the centre of the screen along with TV series purchased and played from iTunes. Why are not all played media filling the TV screen even though they are playing in 16:9 on the TV?

    if the original material is not in widescreen appletv will not play it in widescreen
    if it did it would mean that it had to cut off some of the image

  • Why JPanel loaded is not shown up immediately???

    Dear Friends:
    I have a JPane to dynamically load other different JPanel at run time according to My click on different Tab, but my problem is that when I click the each diff Tab, the JPanel loaded is not shown up immediately,
    I must minimize whole application, then restore back to its original size, the loaded JPanel will show up,
    I used repaint() at the end of each loading, but did not take effect,
    How to solve this problem??
    Thanks
    sunny

    After add or removing components from a panel on a visible GUI you need to revalidate() the panel, so the LayoutManager can be invoked.

  • Yosemite 10.10.1: Finder/CIFS mount problem: wrong folder count/folders not shown @samba shares

    Hello to all,
    we have several MacBook Pro (15" MBP Retina 2012/13"MBP Retina 2014) running. After upgrading to Yosemite 10.10.1 we had one nightmare after the other.
    Most problems could be solved with 3rd party software upgrades but there are several problems with the operating system itselve which can not really  be called a professional productive system at the moment...
    Ok., one thing after the other...here is one of our biggest problems:
    After upgrading from Mavericks or Mountain Lion to Yosemite 10.10.1 the CIFS/SMB mounts to our samba 3.x servers, running on Ubuntu Linux LTS 12.04 makes trouble. We could mount the server shares but after browsing with the Finder the beach ball occures and the Finder hangs forever. Sometimes we could not refresh the Finder, killing the process ended in a complete hang-up of the system which ended in a switch off death blow. This is not amusing because we have 30Tb of customer data there, which has to be worked out.
    We heard about the SMB3 protocol which will be used per default in Yosemite and so we decided after some testings to upgrate our Ubuntu servers to the latest LSF 14.04. release with samba 4.1.6 installed. There was no message from Apple for this SMB protocol release upgrade, never heard something related to Yosemite (Why?).
    Ok, after these server upgrades and disabling most of the Spotlight functions the performance to the CIFS shares was a little bit better as before but now we have another problem with the Finder...if you browse to the shares there are folders missing which have lots of files in it. For example there is a folder with 60 subfolders and 3562 files on the first level in it, the Finder shows 220 files and 15 folders. The Terminal shows a different count with "find . -maxdepth 1 -type d | wc -l" or "find . -maxdepth 1 -type f | wc -l" but there is also a difference to the original file and folder count. It doesn`t matter if the clients are connected via WiFi or Gigabit Ethernet. We have no access problems. We have the same behavior if we set the files and folders to 0777 permissions on the servers. The deletion of the preferences files of the users on the MacBooks does not solve the problem. If we use the "Go To Folder" option and type the path to a folder which is not shown in the Finder you get an result or not. But it is also possible that the result is not correct and there are also still files or subfolders missing.
    In my opinion this is a timeout problem and a "special SMB3 protocol interpretation" which is buggy. We have one hint found in /var/log/system.log:
    "Jan 23 14:35:49 wsosx33.clients.getcom.de KernelEventAgent[69]: tid 54485244 type 'smbfs', mounted on '/Volumes/customersdata2015', from '//x144067:@srvlxp013.servers.getcom.de/customersdata2015', not responding"
    We had no problems with Mavericks at all, we still have no problems with Windows 7 Pro/Ultimate, Windows 2008R2 (native or virtual) or Linux Mint 17/17.1 clients, neither with samba 3.x nor with our actual environment and different newer samba releases.
    We believe that this is a big bug in Yosemite, but we cannot go back to Mavericks because of incompatible TimeCapsule backups. Our workarround at the moment is that we have installed Linux Mint on our MacBooks to get 80% of our daily jobs done, rest has to be done with Windows 7 installed over virtualbox @Linux.
    We have no clue at the moment how to solve this problem, the samba logs do not give any hint. The access from other operating systems is perfect and very fast, but not with Yosemite. We checked different tips found in the internet but nothing helped.
    Does anybody has another idea to get Yosemite working or should we keep Linux Mint until Apple will provide a CIFS/SMB patch and going on with our workaround solution, which is productive at the moment ??? Our staff is not amused and wants one solution and not this workaround with two operating system. We have to decide wether we wait until Apple will get this fixed or we have to switch to Microsoft Windows (which is a No Go for me, but I will not be asked...).
    Thanks in advance
    C.

    Hi William,
    thank you for your response.
    As you can read in my post I talked about CIFS/SMB.
    It makes no difference if we mount the share over CIFS or SMB.
    Folders with lots of files will not be shown even if we use SMB3 or an older protocol.
    As mentioned I believe this is a timeout problem.
    Does anybody know how the CIFS/SMB timeout setting in Yosemite could be changed?
    Kind regards
    C.

Maybe you are looking for