How can I change the ToolTip bg and fg colors?

hi,
I have a JTree, and I want to display a textual description for each node as a tooltip. I want the tooltip to appear with a certain bgcolor, and fgcolor.
I have a CustomCellRenderer extending DefaultTreeCellRenderer with getTreeCellRendererComponent() method. Inside this, i am setting the ToolTipText..
I want to change the color of the tip thats displayed.
thank you,
sn

rahim,
this is a method of the CustomCellRenderer which extends DefaultTreeCellRenderer
     public Component getTreeCellRendererComponent(
                              JTree tree,
                              Object value,
                              boolean sel,
                              boolean expanded,
                              boolean leaf,
                              int row,
                              boolean hasFocus)
          super.getTreeCellRendererComponent(tree, value, sel, expanded, leaf, row, hasFocus);
          NodeData node = (NodeData)value;
          setToolTipText(node.getName());
          return this;
}The NodeData is a class the represents the data for each node of the JTree.
please let me know if there's anything else I can do, that'll be of help to you.
regards,
sangeetha

Similar Messages

  • How can I change the default fill and stroke colors for new shapes?

    As you can see in the following screen recording, after I change the stroke and fill color, all my subsequent rectangles are created respecting these new colors. But then when I delete all the rectangles, choose the rectangle shape tool once again, and start creating new rectangles, they start getting created with another color I had used some time ago (and I don't know how did it become the default color).
    http://tinypic.com/r/64jrwp/6
    So how can I change the defaults, so that the fill color is say #ddd, and the shape has no stroke at all?
    Thanks.

    When you have the shape tool selected you will see in the tool bar below - file edit etc a fill and stroke. This is where you can change the colours.
    You can keep drawing your shapes like you did in the video but then select the rectangle and change the colour from this tool bar. The reason it changes will be because you changed the colours you were using (foreground / background) that display in the left side tool bar.

  • How can i change the full download and install path because my C: ist full and it automaticly downloads it on C: i allready changed in on adobe creative cloud but it dont work

    How can i change the full download and install path because my C: ist full and it automaticly downloads it on C: i allready changed in on adobe creative cloud but it dont work

    Read the part about SSDs. Otehrwise there is nothing you can do. Certain components wil lalways install on your system root drive.
    Mylenium

  • HT201240 I have a new macbook pro that did not have a disk, OS X was pre installed  so how can i change the administrators name and password, it did not migrate properly from my hard drive.., so how do i

    I have a new macbook pro that did not have a disk, OS X lion 7.3.4 was pre installed  so how can i change the administrators name and password, it did not migrate properly from my hard drive.., now there is some mysterious administrator name and or password??

    See #5
    Step by Step to fix your Mac

  • How can I changed the system username and password

    How can I changed the system username and password
    Need help urgent

    Paolo,
    If I understand his requirement good (to have system user but must be called xxxx) then that's the option.
    Well, that's obvious...Sure, but sometimes we see complicated thing but not something what is obvious...
    Also your demonstration to OP how to change user password indicate that OP-level of knowing Oracle user management is such that OP maybe need help for something what is for you or me obvious...
    Cheers!
    Message was edited by:
    Faust

  • How can I change the admin username and password

    how can I change the default admin adminadmin username and password for the server

    What version of Creator are you use?
    In Creator 2 Update 1, using Application Server version 8.2, you can do the following..
    1) Log into the Admin Console using the default UID/PWD
    2) Expand the tree view by following this path:
    Application Server > Configuration > Security > Realms > admin-realm
    3) Click on "Manage Users"
    4) Click on the UserID "admin"
    5) enter the new password that you would like
    6) Click on the "Save" button on the upper right side of the page.
    That should do it for you.
    Good luck

  • How can I change the font size and placement of photo descriptions in an  iPhoto slide show?

    With an iPhoto slide show, how do I change the font size for titles and descriptions and position the text when preparing a slide show?

    to change the pixels crop to 100x100 and export with maximum dimension of 100 - see the user tip on exporting foo details on Export options - Exporting From iPhoto
    As to DPI - digital photos have no DPI since DPI is Dots Per Inch and digital photos have no inches hence no DPI - when you print a photo then DPI is a mathematical calculation - dots divided by inches - it is not a setting
    Print a 480 pixel photos as a 1" square and the print it 480 DPI (480 / 1 = 480) and print the 100 pixel image as a 1" square it will be 100 DPI (100 / 1 = 100) - print a 480 pixel photo as a 4.8 inch square and it is 100 dpi (480 / 4.8 = 100) - just a calculation - not a setting
    LN

  • How can I change the "folio name" and the "publication name?

    Hello,
    We have posted a Multi-folio App a single folio in it.
    We would like change the "folio name" and the "publication name” and we tried to do this using the dashboard. However, when clicking “update” we unchecked the “update content” checkbox, because there are no changes to the folio’s content. The problem is that this didn’t change anything in the app: both the "folio name" and the "publication name” remain unchanged…
    Is it possible to do this without having to repost this folio?
    Thanks!
    Olivier.

    The metadata is considered part of the content. Click update again and leave the "update content" checkbox checked.
    Neil

  • How can I change the pixel height and width of a photo in iPhoto without changing the dpi

    I want to change the dimensions of a photo. Current dimensions are 480 pixels on each side. I want to make a copy that is 100 pixels on each side, but I want the dpi to stay the same. In iPhoto I tried exporting the copy using the new dimensions, but the result was a blurred image. Is there another way to do this?

    to change the pixels crop to 100x100 and export with maximum dimension of 100 - see the user tip on exporting foo details on Export options - Exporting From iPhoto
    As to DPI - digital photos have no DPI since DPI is Dots Per Inch and digital photos have no inches hence no DPI - when you print a photo then DPI is a mathematical calculation - dots divided by inches - it is not a setting
    Print a 480 pixel photos as a 1" square and the print it 480 DPI (480 / 1 = 480) and print the 100 pixel image as a 1" square it will be 100 DPI (100 / 1 = 100) - print a 480 pixel photo as a 4.8 inch square and it is 100 dpi (480 / 4.8 = 100) - just a calculation - not a setting
    LN

  • HT201441 How can i change the e-mail and password for the iphone

    Hi there,
    I bought my iphone as a 2nd hand from someone i dont know his adress.Then i made an update to the iphone and its says that i have to write the previous e-mail and the password which i dont know any of them and i couldnt find that person now.
    So please if you can help me, what should i do in this case? Becouse the iphone at this moment is useless.
    Best Regards

    No, there is no solution - search these forums if you like for similar posts.  Without knowing the registered owners password there is no way to disable Activation Lock.  Apple will not give you that password, nor reset it for you, nor give you any personal information about the registered owner.
    If you cannot contact that original owner, or they refuse to help you, then you now own a brick.  If you can, go back to the seller and get your money back.  It is reasonably likely though, that they did not actually own the device to sell it in the first place.

  • Got the old MacBook Pro from my daughter; I have an Apple ID; How can I change the user of the Pro to my name

    My daughter gave me her old MacBook Pro; How can I change the computer name and users account to mine; I have alraedy an Apple ID

    Here are the steps to follow when giving away or selling a Mac.
    http://support.apple.com/kb/HT5189?viewlocale=en_US&locale=en_US

  • How can I change the database & schema used by an Application?

    Hi community,
    I am very new on Essbase and I need help to find out how can I change the database connection (and schema) used by the database of an Application. The figure is that I need to point this database to a QA environment (currently it points to DEV).
    If I do a right click over the properties of the database, I can see the following tabs: [ General ][ Dimensions ][ Statistics ][ Modifications ][ Compression ]. However, there is no option to change the database connection.
    Is there a way to do this?
    Thanks in advance for any help! Cheers!

    Are you trying to change a database connection of Planning application?
    Essbase application do not have a relational connection.
    Regards
    Celvin
    http://www.orahyplabs.com

  • How can I change the tag name in cursor statement?

    Hi
    I have two tables: TableA and TableB. I want generate a XML file using XSU12 from these two tables, the XML structure like:
    <ROWSETA>
    <ROWA num="1">
    <A1></A1>
    <A2></A2>
    <A3>
    <A3_ROW num="1">
    <B1></B1>
    <B2></B2>
    </A3_ROW>
    <A3_ROW num="2">
    <B1></B1>
    <B2></B2>
    </A3_ROW>
    </A3>
    </ROWA>
    </ROWSETA>
    How can I change the tag name and attribute for "A3_ROW"?
    Thanks in advance!
    null

    In short, you can't.
    You can use the column alias as you're already doing to change the name of the "A3" part of "A3_ROW" but you cannot change the "_ROW" part of "A3_ROW". This is added automatically.
    You can combine the results of XSU with an XSLT stylesheet (made very simple if you're using XSU by working with Oracle XSQL Pages) to change the name of any element or completely restructure the XML output into a target XML, HTML, or text format.

  • How can I change the default apple ID for app store. I bought the macbook from my school when I left and I'm the ID in place of mine is the computer departments one. How can i change it to mine?? Thanks

    How can I change the default apple ID for app store. I bought the macbook from my school when I left and I'm the ID in place of mine is the computer departments one. How can i change it to mine?? Thanks

    http://support.apple.com/kb/ht5621

  • When my husband and I first bought our iPhones, I was the only one with an Apple ID (since he never used iTunes). He used my apple id to get apps. Now he has his own ID, but my account keeps popping up on his phone. How can we change the ID on his phone?

    When my husband and I first bought our iPhones, I was the only one with an Apple ID (since he never used iTunes). He used my apple id to get apps. Now he has his own ID, but my apple ID email address keeps popping up on his phone when he tries to download an app. We do not want to have all of the same apps on our phones. How can we change the ID on his phone? I already tried going to Settings>iTunes &App Store> and changing the Apple ID to his account email and that did not solve the problem. To make things worse, I recently changed my Apple ID email address (without getting a new ID) and I do not remember my old password (and this is the address that is popping up on his phone). He does not have any music on his phone and all of the Apps that he has are free.  Any help you could offer would be great (-:

    All apps are forever tied to the Apple ID that bought them. To stop your id from popping up, you need to delete the apps on his phone, and then repurchase them under his account.

Maybe you are looking for

  • IDoc or BAPI for inbound delivery creation with reference to PO.

    Hi I have requirement to create a inbound delivery, I  will get a ASN from external system with PO, Vendor Material number & batch. I want to know is there any BAPI or IDoc that can be used to create inbound delivery in R/3. I used BBP_INB_DELIVERY_C

  • Change the data of a gallery witn a dropdown list

    Hello, I hope someone can help me. I have a gallery in my app. And on top a dropdown list with 8 different texts. I also have 8 rss feeds. Now I want that the gallery change the rss when I change the dropdown. Is that possible? Can someone help and s

  • The apple id showing up on my phone is not me, how do I change it?

    Trying up download an app, or update and the Apple ID coming up is not my apple ID.  Anyone know how to change this?  I figured it out once but did not write it down. thanks!

  • Install Best Practices- Baseline Package for ECC 6.0 EHP4

    Hi All, I know its not the right forum to post this message, but posting here as i didnt get the info from the related forum, apologies for that. Now we are planning to install SAP Best practices-Baseline Packages for ECC-EHP4 in our new server. Can

  • Dead or stuck pixels?

    Hi I got my MBP a week ago and I didn't notice anything worng with it, except for the known things like "whine" and "heat", but I'm OK with that. Today I noticed a display issue, something like a dead pixel or whatever It might be called. I could hav