Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. Java
  4. setToolTipText in DefaultMutableTreeNode

setToolTipText in DefaultMutableTreeNode

Scheduled Pinned Locked Moved Java
comdata-structuresquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    Kujtim Hyseni
    wrote on last edited by
    #1

    Hello, in my app I am extensively using JTree and building nodes with DefaultMutableTreeNode. But I didn't found the setToolTipText method in DefaultMutableTreeNode to tooltip its content, except this[^] article to do the same. Any shorter idea, or already similar existing object within standard packages? Kujtim

    N 1 Reply Last reply
    0
    • K Kujtim Hyseni

      Hello, in my app I am extensively using JTree and building nodes with DefaultMutableTreeNode. But I didn't found the setToolTipText method in DefaultMutableTreeNode to tooltip its content, except this[^] article to do the same. Any shorter idea, or already similar existing object within standard packages? Kujtim

      N Offline
      N Offline
      Nagy Vilmos
      wrote on last edited by
      #2

      I think that looks a pretty tidy and simple solution. You have the class ToolTipTreeCellRenderer, so use it as the renderer for your trees. Decide on an interface for the tool tip text, make sure your nodes support and use it.


      Panic, Chaos, Destruction. My work here is done.

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups