2 Replies Latest reply: Jul 31, 2012 12:35 AM by 814246 RSS

    How to display information about an Object like Car on mouse over event?

    814246
      Hello,

      I have JTree inwhich im using JTable as node tree renderer. Now in this JTable im using JTextPane as renderer.
      This JTextPane contains objects like car which are comma seperated.
      My requirement is when i put mouse on any Car object, it should show me Car information on tooltip or below the window.
      Because of some problem im not able to paste my code here.



      Sequence is like Tree Table which has JTextPane is node renderer.
      There are many comma separated Car objects like car1,car2,car3... which i put in JTextPane.
      and my tree is like
      BMW
      carmodel1,carmodel2,carmodel3
      FORD
      carmodel1,carmodel2,carmodel3
      MARUTI
      carmodel1,carmodel2,carmodel3

      carmodel1,2,3.. are objects of Car which has model information, my requirement is when put mouse over any Car Object
      I have to display Car information in Statusbar.
      Any sugestions!!

      Edited by: 811243 on Jul 30, 2012 10:35 PM