JTree icons render as defaults when popup is shown

I'm having trouble with JTree. When I right click to show a popup, the JTree nodes are not renderered with the icons that I sent in my specialized renderer. Instead they have the default icons. When the popup disappears they revert back to my special icons. I have a specialized renderer, and editor attached to the tree. I have tried turning of the editor, but it still happens. Has anyone seen this before?
I looked in the DefaultTreeCellEditor, to see if where it was getting the icon, and I found determineOffset() method that calls getLeafIcon(), getOpenIcon(), and getClosedIcon() which are set to the defaults. My tree is more complex that leaf, open, closed icons. Some leaves have different icons depending on their type. I was wondering if somehow it was getting those icons from there.

Are your treeCellRenderer, treeCellEditor extends from the DefaultTreeCellRenderer / Editor ?
If yes, you can overwrite those methods.
There are also the UI manager can force the default icons used.

Similar Messages

  • Why do the bookmark icons return to default when i clear history?

    Why do the bookmark icons return to default (the blue bubbles) when i clear history? This is using os x mavericks.
    OS X Snow Leopard did not do this. It retained the site icon next to my bookmarks.

    The webpageicons database may be corrupted. It can happen.
    Quit Safari.
    Open a Finder window. From the Finder menu bar click Go > Go to Folder
    Type or copy paste the following:
    ~/Library/Safari/WebpageIcons.db
    Click Go then move the WebpageIcons.db file to the Trash.
    Relaunch Safari. It may take a day or two for webpageicons to re populate.

  • Suggest mouse pointer should be redrawn when popup dialogue shown

    When browsing through photos in the library the mouse pointer is correct turned off to avoid masking the photo.  Even returning to the gallery view (G) the mouse pointer is still turned off, which is fine.  Moving the mouse bring the pointer back however if the mouse is not moved and then action taken to prompt a popup dialogue using the keyboard (say you tagged some photos as rejected and then ctrl+backspace) the mouse pointer is left turned off.
    Still able to navigate popup dialogue via keyboard but suggest mouse pointer should be turned back on when popup dialogue appears..
    Running Vista + LR3.3
    Ta,
    Chris

    Chris,
    Are you saying that when you bring up a dialogue box by using a keyboard shortcut, the mouse pointer stays hidden and doesn't reappear even when you move the mouse?
    I can't reproduce that on Windows XP. The mouse pointer is hidden when the dialogue box comes up, but any movement of the mouse brings the pointer back.
    Is your mouse driver up to date?
    Hal

  • CINNAMON:Icons return to default when exiting session or shutting down

    I'm experiencing this issue: a few seconds before closing the session or shutting down, icons go back to default.
    Do you know how to solve this problem?
    Last edited by Sypnos (2015-03-16 22:02:44)

    I'm using Cinnamon, I set my icons using the Theme settings menu and by "default" I mean Adwaita, which is the default icon theme in Cinnamon, I suppose.
    I tried to create a cache file for the icons, it didn't change anything.

  • Seting the default JTree icons

    Hello,
    I want to edit another icons than the default icons in JTree object.
    I look in the javadoc at the several methods, but I do not find a method witch can give me the possibility to setup the collapsed and expanded icon.
    If some one now how to do that, it will be cool.
    Thanks.

    There are two common ways to change icons:
    1. If you want to adjust icons for a specific tree, use the DefaultTreeCellRenderer methods:
    setLeafIcon
    setOpenIcon
    setClosedIcon
    Of course, you can get the renderer using the JTree Method:
    getCellRenderer
    2. To change the look-and-feel globally, use the UIManager method put, for example:
    Icon yours = . . .;
    UIManager.put("Tree.leafIcon", yours);
    UIManager.put("Tree.openIcon", etc...);
    UIManager.put("Tree.closedIcon", etc...);
    //now create JTree's--Nax                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • How popup window maximize default when it opens

    Hi,
    I am making one interactive alv report.
    When i click on a record i am opening that record entries as a pop up window.
    Now my requirement is when popup window open by default it should open in maximize screen.
    I have tried to set the second view screen size maximum width and height..that does not worked..
    Appreciate your answers..
    Thanks,
    Subba
    Edited by: subba rao on Aug 11, 2011 3:10 AM

    Hi.,
    try this.,
    LO_WINDOW->SET_WINDOW_POSITION(
    LEFT = 250
    TOP = 250
    *position = ).
    LO_WINDOW->SET_WINDOW_SIZE(
    WIDTH = '3500px'
    HEIGHT = '3500px' ).
    U can adjust accordingly
    LO_WINDOW->OPEN().
    hope this helps u.,
    Thanks & Regards,
    Kiran

  • Render quality drops when importing sequences from Premiere Pro CS4

    Hello,
    I have both AE and Premiere Pro CS4, and, because my Media Encoder doesn't work (a common problem, apparently), I import my sequences into AE to render. However, I've noticed a marked drop in quality in the sequence when imported into AE as opposed to when it's in Premiere Pro. It's comparable to a "Full" dropping to a "Half" when changing preview render quality in AE. What am I doing wrong? Is there some simple way to match the quality of the AE Comp (that has the PP sequence in it) to what the original Premiere Pro project has? Should I not be putting the PP project into a new comp in AE before I render it out? Is there another way that can retain the quality of the original Premiere Pro project?
    This is urgent, as I need this rendered by Monday. Any help would be appreciated! Obviously, this is the first major project I've done this "workaround" with. I wish AME worked, but it doesn't for me.
    Thanks!

    By default, the Ram preiew resolution is adaptative and not full quality, as it's just to "preview". You can switch this behavior to full quality, and by default, when you render, it will always be "Full quality" before being compressed by your output module.
    You can check the Ram preview doc and the rendering doc from the AE help.
    Hope that helps,
    Seb

  • My bookmark icons can be fully seen in bookmark toolbar. But on the address bar and on tab most of the icons are blank and when I open most of the websites, their icons are also blank, too. I've already reinstall the firefox 3.6.3 but it is the same. Plea

    My bookmark icons can be fully seen in bookmark toolbar. But on the address bar and on tab most of the icons are blank and when I open most of the websites, their icons are also blank, too. I've already reinstall the firefox 3.6.3 but it is the same. Please help me. Some of the websites show thier icon normally.
    == User Agent ==
    Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3

    Yes, it doesn't work. I ran in safe mode. nothing changed. I uninstalled Mozilla firefox with only standard removal, no change. I finally uninstalled Mozilla with complete removal and reinstalled it, then it return to normal. Why does this happen? Thanks for your reply.

  • I Photo, I Movie, and Photo Booth Icons are visible but when clicked on won't open.

    What can I do? I Photo, I Movie, and Photo Booth Icons are visible but when clicked on won't open.

    What happens when you try?

  • How do I stop my MacBook clearing the icons off the desktop when I switch off

    How do I stop my MacBook clearing the icons off the desktop when I switch off the machine?

    Hi Matt
    After I create say a word document, file it on my desktop and then shut down my machine. The next time I open up the MacBook the file icon has been removed from the desktop. I can still retrieve the file in a folder labeled with the month I created it. But why has the OS removed it from the desktop and how can I stop it happening?
    It happens to alias icons as well!
    Regards

  • I have iphone 5s which when i connect to import the pictures directly to my windows computer. a folder by the name of my phone appears in "My Computer" . when i open it, it shows the storage information and one icon to click on. when opened it shows

    i have iphone 5s which when i connect to import the pictures directly to my windows computer. a folder by the name of my phone appears in "My Computer" . when i open it, it shows the storage information and one icon to click on. when opened it shows a couple of folders to click upon to view pictures. when i open the pictures folder and delete all the pictures , even then a lots of unclickable windows icons remain
    i have attached the picture of that window's screenshot. plus when ever i try deleting them it says,
    please help!.. i shall be really thankful.
    iPhone 5s, iOS 8

    I have the same issue and it has to do with iOS 8.2
    Apple, please mend this ASAP. Really stupid change since iOS 8.1
    If you for some reason must have many different folder make sure that you put the newst photo in the last folder so one can easily find a photo when I don't want to copy all photos to, let' say, my friend computer.

  • HT201413 I have restored and updated my ipod from recovery mode however I still have the usb cord and itunes icon on the ipod when it is switched on. How can I get my ipod to work again?

    I have restored and updated my ipod from recovery mode, however I still have the usb cord and itunes icon on the ipod when it is switched on. How can I get my ipod to work again? I have updated and restored 5 times! When connected to itunes it only shows the summary page saying ipod in recovery mode.

    Fixed it!
    1. Made sure itunes software was up to date
    2. Pressed and held 'home' button and 'on-off' button at the same time for about 10 seconds till ipod reset (I hadn't done this step previously)
    3. Connected to itunes
    4. Pressed restore and update ipod
    Update successful and ipod taken out of recovery mode

  • TS3218 My iPod Nano 6th generation fell one time and it kept working with a small crack in the screen.But after a while it just gave out and does not turn on.I try to charge it and all it does is blink the apple icon on and off.When disconnected nothing h

    My iPod Nano 6th generation fell one time and it kept working with a small crack in the screen.But after a while it just gave out and does not turn on.I try to charge it and all it does is blink the apple icon on and off.When disconnected nothing happens.

    I am having the identical trouble as described above with my month old Macbook Air. I tried everything with the ditto results. Please help anyone!
    Mine is a Macbook Air 13', 128GB, 1.86GHz with 4 GB RAM.

  • Itunes will not load on my ipad. Icon is there. When I open "Music", it shows itunes with no content briefly and then takes me back to home page. What to do?

    itunes will not load on my ipad. Icon is there. When I open "Music", it shows itunes with no content briefly and then takes me back to home page. What to do?

    Quit the app and restart.
    Go to the home screen first by tapping the home button. Double tap the home button and the task bar will appear with all of your recent/open apps displayed at the bottom. Tap and hold down on any app icon until it begins to wiggle. Tap the minus sign in the upper left corner of the app that you want to close. Restart the iPad.
    Restart the iPad by holding down on the sleep button until the red slider appears and then slide to shut off. To power up hold the sleep button until the Apple logo appears and let go of the button.
    Or reset the iPad.
    Reset the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons.

  • How to change the node's icon in a tree when the node collapse or expand?

    how to change the node's icon in a tree when the node collapse or expand?

    Hi,
    You may need to use custom skin for that.
    -Arun

Maybe you are looking for

  • E7 - Problem with camera function

    My Nokia E7 recently started to give me the following message when I select the camera function: 'Unexpected error occured. Restart phone.' Restarting, even rebooting, does not make this go away. Can anybody help me to get he camera working again, pl

  • Using Ternary operators to set image source

    Hi, I'm using JDeveloper llg, and have an ADF table, in one of the columns im trying to have just an image displayed. Using:           <af:column width="16">                      <img src="icons/bullet_green.png"                              height="

  • Dual Layer discs fail to burn

    I have Toast 6.1.1 and a rev.b iMac. I've been trying RiDisc DL DVD+R's. The burn fails at the lead-out. Any ideas?

  • How to decompose a string with ';' into Internal table

    Hello all, I need your help for find a Function module or Abap code. I have a file with the separator is the ';' Example of the contains of my file : 521010;16;46048,00;;*Soucet*Odmena za 524012;41;103807,00;;Zdrav.p.organizace 524012;42;;18332,00;Zd

  • Attach Certificate to Java Client

    Hi Need to attach a certificate to a java client but facing following error java.lang.SecurityException: Can not find public key for alias: "lahoticlient"      at weblogic.wsee.security.util.CertUtils.getCertificate(CertUtils.java:106)      at weblog