Cant we underline Jtree Node?...need help please

Hi friends,
sorry for repeating the question BUT i couldnt get any solution for this
problem. My Jtree renderer extends DefaultTreeCellRenderer which ,in turn,
extends JLabel.
I want to make Underline possible for its Nodes.
I am able to make it Bold,Italic ,change size and all BUT not underline.
HOW to do that.
Please give me some suggestion.
thanx,
Rajesh

Hi Rajesh.
I havn't tried these suggestions, but you can give them a try..?
If your renderer for your node is a JLabel, you might be able to use html markup. So wrap the text for your label in...
<html><u> // your text // </u></html>
or.... you could try something with this code... (???)
Font f=new Font("Times", Font.BOLD, 24);
AttributedString ats=new AttributedString("Magic");
ats.addAttribute(TextAttribute.FONT, f);
ats.addAttribute(TextAttribute.UNDERLINE,
          TextAttribute.UNDERLINE_ON);which I found from :
http://developer.java.sun.com/developer/onlineTraining/Media/2DText/exercises.html
but you might find these useful too.
http://developer.java.sun.com/developer/onlineTraining/Media/2DText/style.html
http://developer.java.sun.com/developer/onlineTraining/Media/2DText/more.html
... hope this has helped.
Ollie.

Similar Messages

  • Cant get iEyeNet running ! Need help, please!

    hello to all
    i want to use this widget (iEyeNet):
    http://www.apple.com/downloads/dashboard/networking_security/ieyenet.html
    unfortunately it doesnt work. maybe someone can help me get iEyeMonitor running?
    this is my wireless configuration:
    First Airport Extreme Station 802.11g Version 5.7 in basement
    • Connected to the net via pppoe
    • wds base station
    • SNMP enabled
    • SNMP via WAN enabled
    • NAT Port Mapping active
    • IP (Internet): 88.66.xx.xxx
    • IP (Router Address): 88.66.0.1
    Second Airport Extreme Station 802.11g Version 5.7 upstairs
    • wds client
    • IPv4: DHCP
    • IP: 10.0.1.3
    • IP (Router Address): 10.0.1.1
    Airport Admin Utility Version 5.3.2 (532.8)
    Thanx for helping !

    sorry, i forgot to write this:
    iEyeNet gives this error message: *snmpwalk: Timeout*

  • I need help please-ipod mini/itunes help

    Hi,I have a computer and a laptop. I would like to add my computer itunes libary to my laptop intunes libary.Both liberies are itunes7. I just cant do it. I need help please. Simple steps or someone on the phone or someone who lives in Wimbledon and could come by and help me,cheers.Conny

    Check these out:
    Getting Music from your iPod to your Computer 3rd party options
    Using One iPod With Multiple Computers
    I hope this helps!

  • HT4623 cant find software updates on my iphone4 model MC605J.Need help please..

    cant find the sofware update on my phone model MC60J
    Need help please..

    What happens when you connect the iPhone to the computer you
    usually sync with and use iTunes on that computer to update the
    iPhone?
    What version of iOS is currently on your iPhone?

  • HT1350 my kids entered the wrong unlock code on my ipod too many times and now the screen says ipod disabled connect to itunes. Well i try connecting to itunes and i cant because my ipod is locked! need help please!

    my kids enetered the wrong unlock code on my ipod touch too many times and now the screen says IPOD DISABLED connect to itunes. I have tried connecting it to itunes and I cant because the ipod is locked. need help please! any ideas? Thanks, Nick

    Place the iOS device in Recovery Mode and then connect to your computer and restore via iTunes. The iPod will be erased.
    iOS: Wrong passcode results in red disabled screen                          
    If recovery mode does not work try DFU mode.                         
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings

  • My MacBook Pro has problem in iphoto,, I cant open it,, I need help please,,,,

    My MacBook Pro has problem in iphoto,, I cant open it,, I need help please,,,,

    Last login: Sun Apr 22 19:11:11 on ttys000
    Marlons-MacBook-Pro:~ ryanmnhs$ ls -la ~/Library/LaunchAgents
    total 40
    drwx------   7 ryanmnhs  staff   238  5 Nov 23:09 .
    drwx------@ 48 ryanmnhs  staff  1632 13 Jan 09:53 ..
    -rw-r--r--   1 ryanmnhs  staff   574 24 Oct 22:29 com.adobe.ARM.202f4087f2bbde52e3ac2df389f53a4f123223c9cc56a8fd83a6f7ae.plist
    -rw-r--r--   1 ryanmnhs  staff   618 22 Oct  2011 com.apple.AddressBook.ScheduledSync.PHXCardDAVSource.BAF380D0-E780-4E82-86BF-77 2440AB4936.plist
    -rw-r--r--   1 ryanmnhs  staff   895  4 Sep  2011 [email protected].plist
    -rw-r--r--   1 ryanmnhs  staff   802 21 Mar 12:56 com.facebook.videochat.ryanmnhs.plist
    -rw-r--r--@  1 ryanmnhs  staff   805  6 Sep  2011 com.google.keystone.agent.plist
    Marlons-MacBook-Pro:~ ryanmnhs$ 
    ,,,,,,,,THIS IS THE RESULT,, WHAT DOES THIS MEAN? HOW CAN I FIX MY PROBLEM? UP TO THIS DATE MY WORD, EXCEL AND POWERPOINT STILL DONT WORK!!!!PLEASE HELP ME, ANYONE? THANK YOU...

  • I backup to an external hdd with Time Machine, when it ran out of space it did not delete old backups, now my internal hdd says its full when before it had heaps of space. I have searched for extra files but cant find any. Can anyone help, please.

    I backup to an external hdd with Time Machine, when it ran out of space it did not delete old backups, now my internal hdd says its full when before it had heaps of space. I have searched for extra files but cant find any. Can anyone help, please.

    First, empty the Trash if you haven't already done so. Then reboot. That will temporarily free up some space.
    To locate large files, you can use Spotlight as described here. That method may not find large folders that contain a lot of small files.
    You can also use a tool such as OmniDiskSweeper (ODS) to explore your volume and find out what's taking up the space. You can delete files with it, but don't do that unless you're sure that you know what you're deleting and that all data is safely backed up. That means you have multiple backups, not just one.
    Proceed further only if the problem hasn't been solved.
    ODS can't see the whole filesystem when you run it just by double-clicking; it only sees files that you have permission to read. To see everything, you have to run it as root.
    Back up all data now.
    Install ODS in the Applications folder as usual.
    Triple-click the line of text below to select it, then copy the selected text to the Clipboard (command-C):sudo /Applications/OmniDiskSweeper.app/Contents/MacOS/OmniDiskSweeper
    Launch the Terminal application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid.
    Paste into the Terminal window (command-V). You'll be prompted for your login password, which won't be displayed when you type it. You may get a one-time warning not to screw up. If you see a message that your username "is not in the sudoers file," then you're not logged in as an administrator.
    I don't recommend that you make a habit of doing this. Don't delete anything while running ODS as root. If something needs to be deleted, make sure you know what it is and how it got there, and then delete it by other, safer, means.
    When you're done with ODS, quit it and also quit Terminal.

  • How can I add a new Template to My Templates in Pages? I've read most of the discussions on the subject but it doesn't work for me. By the time I reach the Templates folder, I only see templates for Numbers and not for Pages. Need help, please.  Thanks

    How can I add a new Template to My Templates in Pages? I've read most of the discussions on the subject but it doesn't work for me. By the time I reach the Templates folder, I only see templates for Numbers and not for Pages. Need help, please.  Thanks

    Si vous avez utilisé la commande Save As Template depuis Pages, il y a forcément un dossier
    iWork > Pages
    contenant Templates > My Templates
    comme il y a un dossier
    iWork > Numbers
    contenant Templates > My Templates
    Depuis le Finder, tapez cmd + f
    puis configurez la recherche comme sur cette recopie d'écran.
    puis lancez la recherche.
    Ainsi, vous allez trouver vos modèles personnalisés dans leur dossier.
    Chez moi, il y en a une kyrielle en dehors des dossiers standards parce que je renomme wxcvb.template quasiment tous mes documents Pages et wxcvb.nmbtemplate à peu près tous mes documents Numbers.
    Ainsi, quand je travaille sur un document, je ne suis pas ralenti par Autosave.
    Désolé mais je ne répondrai plus avant demain.
    Pour moi il est temps de dormir.
    Yvan KOENIG (VALLAURIS, France)  mercredi 23 janvier 2011 22:39:28
    iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.2
    My iDisk is : <http://public.me.com/koenigyvan>
    Please : Search for questions similar to your own before submitting them to the community

  • HT1222 I am trying like **** to download itunes 10.6.3 (64 bit - Windows 7) and I keep getting "the installer was interrupted before the requested operations for iTunes could be completed.  Your systems has not been modified."  I NEED HELP, PLEASE!

    I am trying like **** to download itunes 10.6.3 (64 bit - Windows 7) and I keep getting "the installer was interrupted before the requested operations for iTunes could be completed.  Your systems has not been modified."  I NEED HELP, PLEASE!

    I got it figured out myself... yaaaaay for me!

  • After my iphone4S update to 7.0.6, it have a problem that keep searching network then no service show on display. Can't call. I have try check sim card, reset network settings, and restore my iphone. Still not working at all. Need help please.

    After my iphone4S update to 7.0.6, it have a problem that keep searching network then no service show on display. Can't call. I have try check sim card, reset network settings, and restore my iphone. Still not working at all. Need help please.Urgent.TQ

    Izit software or hardware? Confuse:(
    Only can use wifi now.
    Any way thanks guys for ur suggestion:) amishcake and simes

  • Bought a new macbook and want to manually manage music onto my iphone 4s but when i click 'manually manage' and then 'apply' i get the message saying it will erase everything already on there. Need help please!

    Bought a new macbook and want to manually manage music onto my iphone 4s (as it is already full of music from old windows laptop) but when i click 'manually manage' and then 'apply' i get the message saying it will erase everything already on there. Need help please!

    Before you sync your iPhone make sure that all the music that was synced to your phonereviously has been copied to your iTunes on the new MacBook Pro. Then when you connect your phone you will be able to either sync all music or select only those playlists that you want on the phone.

  • HT4314 Hi i need help please i been playing clash of clans over 13 months. And today o realise what someone using my game Centra. Someone playing on my game Clash of Clans. I been change my Apple ID password, email, but doesn't work. Then I playing game I

    Hi i need help please i been playing clash of clans over 13 months. And today o realise what someone using my game Centra. Someone playing on my game Clash of Clans. I been change my Apple ID password, email, but doesn't work. Then I playing game I can see what someone else trying connecting to my game And I don't know what to do.So if you can help me please? I don't wanna lose my game.

    Contact iTunes
    Contact iTunes

  • Hi i need help please i been playing clash of clans over 13 months. And today o realise what someone using my game Centra. Someone playing on my game Clash of Clans. I been change my Apple ID password, email, but doesn't work. Then I playing game I can se

    Hi i need help please i been playing clash of clans over 13 months. And today o realise what someone using my game Centra. Someone playing on my game Clash of Clans. I been change my Apple ID password, email, but doesn't work. When I playing game I can see what someone else trying connecting to my game And I don't know what to do.So if you can help me please? I don't wanna lose my game. 

    Hello Vaidas Vaidas,
    It sounds like you are noticing someone else is accessing your Clash of Clans data by playing the game and you have tried to reset your Apple ID password. If you are following the steps outlined in this article:
    Apple ID: Changing your password
    http://support.apple.com/kb/ht5624
    What is preventing you from changing your password? Any error messages or prompts?
    Thank you for using Apple Support Communities.
    All the best,
    Sterling

  • I dont know how i got my photos to my ipod touch from my pc and now i wanna delete them but couldn't. so need help. please let me know.

    i dont know how i got my photos to my ipod touch from my pc and now i wanna delete them but couldn't. so need help. please let me know.

    To turn off auto sync - launch iTunes and go to Edit>Preferences>Devices - check the box at the bottom that says - Prevent iPod, iPhones and iPads from syncing automatically. Click OK and then quit iTunes.
    Connect your iDevice to your PC.
    Launch iTunes,
    Click on the device name on the left side of the iTunes Window.
    Click on the Photos Tab in the iTunes window on the right.
    Untick all of the photos or albums that you want to remove.
    Click on Apply in the lower right corner of iTunes
    If you untick or uncheck the Sync Photos heading and then click Apply it will remove all of the photos from the device when it syncs. In this screenshot - I have only certain albums and events selected to sync.

  • My iPhone 6 can't find my macbook pro on the airdrop list, although everything is in place, bluetooth, wi fi gets, need help please ?

    My iPhone 6 can't find my macbook pro on the airdrop list, although everything is in place, bluetooth, wi fi gets, need help please ?

    Dear Niel, thank you but my mac is (MacBook Pro (Retina, 15-inch, Early 2013).
    and i can send from it to my iPhone , but not vice versa

Maybe you are looking for

  • Redeploy sender soap adapter 7.1

    We have PI 7.1 SP7 and expriencing many problems with the sender SOAP adapter the service registry works for us for all web services but from other applications like xmlspy and soapui we get messages of chace problems and unauthorized ( all cache che

  • MSI R9 290 How to switch between Gaming Modes?

    Hi, I just got a MSI R9 290... with Afterburner installed. This card has 3 preset modes that are supposed to be easy to switch between OC Mode 1007Mhz, Gaming 974Mhz, Silent 947Mhz... How do I switch between modes? I just tried to up the MHz in After

  • Transform data into columns

    hello i would like to transform rows into columns and need your help i have table orders where we have two columns orderid,orderdate orderid     order_date 1234     9/10/2009 4555     10/1/2009i have order_codes have 3 columns orderid desc value data

  • Magic mouse gestures mountain lion

    whats happened to magic mouse gestures on mountain lion...i can't even scroll up or down a web page with my magic mouse now....

  • Startup Problem in Windows 2003 Server

    Hi, I was using oracle 9.0.2 with Windows 2003 & i had to format & re-install my machine. Then I tried to install 9i Application Server & failed in between. But I noticed that the setup has already installed oracle 8i database instance. Then I quit c