Getting Rid of a JTree icon

Hi !,
I was trying to customize the example of JTree that came with the sdk pack and wrote my own tree renderer. However I dont know how to get rid of this particular icon :
http://www.bubble-media.com/Uploads/icon.gif
Does anyone know how to get this to not show ?
Thanks

Here's a small example:
JTree tree = new JTree();
// ... and somewhere after :
Icon openIcon = new ImageIcon(getClass().getResource("images/show-minus4.gif"));
Icon closedIcon = new ImageIcon(getClass().getResource("images/show-plus4.gif"));
((javax.swing.plaf.basic.BasicTreeUI) tree.getUI()).setExpandedIcon(openIcon);
((javax.swing.plaf.basic.BasicTreeUI) tree.getUI()).setCollapsedIcon(closedIcon);       

Similar Messages

  • How to get rid of the camera icon on the lock screen

    how to get rid of the camera icon on the lock screen

    joannelyn wrote:
    How do you get rid of the camera feature on the lock screen?
    You don't, unless you disable the Camera app entirely.
    It's such a nuisance...
    Really, how so?
    I don't want people going into my photos or my iphone!!
    If you add a passcode to your iPhone as you should, then there's no way they can see anything in your iPhone.  Of course, if the passcode is set but not enough time has elapsed that's different -- but that has nothing to do with this icon.

  • How can i get rid of sound effects icon in middle of screen?

    How can i get rid of sound effects icon in middle of screen?

    Have you tried restarting or resetting your iPad?
    Restart: Press On/Off button until the Slide to Power Off slider appears, select Slide to Power Off and, after the iPad shuts down, then press the On/Off button until the Apple logo appears.
    Reset: Press the Home and On/Off buttons at the same time and hold them until the Apple logo appears (about 10 seconds). Ignore the "Slide to power off".

  • How do I get rid of a Facebook icon and message?

    When I power off my iMac or click “restart,” a fresh desktop screen appears.
    After everything loads, I am left with a tiny Facebook icon in the top menu bar of your desktop screen, and a window suspended in the middle of your screen which invites me to sign up for Facebook.
    At that moment, no applications are running, not even Safari.
    How do I get rid of the Facebook icon in the main menu of my Desktop, and the nagging window that floats in the middle of the desktop?
    Thanks

    YAY! I'm glad that made it go away. When anything weird is going on with my iPad or iPhone (or PC - not really needed with my Mac ), I find that a reset is my best friend!
    Enjoy your new iPad! I love mine, and it's an oldie - iPad 1!
    Cheers,
    GB

  • How do you get rid of the app icons after the app has bee updated? Using iOS 7.02

    After updating apps I am unable t get rid of the app icon on the update screen.

    Feedback to Apple
    http://www.apple.com/feedback

  • How do I get rid of the iDisk icon from my desktop?

    I just got a new MacBook Pro 17" with the latest version of Snow Leopard. My local hard drive icon was missing but thankfully I figured out how to get that back. However, I also have the blue iDisk icon on my desktop for which I have no use. How do I get rid of that icon? I trying ejecting it (Command-E) but to no avail.
    Any advice would be greatly appreciated,
    Randy

    The same thing happened to me, and I finally found the answer. I thought I'd post in case others had the same problem:
    Snow Leopard has a new setting under System Preferences > MobileMe within the "iDisk" tab: there's a feature now called "iDisk Sync" that lets you create a virtual "DropBox" from your iDisk if this feature is turned on -- disabling it as a internet only drive.
    If you turn this feature off, however, your iDisk will work as expected and allow you to mount / eject it.
    Hope this helps!

  • How to get rid of the java icon on the window

    There is a java icon(top right habd corner) on every window panel.
    How to get rid of it?

    What r u using, AWT r JAVA Swing? would please explain
    ur problem clearlyLOL. No offense, but you might consider phrasing your responses clearly as well...
    r == "are" || r == "or" || r == "argh" :o)
    §

  • How to get rid of the PDF icons that have locked my files

    All of a sudden all files, except Word docs, are locked (no lock symbol, tho') by PDF icons.  Please help if you know how to get rid of them. I have uninstalled Adobe Reader, which clears up the locks, but then I don't have any way to open PDF files. I tried re-installing several times, to no avail

    Try Application, file icons change to Acrobat/Reader icon

  • Get rid of the Bluetooth icon

    I migrated my account from my powerbook to mini, trouble is i don't have bluetooth installed on my mini and the bluetooth icon on the top right corner is also 'migrated'. so the icon would show as grey and read 'not available'. if i try to open bluetooth to disable the icon, it would say 'no device detected' and then automatically shut off.
    is there anyway to get rid of that icon at all? thanks!

    Command-Click Icon-Drag-Poof! is the real easiest.
    Hold Cmd key. Click and hold on the menubar item you wish to remove. Drag away from the menu bar. Watch the poof.

  • Getting rid of a "download" icon appearing in Safari browser Flash Player

    Please HELP!! I've inserted two screen shots to demonstrate what I'm trying to get rid of. Some months ago I downloaded the Free Video Downloader for Mac from here:
    http://www.iskysoft.com/free-mac-video-downloader.html
    I'm stuck with a very annoying "Download" icon that POPS UP TOP LEFT when I mouse-hover on any and all Flash Player content on my Safari browser. I'm on Mac OS10.5.8. This is ONLY happening on my Safari browser. Not on Firefox or Chrome. I downloaded a Flash Video downloader for Safari months ago. I've deleted ALL traces of the app. I've been everywhere in my system Library - Application Support - Safari folders - etc, I've looked everywhere. Updating Flash Player makes no difference. Clearing all data in the Flash Player System Preferences interface does not get rid of it. Clearing the entire Safair cache does not get rid of it. Re-installing Safari does not get rid of it. I've tried anything and everything I can think of and I've run out of ideas! Short of wiping my hard drive and re-installing Leopard which I do not want to do, I'm stumped. Every time I hover my mouse over Flash content - I'm STILL stuck with this highly annoying "Download" icon in the top left corner of all Safari Browser Flash content. Can anyone PLEASE help me get rid of it. Many thanks!!  NT

    I am having exactly the same problem. Have trawled the internet for solutions and can't find one yet. Please can there be someone clever enough out there to fix this? It's driving me insane... Any suggestions will be gratefully received.

  • Get rid of small loading icon?

    Is there a way to get rid of the small loading icon. I have several animations created in Edge that i have exported out as a .oam file. It took a bit but i've got the animations playing appropriately by using the delay.125 method and one had to go to .25 delay.  While i dont like that as a solution, it will work. My problem though is the small loading swirl that flashes on the screen for that delay. Yeah its not much but its distracting and takes away from the clean look of the folio. Anyone have any suggestions?

    The poster image wasn't working for me, a solution i have found is to duplicate the background placing my animation .oam file between them. The upper layer has two object states one visible and the other invisible. I basically just set it up to be visible before the .oam loads and then after the delay it turns off displaying the animation appropriately without the tiny loading symbol. However i still feel this is something that should addressed in the software as opposed to coming up with a workaround.

  • Can't Get Rid of Shadows Behind icons.

    I left my imac on last night without sleep mode so that the linux would do any self repairs needed. In the past I have done that with success. Normaly the screensaver comes on during the period in which I've turned off the sleep mode. For some reason the screesaver never came on. When I awoke this morning I have an annoying shadow in the form of a square or rectangular box behind every icon on my screen, including the dock and also behind the cursor. The shadows are made up of small vertical black lines in rows of 6.  Is there anything I can do to get rid of these shdadows?

    If you have a 4th Generation iPod Touch running iOS 4.2.1, you are able to update to the latest software.
    Possible Solution:
    Update your iPod.
    Help with Possible Solution:
    Updating iPod Touch:
    http://support.apple.com/kb/ht1483
    Hope this helps!

  • Can't get rid of desktop's icon in sidebar? There are two of them! (w/pic)

    I was trying to clean up my home folder when I accidentally dragged the "desktop" icon into the trash. I drug it back out and put it back in there, but now, when I go to open a file in another program, I see TWO desktop icons!
    I don't see two of them in the regular finder sidebar, just anytime a "browse" box is open.
    How do I get rid of it? Thanks!

    My guess is it is automatically adding a Desktop item to the open file dialog, and it is displaying the one you manually put there. Remove the one you added, then go to the Finder Preferences and check the Desktop item in the Sidebar Prefs.

  • Can't get rid of the itunes icon error

    i have a problem, i tried to update my ipod to the newer versiom but i cant get rid of the "itunes and usb icon" in the ipod. i tried to reset the ipod and its useless. Now my pc dosent recognize the ipod. Its an ipod touch
    Please i really need help..its been so many hours and i cant use my ipod..
    please if you can help me

    Did you try to connect in recovery mode? http://support.apple.com/kb/HT1808
    Also make sure Apple Mobile Device Service is active: http://support.apple.com/kb/TS1567

  • Uninstalled Roboform, but can't get rid of Roboform Lite icon in toolbar.

    I uninstalled the Pro version of Roboform. I was told that some files were still on the pc under a file called "siber". I deleted the siber folder.
    I can't get rid of the Roboform Lite icon in the tool bar

    Have a look in the Extensions menu. Click Firefox button | Add-ons | Extensions.
    Remove if you see it in there.

Maybe you are looking for

  • WMTA- For line Items

    Hi All, We are using output type WMTA for creating TO's for outbound deliveries at header level.When the delivery is having 5 line items and if the first line item is not having stock then the program RSNAST00 which is run in the background is termin

  • Can you see the error ?

    Here is the code (a few lines removed) : public class Alone{     static final int PACKET_SIZE = 8192;     public static int nbPackets = 0;     Vector[] queue;     Thread[] thread;     boolean run;     int id;     public Alone(int port) throws Excepti

  • Yet again - audio sync

    I've search for audio sync - but haven't seen the solution, so I'm posting a request. On my CS5.0.3 system, any time I use Media Encoder to produce an MPEG2 HD file with MPEG II audio, the audio is exactly 3 frames behind the video.  It can be from a

  • Set-up of orange email won't work

    I have tried all permutations when setting an email for my orange.net account with pop 3's and Ssl's to find that nothing works. I tried phoning ee several months ago and still cannot do this on my LG g2. Since orange changed to ee this is not possib

  • List of detected bugs for 3.1.4.710

    Hello, Used this tool to develop simple model and found that the following are the bugs: 1) DROP MATERIALIZED VIEW not possible/ dependencies must be tracked when created as PREBUILD 2) LEVEL (in connect by clause)and DATE(as literal) special words d