ImageIcon won't appear on JButton

I can't figure this out. Whenever i try to make JButtons with images on them the JButtons appear blank.
But line 2 is System.out.println(temp.isFile()); and it always prints out true
and whenever I use an image from examples of people making imageicons it works
are my image files just too big? (64 by 64 pixels at 256 pixels per inch)
File temp = new File("Tiles/"+directory.getName()+"/"+directory.getName()+i+".gif");
            System.out.println(temp.isFile());
            buttons=new JButton(new ImageIcon("Tiles/"+directory.getName()+"/"+directory.getName()+i+".gif"));
contentPane.add(buttons[i]);

I am an idiot
The program I wrote to generate the image files was malfunctioning and they were all empty
facepalm

Similar Messages

  • My iPhone 5 won't appear in my iPhoto

    My iPhone 5 won't appear in my iPhoto library so that I can import my pictures from my phone.

    Connect your iPhone to your Mac.
    In iTunes, under devices select your iPhone.
    On the main window it shows a summary of your iPhone. Along the top of the main window are tabs. Select Photos.
    The main window changes. Make sure Sync Photos with iPhoto is checked.
    In the bottom right there is an 'Apply' button. click that and your photos should now sync with iPhoto.

  • When I plug my ipod touch into the computer it just charges and won't appear on itunes!

    when I plug my ipod touch into the computer it just charges and won't appear on itunes!

    http://support.apple.com/kb/TS1538
    There have been some problems accessing pages on the Apple web site.  If the hyperlink gives you a "We're sorry" message, try again.

  • After upgrading to ios 5, my videos or tv show I purchased won't appear

    After upgrading to ios 5, my videos or tv show I purchased won't appear even though it said it have been download. Is this a bug with the iOS 5.

    In addition to my question above, I was referring to not able to see in on ipad2 and not on the iTunes on my pc. Ihave checked the purchased tab, downloaded tab and via the video app but they are not there. I have tried to purchase a brand new episode via iTunes...as soon as it finished downloading, it disappear from the download or purchased tab

  • TS4062 My Iphone won't appear in my devices in Itune.... And the WiFi does not work on my phone.... I seems like there is no solution to update my phone to the new ios on my computer or WiFi without using the 3g because of this!!! help me out

    My Iphone won't appear in my devices in Itune.... And the WiFi does not work on my phone.... I seems like there is no solution to update my phone to the new ios on my computer or WiFi without using the 3g because of this!!! help me out

    Hello there, TempestBelcher.
    It seems you've covered all the bases, but feel free to review the iPhone Troubleshooting Assistant for connectivity here:
    Apple - Support - iPhone - Calls Troubleshooting Assistant
    http://www.apple.com/support/iphone/assistant/calls/#section_0
    If you've followed all the instructions then there are a few good recommendations for what to do next in the last step.
    Thanks for reaching out to Apple Support Communities.
    Cheers,
    Pedro D.

  • HT1386 When I connect my iPod Touch to a new laptop (Macbook Air) the "Info" tab won't appear and therefore I cannot sync it with my new iTunes. How can I sync this iPod with the iTunes on my new laptop?

    When I connect my iPod Touch to a new laptop (Macbook Air) the "Info" tab won't appear and therefore I cannot sync it with my new iTunes. How can I sync this iPod with the iTunes on my new laptop?

    There is no Info tab in Mavericks
    if you use OS X v.10.8.5 or earlier. If you use OS X Mavericks v.10.9 or later, your contacts, calendars, and other info are updated on your computers and iOS devices via iCloud. For more information, see iCloud Help at icloud.com.
    iTunes 11 for Mac: Sync contacts, calendars, and other info with iPod, iPhone, or iPad

  • My Ipod touch 4th gen won't appear in my Itunes, help me?

    My ipod touch 4th gen won't appear in my Itunes. I have the updated itunes and I can play music from Itunes. My ipod says it's charging but again won't appear in Itunes for me to sync music to it.

    Here:
    iOS: Device not recognized in iTunes for Windows
    I would start with:
    Removing and reinstalling iTunes, QuickTime, and other software components for Windows Vista or Windows 7
    or
    Removing and Reinstalling iTunes, QuickTime, and other software components for Windows XP
    http://support.apple.com/kb/HT1925Also, turn on the Sidebar.  Go to iTunes>View and click on Show Sidebar. You can also do a Crtl+S to show the sidebar.

  • External hard drive won't appear on my desktop

    I'm trying to run a backup, but my hard drive won't appear on my desktop. I see it in Disk Utility, so I know it's there...
    ...any suggestions?
    Thanks,
    kevin

    Kevin - There might be a few reasons as to why your external drive won't appear have you tried any of these suggestions:-
    STEP ONE - Confirm that the drive is being seen by the system
    Click the Apple icon and select About This Mac.
    Click More Info.
    Select the Drives and Volumes tab.
    If the Iomega Hard Disk drive is not listed under the USB/FireWire arrow, proceed to STEP THREE.
    If the Hard Disk drive is listed, continue with the next step.
    STEP TWO - Format the Hard Disk drive to Mac HFS format
    The Iomega Hard Disk drive is factory formatted to FAT32 for maximum compatibility. If you have not reformatted the disk or the disk is formatted to FAT32:
    The disk may mount very slowly in OS X if the disk is FAT32 formatted.
    Mac OS X will not mount any DOS (FAT32) partition larger than 128GB. For more information, please check the Apple® Web site at http://docs.info.apple.com/article.html?artnum=107483
    Warning: Erasing your Hard Disk drive will erase all of the information stored on the disk. If possible, back up your data before erasing the hard drive. Mac formatted disks are not cross compatible with other operating systems, such as Windows®, without the purchase of additional third-party software.
    Double-click the Mac hard drive icon.
    Double-click the Applications folder.
    Double-click the Utilities folder.
    Double-click the Disk Utilities icon.
    Highlight the drive in the left window.
    Click the Erase tab.
    Select Mac OS Extended.
    Click the Erase button and then click Erase from the confirmation window.
    If the Hard Disk drive now mounts, you are ready to use the drive.
    If the Hard Disk drive does not mount, continue with the next step.
    STEP THREE - Are the Mac OS X drivers detecting the drive properly?
    The Iomega Hard Drive may not mount if you are using Mac OS X versions under 10.1.3. If you are not using Mac OS X 10.1.3 or higher, please visit the Apple® Web site at http://www.apple.com/macosx/ for information on getting the latest version.

  • CDs, DVDs, disk images won't appear in Sidebar or on Desktop

    Hello,
    Brand new iMac 2.16, right out of the box.
    CDs, DVDs, and Disk Images won't appear on the desktop or in the Sidebar. Nothing is shown over the horizontal gray line at the top of the sidebar, no Macintosh HD, Servers, etc. Disk Images are fully functional, ie Disk Utility recognizes and mounts them just fine.
    I checked Mac Help and followed its instructions:
    (1) In Finder preferences:Pane:General, all 'Show These Items on the Desktop' boxes are checked.
    (2) In Finder preferences:Pane:Sidebar, I checked all boxes under "Show These Items in the Sidebar. BUT these changes are NOT retained. After I close the Preferences, the Sidebar does not change. If I re-open the Sidebar preferences, the relevant boxes are now unchecked, as if I'd never done a thing.
    Restarting was the only way to fix the problem. Thereafter, the upper items in the Sidebar (Macintosh HD, external drives, iPod, CDs) sometimes SPONTANEOUSLY disappear. They still show up on the desktop, but tweaking the Sidebar preferences is again ineffective. Restarting is the only solution.
    Thank you for your help,
    Andy

    Hi Andy, Welcome to Apple's Users Help Users Forums.
    1] Everything elmac says is helpful and correct.
    2] An upgrade to 10.4.8 with the 10.4.8 Combo from blue apple / Mac OS Updates might fix your hiccup. If you don't want .8 then .7 combo.
    3] [OT] For some minor security issues, it is better to surf the internet in a standard account. If you are surfing in an admin account then here is how to switch and maintain prefs.
    Set up a new account in System Preferences / Accounts / +
    and make it have admin priviledges. Be sure to remember short name and password since you will be asked to "authenticate" when running in your standard account. This new account is often called "test" in these forums.
    Once that is done convert your regular account to standard.
    Good Luck, JP

  • 5G iPod won't appear on my desktop or iTunes using USB 2.0

    My new 5G iPod won't appear on my desktop or iTunes when I have it connected to a new 2.0 USB card in my G4 733. I know the USB card works because my old iPods work through it. My new iPod only will work through the old USB 1.0 port. I've reset it (with it attached to the computer) and done all that Apple says to do.

    I am having a similar problem with my Nano. Shows up in itunes, but freezes up under USB 2.0. Other devices work fine on the card, usb 1.1 has no problems, and if I update music on my nano on the 1.1 port, and then plug it into the 2.0 port I can still update Calenders onto the iPod via iTunes.
    Also, i applied the ipod updater and since this was happening under Panther, upgrading to Tiger made no difference, so I can't see this being a software error.

  • Thumb drive won't appear on desktop.

    On my iBookG4 running 10.4.11, my thumb drive won't appear on the desktop when I insert it in the USB port. How do I make it appear? This just happened, as yesterday, it appeared. Help!

    Those drives commonly come formatted for use with a PC. DU can't repair that format. Do you know what format yours has? You can try to erase/reformat it. If it Mac formatted right now and can't repair it then that may indicate the drive is truly history.

  • My G3 Won't appear on Itunes or Desktop. Think I've tried everything...

    I have a MAC OS X Version 10.3.9
    My generation 3 Ipod won't appear on ITunes or my MAC desktop.
    I have tried all of the suggestions on the page everyone kindly directs me to (docs.info.apple.com/article.html?artnum=60950).
    I have borrowed several cables to no effect.
    I can't restore my Ipod ( because it won't communicate with my MAC)
    I have a 100 GB external HD with firewall.
    The last time my Ipod worked it was plugged into the external HD.
    Should I buy a new cable with a USB plug?
    Do I have dead "plug-ins" on my MAC?
    Help...I need my daily podcasts for the hour-long commutes.
    Thanks
    iMAC   Mac OS X (10.3.9)  

    I have tries the cable on another Mac and my ipod did appear. So the problem lies with the Mac and not the iPod.
    Will a USB connector help? What other things should I try. Help!

  • Hard Disk Won't Appear on Desktop

    Since upgrading to OS Lion, when I plug in my external hard drive (WD) it won't appear on the desktop at all. It does show up in Disk Utility and now says it is not mounted. I'm not sure what's going on here. I don't really want to have to reformat my drive as it has all my Time Machine backups on it.
    Does anyone have any ideas?

    Click on the top left corner of you screen where it says finder and click on that and then scroll down to preference and click on it. Then in that screen you will be able to see where you can choose what icons you would like to see on your desktop.  

  • External Hard Drive won't appear on PC (want cross platform)

    I have an external USB Hard Drive. I formatted it using the Disk Utility, OS Format and Journaling. Did a small partition in case I needed a system boot drive. Now my sis needed to backup her laptop (Dell laptop), but the drive won't appear in My Computer, it recognizes there is a USB device on the lower task bar, but no drive anywhere.
    Do I have to reformat? what steps do I need to make this USB drive cross-platform friendly?
    Paul

    Hi, Paul.
    You may not want to reformat the drive as FAT-32 since there is a limit on the size of the partition, the maximum file size, and other issues, especially if her Dell's drive is formatted as NTFS (FAT-32 does not support NTFS extended attributes). FAT-32 is unsuitable for backing-up Mac OS X volumes as it cannot preserve the extended attributes (permissions, etc.) employed by Mac OS X.
    It's really best if you each have your own external hard drive for backup, as part of implementing a comprehensive Backup and Recovery solution, such as I use and detail in my "Backup and Recovery" FAQ. You also don't want one person inadvertently writing over another person's backups, which could happen if one is not careful. Furthermore, it is often easiest for recovery.
    How one handles backup in cross-platform environments is tricky and depends on the native formats employed by the different computers involved, and whether backup will be performed over a network or by directly connecting backup drives to the computers one is backing up.
    To enable her Dell to use the Mac-formatted drive, install Mediafour's MacDrive for Windows on the PC. MacDrive for Windows is probably the state-of-the-art application for enabling you to use Mac-formatted disks and hard drives on Windows-based PCs.
    Good luck!
    Dr. Smoke
    Author: Troubleshooting Mac® OS X
    Note: The information provided in the link(s) above is freely available. However, because I own The X Lab™, a commercial Web site to which some of these links point, the Apple Discussions Terms of Use require I include the following disclosure statement with this post:
    I may receive some form of compensation, financial or otherwise, from my recommendation or link.

  • If external monitor is placed above laptop screen, dock won't appear on external monitor

    I've just migrated from PC to Mac and I've found something that drives me crazy.  The dock won't appear on my external monitor if the external monitor is placed directly above the MacBook Air built in display.  At home. I plug in my external monitor into my MacBook Air, place my laptop on my physical desktop just below my elevated external monitor.  My MacBook Air is open and I use its keyboard and its display, but my main display is my external monitor. I configured displays to match the physical arrangement:
    Darn:  the DOCK REFUSES to appear on the "main screen"!!  This drives me crazy -- this did not happen in Windows!  The task bar obeyed my "main display" setting.
    I can get the dock to appear on the main screen if I tell Mavericks of an arrangement that suits Mavericks -- somewhat side-by-side, as follows:
    Now the dock shows up on my external monitor which I'd identified as my main screen before all these shenanigans.
    The problem with the workaround is that the mouse does not track correctly between monitors so it's not an acceptable workaround.
    Does anybody have any ideas on how to work around this for real?

    Try booting your laptop normally, and then plug in the external monitor when the computer has fully logged in (or when it's waiting at the login screen). Does the problem still happen when you do that?

Maybe you are looking for

  • Is it possible to connect two external monitors to my T400 laptop?

    Hi, I bought a T400 laptop this summer and have it connected through the VGA port to an external monitor, using both the laptop´s monitor as an extended display. I would like to add a third monitor. I am wondering if there is any way to do this or an

  • How to restore iTunes Library from Time Machine on Mavericks?

    Please, can someone give me the instructions on how to restore iTunes Library from Time Machine on Mavericks?

  • Missing Points "Issued points"

    HI, I recently made a purchase at my local best buy (10/30/14), I also used a 3X points coupon with it. I checked my points today and it says that my points from my last purchase (10/30/14)  was issued but its not showing on my total point. I tried t

  • FB60 IDOC type...

    Hi, Could anybody help me out reg. finding IDOC message type for posting Vendor invoice through FB60. Regards, Venkat

  • Third party apps not launching

    I'm at my wit's end with this. I would like to preface this by saying I've searched through the forums for an resolution to this problem to no avail. I am using both the current version of the iPhone and iTunes software. I get various error messages