Icons in JClient doesn't appear

Hi guys,
I have a trouble to display Icons in an application that is implementing a Jmenu.
menuItemII3.setIcon(new ImageIcon("images/paste.gif"));
menuItemII2.setIcon(new ImageIcon("images/copy.gif"));
My source is on: ..\src
I copied my images under src: ..\src\images
As I have a package called: package xxx.yyy.zzz;
the compiler leaves the .class under : ..\class\xxx\yyy\zzz
So, I copied the images files in: ..\class\xxx\yyy\zzz\images
I also tried to call the icons with:
ImageIcon copyIcon = new ImageIcon('copy/images.gif');
menuItemII3.setIcon(copyIcon);
but didn't work.
Another try was to put it into the instance of the item menu:
JMenuItem menuItemII3 = new JMenuItem("copy",new ImageIcon("images/paste.gif"));
What could be wrong?
Thanks.

Hi guys,
I have a trouble to display Icons in an application that is implementing a Jmenu.
menuItemII3.setIcon(new ImageIcon("images/paste.gif"));
menuItemII2.setIcon(new ImageIcon("images/copy.gif"));
My source is on: ..\src
I copied my images under src: ..\src\images
As I have a package called: package xxx.yyy.zzz;
the compiler leaves the .class under : ..\class\xxx\yyy\zzz
So, I copied the images files in: ..\class\xxx\yyy\zzz\images
I also tried to call the icons with:
ImageIcon copyIcon = new ImageIcon('copy/images.gif');
menuItemII3.setIcon(copyIcon);
but didn't work.
Another try was to put it into the instance of the item menu:
JMenuItem menuItemII3 = new JMenuItem("copy",new ImageIcon("images/paste.gif"));
What could be wrong?
Thanks. Make sure your icons are where you class is and do the following
menuItemII3.setIcon(new ImageIcon(this.getClass().getResource("images/PASTE.gif")));
make sure your filename is in uppercase, I've had problems when I've put them in lower case.

Similar Messages

  • The icon of faceTime doesn't appear in the dock just space for it

    The icon of faceTime doesn't appear in the dock just space for it and i can turn on the faceTime when I click to the space

    If the above doesn't work, try a reset.
    1. Hold the Sleep and Home button down (together)
    2. For about 10 seconds
    3. Until you see the Apple logo (very important)
    4. Ignore the red slider

  • TMS - CCMS Alert domain doesn't appear

    On my training system when I go into STMS, then CCMS Alert Monitor,(The "Bell" icon") the domain doesn't appear under change and transport system. It also won't allow me to create it in rz20. I've tried redistributing and activating the stms configuration and it still won't appear. Ideas?
    Thanks,
    Daniel

    Your Problem is not with STMS configuration.
    Based on what you have explained i am thinking because of the system copy you have performed the MTE classes of target system  have been over written from source system (of your system copy)
    But it is not a big deal to bring the MTE classes again.Below is the procedure.
    Logon to the Solman - RZ21 --> Configure Central reaction ---> Assign Central reaction
    Under System ID - Select SID of your satelite System --> +MTE Class from the system.
    Once you do that you should get following message ### MTE Classes were collected by <Satellite System>
    Hope this helps

  • Cloud icon doesn't appear; space still being used on ipad (or is it on my computer? I'm confused!)

    What is the main selling poiint of iTunes Match? I subscribed because I'm loading my cds onto my new ipod, and I have more cds than it will hold. But the gb space didn't go to zero. Do we have to manually delete every song?

    KeithJenner is correct - if you have music on your iPad and you sign up for iTunes Match, the locally stored music is not automatically removed.  You have to do that yourself as he described.  After you have removed the music from your ipad, if those songs were also on the computer you used to sign up for iTunes match, you will still see them in the music list on your iPad.  If you click to play a song it will download a copy.  There are other ways to download music too, such as from a button at the bottom of an album track list or from a playlist.
    The headline of your post said "cloud icon doesn't appear."  If you tell us where you are looking for a cloud icon and what you want to do with that cloud icon., we might be able to help you.  cloud icons of one sort or another are used in many places in iTunes Match.
    You also asked what the main selling point is for iTunes Match.  While every person has their reason for using the service, in general it is looked at as a way to have access to all of your music on all of your devices, without having to keep all of your music locally stored on them all.  It lets people with different music on more than one computer add it all to a central location too.  You can read more about it at the link below.  There is a link to a video at the top of the page that you might find helpful
    http://www.apple.com/itunes/itunes-match/
    Message was edited by: JiminMissouri

  • I tried downlaoding itunes on my Windows Vista and after it completes, the icon doesn't appear on my desktop. The itunes setup can be found just not the actual program.

    I tried downloading itunes on my Windows Vista and after it completes, the icon doesn't appear on my desktop. When I search for the itunes under my programs, this is what shows: iTunes64Setup.

    It did prompt me to run it. I apologize. I said save.
    This is what happens, I run the iTunes64Setup, it downlods, says it has completed and then I click finish on the iTunes installer. After that, nothing comes up. Usually the program will start after it installs. There isn't an icon on my desktop either. When I go and search for iTunes under programs, only the iTunes64Setup appears. I am also having trouble downloading Adope Photoshop as well.

  • After upgrading the iPhone 4 to iOS5, the camera icon doesn't appear on the lock screen. How do I get that? I've already tried restoring...

    After upgrading the iPhone 4 to iOS5, the camera icon doesn't appear on the lock screen. How do I get that? I've already tried restoring...
    My photostream doesn't sync to my Mac Air either...

    And to continue the help:
    The User Guide is available at http://support.apple.com/manuals/ or downloadable from iTunes as an iBook.

  • HT2240 I have installed quicktime 7 on my max OS X machine, and I have bought QT 7 pro for OS X. I open Qt7 and enter the registration code I got from buying QT 7 pro, the icon changes to pro, but nothing happens and it doesn't appear to upgrade. help

    I have installed quicktime 7 on my max OS X machine, and I have bought QT 7 pro for OS X. I open Qt7 and enter the registration code I got from buying QT 7 pro, the icon changes to pro, but nothing happens and it doesn't appear to upgrade. help

    I have installed quicktime 7 on my max OS X machine, and I have bought QT 7 pro for OS X. I open Qt7 and enter the registration code I got from buying QT 7 pro, the icon changes to pro, but nothing happens and it doesn't appear to upgrade.
    And just what sort of changes in "appearance" did you expect?
    If you can access the editing, conversion, and/or properties options once a file is loaded then the QT 7 app has been upgreaded for "Pro" use.

  • Comment note icon doesn't appear on underlined texts

    Hi, I have been using Abobe Acrobat 9 Pro for some years now. Whenever I try to add a text note to underlined text there used to be a small icon appear on the top of underlined text indicating that underlined text has a comment attached to it.
    Now ever since I have installed Adobe Acrobat XI Pro on Windows 8, the small comment note icon on underlined text doesn't appear anymore and this means that all the documents that I have created in Adobe Acrobat Pro 9 won't show that in XI edition of Acrobat.
    Instead, Acrobat XI Pro shows the comment note icon on highlighted text but not on the underlined line. So, How can I know if the underlined text has a comment if the icon doesn't appear over it? What can I do to solve this issue to continue using the product with the older document on which I have worked in Acrobat 9 Pro?

    It doesn't help with comment icon so I'll try to be more clear as possible on issue:
    As you can see, the yellow comment icon appears on the top of the highlighted line on the left but on the right where I underlined the text and added a comment, it doesn't show any icon indication so there's no way I can know if it has a comment on it unless I hover mouse cursor over it.

  • HT1382 i got an iPad and all my app's, music,  and movies are on it, but when i try to download some apps to mi iPhone, they doesn't appear on the purchased tab, how could i move them back to itunes so i can access thru iCloud?

    i got an iPad and all my app's, music,  and movies are on it, but when i try to download some apps to mi iPhone, they doesn't appear on the purchased tab, how could i move them back to itunes so i can access thru iCloud? i have an 2nd generetion ipad and an iphone 5, thanks for you answers!

    (I think the daughter got he better end of the deal!)   I believe if you change the password and user id one of the devices it will stop that from occurring. But I'm not the one to tell you how to do it; someone like "Illaass" (Illaass seems to know how to correct / fix almost anything!) will know how if you don't. Just look for the "cat" icon.

  • Can't restore iPod because it doesn't appear on desktop

    I connected my ipod to my Mac, it showed up on the desktop but not in iTunes. The ipod window said Do not Disconnect. I waited a few minutes, then chose Eject iPod. I restarted the mac, reconnected iPod using a different FireWire port. The iPod no longer appeared on the desktop, and the Do Not Disconnect warning was still there. I switched to USB connection. No go. I ran Disk Utility Repair Permissions on my HD and restarted.
    I've been downloading a lot of podcasts lately, don't know if that's the cause of this problem. I'm using iTunes 7.1.1 and Mac OS 10.4.9.
    I found a solution for this problem in Archives, but it's dated 12/05, and I'm wondering if it still applies. Part of the solution says to run disk utility, select the ipod, then select Format. But I don't see Format as a choice on version 10.5.6 of Disk Utility. Maybe what was Format in 2005 is now called something else? Like maybe Partition? Here's the post (by john madson) from 2005:
    "i can fix this but you will need a mac let me explain
    when the last system update for mac os x tiger came through after you are done installing the update the update says it is optimizing the hard drive well it optimizes the hard drive on the ipod as well and cause the internal drive on the ipod to malfunction but this isn't apples fault this is caused by user error im sorry to say
    in order to fix this on the mac
    here is what you need
    1.the latest apple ipod updater software (will explain why later in this)
    2. of course a apple ipod mini usb cable
    3. apple ipod mini
    4. mac os x panther or tiger
    1.start up the mac computer
    2. connect the ipod to the computer don't worry if it doesn't appear on the desktop
    3.go into utilites by double clicking on the hard drive icon and select utility
    4.run disk utility
    5.you will notice the ipod will apear in the disk utility program but not on the desktop
    6. select the ipod in the left pane
    7. select format
    8. tell it to format it in a mac os extended partition
    9.once this is done you will notice the ipod will apear as a removable hard drive but. do not disconnect the ipod
    10. run the apple ipod updater
    11.reinstall the latest updated firmware
    12.unplug the ipod
    13. replug in the ipod
    14. you will notice the ipod will apear as a ipod icon on the desktop
    WARNING:AFTER YOU FORMAT IF YOU DISCONNECT THE IPOD THIS WILL BRICK THE IPOD WHEN YOU FORMAT THE IPOD USING DISK UTILITY IT ERASES EVERYTHING INCLUDING THE IPODS OS SO YOU NEED TO RUN THE UPDATER IMMEDIATLY TO GET THE IPOD WORKING AGAIN
    THE FIRST TIME THE IPOD IS RECONNECTED AFTER RUNNING THE IPOD UPDATER RE RUN THE UPDATER SELECT RESTORE THEN IT WILL FORMAT AND SET UP THE IPOD CORRECTLY
    FOLLOW INSTRUCTION CAREFULLYNEXT SYSTEM UPDATE DO NOT HAVE THE IPOD CONNECTED TO THE COMPUTER DURING UPDATE"
    G5 Quad 2.5GHz   Mac OS X (10.4.9)  
    G5 Quad 2.5GHz   Mac OS X (10.4.5)  

    One more thing: I reset my iPod (toggled Hold, etc.). It appeared in iTunes but not on the desktop, with the message "If your experiencing problems with your iPod, you can restore its original settings by clicking restore." Which I did. Got a window asking if I wanted iTunes to check for a new software update. I said yes. Got an exclamation-point msg "There was a problem downloading iPod software. The requested resource was not found. "
    G5 Quad 2.5GHz   Mac OS X (10.4.5)  

  • Image as drop-down text link -- image doesn't appear

    (Using Robohelp X5)
    Wondering if anybody has had anything like this happen before
    and can explain it for me???
    First line of topic is type <h1>. At the end of the
    line I have an icon that is a link to drop-down text.
    Here's where it gets weird. I compiled the help and displayed
    the .chm. Looked at the topic, the image doesn't appear, but is
    clickable (and works properly). Used the 'print' option from the
    .chm to print to .pdf. The image appears in the .pdf.
    Looked at the code, can't see anything wrong with it.
    Back in the wysiwyg editor, selected the last character of
    normal text plus the clickable icon, copied and pasted in place (so
    now have
    <text2><dropdown2><text><dropdown>)
    Removed <text><dropdown> (the original content),
    edited the code to use the proper 'name' attribute (because it was
    modified on the paste), recompiled, ran the .chm, everything
    displays properly (the image is there).
    Note: I was having similar problems with it earlier, think I
    fixed it the same way, and everything was okay for a few compiles,
    then started having the problems again.
    At this point, as far as I can see, the .html is the *same*
    as it was before, but now the image appears in the .chm. Colour me
    totally confused :-)
    Anybody have any insights as to why this could be happening?
    Thanks!

    Change what you have now:
    a:link {
        color: #4E8E98;
        text-decoration: none;
    a:visited {
        text-decoration: none;
        color: #4E8E98;
    a:hover {
        text-decoration: none;
        color: black;
    a.dark:active {
        text-decoration: none;
        color: #FFF;
    a.light:link {
        color: #DCDBE1;
        text-decoration: none;
    a.light:visited {
        text-decoration: none;
        color: #DCDBE1;
    a.light:hover {
        text-decoration: none;
        color: #776153;
    a.light:active {
        text-decoration: none;
        color: #FFF;
    a.dark:link {
        color: #4E8E98;
        text-decoration: none;
    a.dark:visited {
        text-decoration: none;
        color: #4E8E98;
    a.dark:hover {
        text-decoration: none;
        color: black;
    a.dark:active {
        text-decoration: none;
        color: #FFF;
    To this:
    /**MAIN LINKS**/
    a {text-decoration: none}
    a:link { color: #4E8E98;}
    a:visited {color: #4E8E98;}
    a:hover { color: #000;}
    a:active, a:focus {color: #FFF;}
    /**SPECIAL LINKS**/
    .light a:link {color: #DCDBE1;}
    .light a:visited {color: #DCDBE1;}
    .light a:hover {color: #776153;}
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    http://alt-web.com/
    http://twitter.com/altweb

  • My ipod nano 6th generation doesn't appear on my itunes or my computer everything is up to date on my laptop and when plugged in theres a charging symbol on the battery in the upper right hand corner

    When I connect my ipod nano to my laptop it shows the icons on it and in the upper right hand corner it has a charging symbol on the battery symbol but my ipod still doesn't appear in my computer or itunes ... is there anything i can do to fix it ... everything on my laptop is up to date

    Hello delilahca,
    Thanks for using Apple Support Communities.
    For more information on this, take a look at:
    iPod not recognized in My Computer and in iTunes for Windows
    http://support.apple.com/kb/ts1369
    Best of luck,
    Mario

  • HT5628 When I install Windows 8 on my MacBook Pro(13-inch,Early2011),the Super DVD Drive doesn't appear in Windows 8 and installing Boot Camp 5 drivers doesn't solve my problem,what can I do?

    When I install Windows 8 on my MacBook Pro(13-inch,Early2011),the Super DVD Drive doesn't appear in Windows 8 and installing Boot Camp 5 drivers doesn't solve my problem,what can I do?

    Go into your system preferences and click the startup disk icon then select your Mac HD. 

  • My iPhone4 doesn't appear to have "FacTime" (App), yet when I "ring" it from my iPad's FaceTime, I hear a faint ringing tone but nowhere to answer the call? Anyone out there suggest what's wrong? (going to the App Store and searching "FaceTime" brings iPa

    My iPhone4 doesn't appear to have "FacTime" (App), yet when I "ring" it from my iPad's FaceTime, I hear a faint ringing tone but nowhere to answer the call? Anyone out there suggest what's wrong? (going to the App Store and searching "FaceTime" brings apps that have icons different to that of my iPads!)

    Yeah, I know I can restore it, but I might as well go ahead and try. I just finished a backup for icloud and itunes to make sure, I'll go ahead and restore it and set it up as new and see how that works. Seems like I have no other options at this point, I'd still like to know what they did with the Download tab in itunes store, if they removed it or if I'm just overlooking it.

  • How to restore iPod when it doesn't appear in the Source List?

    About 6 months ago I stupidly wiped my iPod Nano (5th Gen) and reformatted it as fat32. I assumed that when I formatted it back to Mac OS Journaled it would work normally as an iPod again but it doesn't. When it is plugged into my Mac running 10.5.8, it appears on the desktop/mac harddrive (without its individualised nano icon) and it fails to appear in the source list in iTunes (10.2.2).
    I have tried everything I know how to do, including the steps outlined in this support document:
    http://support.apple.com/kb/TS1410
    I need to restore the iPod to factory settings, but need a way to do this not through iTunes seeing as the iPod is not recognised. Specifically, in the following support document I cannot complete step 4:
    http://support.apple.com/kb/HT1339
    One last thing I have tried is duplicating the files (including hidden ones) from a 5th gen nano that does appear in my source list, and placing those files into my apparently invisible nano but this has not made any difference.
    Does anyone have any suggestions? I have basically been left with a bricked paperweight (due mostly to my own stupidity!) but would love to be able to use it again.
    Thanks for any help offered

    Hello kismet_kracker,
    What happens if you place the iPod into Disk Mode with it still connected to your Mac?  Does it then show up in Finder as a mounted drive?  Here are instructions for putting your iPod into Disk Mode.
    http://support.apple.com/kb/ht1363
    B-rock

Maybe you are looking for

  • How do i register a second hand device to my apple id if it was previously registered on another person's apple id

    last year i bought a macbook pro 17 inch from someone who was't using it.  now, i was trying to register it on my support profile and when i enter the serial number i get the message that it has been associated with another apple id.  how can i get t

  • Flat File target

    Hi I have Oracle table as source which has about 150 Columns and i have to load the data into flat file. Is there any way we can get the column names instead of manually entering all the column names. Thanks

  • Attachment of file for email

    Hello Gurus!!! Whenever user clicks on attachment button, I want to attach a file and the specified path name , I want to store it in character variable. Kindly suggest your answers <b>Points will surely be rewarded.</b> Thanks, Sachin

  • Make Business Place (BSEG-BUPLA) field a substitutable field

    Hi All, We need to create a substitution rule to populate business place field(BSEG-BUPLA) in FI documents automatically. We have only one business place and it is assigned to a plant. When there are documents that does not involve plant, then we nee

  • MBP Retina locked up after 10.9.2 upgrade

    It locked up 2 to 3 times a day when the computer is "awaken from sleep" with and without the lid closed.  At the login prompt, the mouse would work but the keyboard would not effectively render the mac useless.  The only thing to do at that point is