Help with specifiying an icon

Hello I'm working on my own Icon pack. Does any one know how nautilus knows how to display its own icon for ~/Desktop? I would really like to replicate this behavior for the ~/Music and ~/Documents folders. Can some one help me please?

Sorry for this guys but i managed to solve it by looking in the forum
thx anyway for wanting to help

Similar Messages

  • Help with disabling close icon of last opened tab in JTabbedPane

    Hello
    Would someone help me out ? I have 3 tabs opened in a JTabbedPane, each with close icon "X". I am looking for a way to tell my program: if the user closes 2 tabs and only 1 remain, disable the close icon "X" of the last opened tab so that the user is unable to close the last tab. I have searched the forum, most I have run into are how to create the close icon. Would someone give me some insight into how to go about doing this? or if you have come across a forum that discusses this, do please post the link. Also, I am using java 1.6.
    Thanks very much in advance

    On each close, look how many tabs are remaining open in the JTabbedPane (getTabCount).
    If there is only one left, set its close button to invisible. Something like this:
    if (pane.getTabCount() == 1) {
        TabCloseButton tcb = (TabCloseButton) pane.getTabComponentAt(0);
        tcb.getBtClose().setVisible(false);
    }

  • Need help with folder / exclamation icon

    my ipod has the folder icon on it. when i reset it it reappeared. i left it alone to charge like the support site said. nothing. reset it and then tried to put it in disk mode and now all that is on there is the apple logo. if i reset it, it just goes back to the folder icon. please help.

    See these links:
    iPod Folder with Exclamation Point After Disconnected From Computer
    iPod Folder with Exclamation Point After Turned On
    Good Thread About iPod Sad icon/Folder with Exclamation Point
    I hope this helps!

  • Help with adding an icon in a JTextPane

    Hy guys,
    i have the following code:
    Document doc = DisplayArea.getDocument();
    String temp = s.substring(0, s.indexOf("Smile"));
             doc.insertString(doc.getLength(), temp , st);
             Style regular = chatArea.addStyle("regular", def);
             Style stl = chatArea.addStyle("icon", regular);
             StyleConstants.setIcon(stl, new ImageIcon("smile.gif"));
             doc.insertString(doc.getLength(), s , stl);
             temp = s.substring(s.indexOf("Smile")+1+"Smile".length(), s.length()) + "\n";
             doc.insertString(doc.getLength(), temp , st);The problme is that after it displays the image the second part of the text on the next line.
    Is there any way to make it be all in one line with the image in the middle ?
    Thx in advance

    Sorry for this guys but i managed to solve it by looking in the forum
    thx anyway for wanting to help

  • Help with menu and icon size in Muse app

    The menu and icons in the muse cc app on my lptop are so small that it cant really be used. any help?

    i have the 3200x1800 for the screen, the newest muse cc and windows os 64bit
    On Tue, Aug 12, 2014 at 5:50 PM, Varun Kalra <[email protected]>

  • Help with the padlock icon during setup

    I just plugged in new ipod for setup and after agreeing to contract, the next screen is showing a padlock icon and I cannot go any further.  What do I do?  HELP!

    The songs are "greyed out" because you have the iPod set to transfer songs automatically. That is also why the padlock icon appears at the bottom of iTunes next to the space used/available.
    If you want the songs to be bold and selectable/editable, then you need to change to manually managing your songs.

  • Help with E61i "Desktop Icons"

    Hi,
    I wanted to know how you can DELETE the Desktop Icons on an E61i. I know how to change them (Tools > Settings > Phone > etc...) but one can only replace the existing application by another. Am I missing something?
    Regards

    Walter,
         It looks like I found the solution:
    https://cisco-support.hosted.jivesoftware.com/docs/DOC-13223
    Thanks for your initial help.
    Thiago

  • Help with big desktop icons on t400

    Wife has a Lenovo t400 that I put Win7 Pro on. Everything was fine, until we recently installed a game for the kids. This game runs in a window and at a lower resolution than the native resolution of the LCD panel, which is 1280x800.
    The problem now is that all if the icons on the desktop are HUGE, maybe an inch square or more. I have gone into the display properites and changed around the resolutions and the text/icon size, saved, and then put it back to normal. Yet when I select "normal - 100%" for the text and icon size, all of the icons are blown up.
    I also tried to download the latest display driver for the PC, but windows tells me the one I have it more current than the one I just downloaded (although I didn't look far enough yet to get driver version numbers). 
    Any other ideas? 

    Thanks Jamead1981 for your reply...
    Bu unfortunately I've done entering the admin details for the prompt not once but many times when logged on as the user without the admin rights but the next time its launched again, it prompts again....
    Arrgghhhh ...

  • Need help with my photos icon

    I have Ablum or Places covering my camera roll on my photos icon on my 3GS how do I get it off of there and back to notmal?

    thank you!  I can't get it to work think I will just reset everything this all happened after I downloaded my pics to my computer I can still see the pic if I view thru camera icon but not my photos icon

  • Issue with System tray icon

    So, I am developing an application that utilizes a system tray icon.
    It's all pretty standard: when you click close, it hides the window and puts a system tray icon in the system tray, when you right click the tray icon, it gives you a menu with options to restore the window or to exit, and if you double left click the icon, it restores the window.
    Also, any time you restore the window, the system tray icon is removed.
    All that stuff works great, its just that instead of putting the image that I want as the icon, the icon is just blank - transparent - nothing. There is a space where it should be, but the image just isn't there.
    The image I'm using is a gif that measures 240 x 240 pixels, and has transparency.
    When the window is hidden, the program does this:
         try {
                    tray.add(trayIcon);
                } catch (AWTException e) {
                    System.err.println("TrayIcon could not be added.");
                }to add the icon to the tray.
    Here's my initialization code. It's in a method called initSysTray, which is called once in the window's constructor.
    if (SystemTray.isSupported()) {
                tray = SystemTray.getSystemTray();
                //image that will be used for System tray Icon
                ImageIcon image = new ImageIcon("Icon2.gif");
                //action listener for the exit menu option
                //that is part of the tray icon's pop-up menu
                //it ends the application
                ActionListener exitListener = new ActionListener() {
                    public void actionPerformed(ActionEvent e) {
                        System.out.println("Exiting...");
                        System.exit(0);
                //action listener for the restore menu option
                //that is part of the tray icon's pop-up menu
                //it unhides the window and removes the tray icon
                ActionListener unHideListener = new ActionListener() {
                    public void actionPerformed(ActionEvent e) {
                        System.out.println("Unhiding");
                        setVisible(true);
                        tray.remove(trayIcon);
                //Action Listener that recieves events from tray icon
                //basically if someone double clicks the tray icon
                //then the window is restored
                ActionListener actionListener = new ActionListener() {
                    public void actionPerformed(ActionEvent e) {
                        System.out.println("Unhiding");
                        setVisible(true);
                        tray.remove(trayIcon);
                //create the pop-up menu
                PopupMenu popup = new PopupMenu();
                //create the exit option
                MenuItem defaultItem = new MenuItem("Exit");
                defaultItem.addActionListener(exitListener);
                //create the restore option
                MenuItem unHideItem = new MenuItem("Restore");
                unHideItem.addActionListener(unHideListener);
                //add the options to the menu
                popup.add(unHideItem);
                popup.add(defaultItem);
                //create the tray icon
                trayIcon = new TrayIcon(image.getImage(), "Bluetooth Remote by D Law", popup);
                trayIcon.setImageAutoSize(true);
                trayIcon.addActionListener(actionListener);
            else{
                System.out.println("System Tray not supported");
            }So, any help with my dissapearing icon would be greatly appreciated.

    Hi, are you not suppose to catch possible exceptions thrown by the TrayIcon constructor? :
    //create the tray icon
                trayIcon = new TrayIcon(image.getImage(), "Bluetooth Remote by D Law", popup);Try surrounding this line of code with a try and catch block. Referring to the API
    documentation, there are 4 possible exceptions that can be thrown. Errors may
    be present there, and we need a way to identify it. :)

  • Help I just installed the latest update on my IPhone4 and now I can't open any of my stored podcasts. When I hit the podcast icon, the screen goes white for a second and the goes back to the opening page with all the icons. What happened?

    Help! I just installed the latest update on my IPhone 4 and now I can't access my podcasts. When I hit the podcast I on, the screen goes blank for a second and then opens to the home screen with all my icons. What happened?

    Try a reset which is similar to a computer restart and is done by pressing and holding the home button and the sleep/wake or on/off button simultaneously you see the Apple logo and then release.

  • I can't read Or write I have been using the iPad With the accessibility icon Is there a video help them teach me how to use it more efficiently

    I cannot read or write I have been using the iPad With the accessibility icon  Is there a video to help teach me To learn how to use this accessibility more efficiently

    It sounds like you may have multiple problems, but none of them are likely to be caused by malware.
    First, the internet-related issues may be related to adware or a network compromise. I tend to lean more towards the latter, based on your description of the problem. See:
    http://www.adwaremedic.com/kb/baddns.php
    http://www.adwaremedic.com/kb/hackedrouter.php
    If investigation shows that this is not a network-specific issue, then it's probably adware. See my Adware Removal Guide for help finding and removing it. Note that you mention AdBlock as if it should have prevented this, but it's important to understand that ad blockers do not protect you against adware in any way. Neither would any kind of anti-virus software, which often doesn't detect adware.
    As for the other issues, it sounds like you've got some serious corruption. I would be inclined to say it sounds like a failing drive, except it sounds like you just got it replaced. How did you get all your files back after the new drive was installed?
    (Fair disclosure: I may receive compensation from links to my sites, TheSafeMac.com and AdwareMedic.com, in the form of buttons allowing for donations. Donations are not required to use my site or software.)

  • My Macbook aliminium unibody from late 2008 will not boot. I reach the grey screen with the apple icon and the spinning grey gear. I used disk utility to boot it but it said integrity test failed. I don't know what to do can anyone please help?

    My Macbook aliminium unibody from late 2008 will not boot. I reach the grey screen with the apple icon and the spinning grey gear. I used disk utility to boot it but it said integrity test failed. I don't know what to do can anyone please help?

    Sounds like you may have a harddrive issue.  You are probably going to need to get that changed out and then install the OS X again to get it going.

  • Help! my iphone 4 was stucked or cannot recognize by my itunes after updating to 4.3.5? how i can open it again, it seems stucked with an itunes icon and usb on my iphone screen

    help! my iphone 4 was stucked or cannot recognize by my itunes after updating to 4.3.5? how i can open it again, it seems stucked with an itunes icon and usb on my iphone screen.
    pls help me recognize my iphone4 to itunes and bring back my iphone 4 the way it was before. THANKS!

    Hi my iphone 4 is also having the same problem of hanging with the same screen reflected. itunes keep suggesting me to do a restore setting but it fails to restore after running half way. Have u solved your problem ardy..? Hw can i / we do about it...?

  • I can't open mail, all I get is a white page with the 5 icons at the top right, the flag, folder etc.  then the white pages disappears.  I have rebooted, reset my iPad, doesn't help.  HELP anyone....tnx

    I can't open mail, all I get is a white page with the 5 icons at the top right, the flag, folder etc.  then the white pages disappears.  I have rebooted, reset my iPad, still can't get mail to open.  HELP anyone....tnx

    Hello tomzmem,
    Welcome to the Apple Support Communities!
    This situation does sound very frustrating. I know that you have tried some great troubleshooting steps already and the issue remains unresolved. Have you forced the Mail application to close and then opened it back fresh? If not, this is the next troubleshooting step I would suggest. Please let me know if the issue remains unresolved. 
    Force an app to close in iOS - Apple Support
    Have a great day,
    Joe

Maybe you are looking for

  • How to pass value to pop up window using javascript function?

    I am not sure how to do this, I want to open new window from existing form,This is Mod/PLsql for consists some javascript functions also. When I am clicking on new window in form then new form should open with results of value entered,but new window

  • Time Machine disk won't Auto Mount

    I am able to create a time machine backup using a Network Attached Storeage drive (WD MyBookLive) for my MacBook Pro via a wireless connection.  My initial backup works fine.  However once the computer sleeps or is restarted Time Machine is unable to

  • Whats wrong with my query

    Hi All I have the following query, the pupose is to get the count of BIN_DATA_ID's for the first 2 days (48 hours). I have a start date and end date, but i need to get only 48hours or 2days worth of data from a week or more worth of data. SELECT   bi

  • Importing Mac's Address Book into Print Sho

    Can't figure how to import Mac's Address Book into PrintShop's Address Book? Thanks

  • Auto import from network drive

    Lightroom tells me the watched folder for the auto import function cannot be a network drive. I am using a laptop tethered to a camera, which then is accessible via the network. I want to auto import from this laptop into Lightroom. Is this not possi