Results 1 to 2 of 2
  1. #1
    Preethi is offline Member
    Join Date
    Jan 2008
    Rep Power

    Default How to dispose tooltip.

    I have a drawn an array of Rectangle.Now,i want to add tooltip to that,to display some string that i have it in another array.So in mouseMoved method i set the tooltip,by checking the condition,if the mouse comes over the rectangle the tooltip should display,now the problem is even after coming out of the rectangle region the tooltip is getting displayed,how to getride of the problem,can anyone help me.please

    Java Code:
    public void mouseMoved(MouseEvent e)
                Point p = e.getPoint();
                Rectangle [] rectangle = dlprect_list.toArray(new Rectangle[dlprect_list.size()]);
                String [] dlpstr = dlpString.toArray(new String[dlpString.size()]);
                for(int i=0;i<dlprect_list.size();i++)

  2. #2
    hardwired's Avatar
    hardwired is offline Senior Member
    Join Date
    Jul 2007
    Rep Power

Similar Threads

  1. [SOLVED] Not dispose my JPanel
    By Eranga in forum Advanced Java
    Replies: 3
    Last Post: 11-14-2010, 03:02 PM
  2. Working with Tooltip Text
    By Java Tip in forum javax.swing
    Replies: 0
    Last Post: 06-26-2008, 07:41 PM
  3. Tooltip
    By Preethi in forum New To Java
    Replies: 5
    Last Post: 06-11-2008, 11:37 AM
  4. Problem to ToolTip in Java 3d
    By roshithmca in forum AWT / Swing
    Replies: 1
    Last Post: 02-05-2008, 03:46 AM
  5. How to create ToolTip in Java 3d
    By roshithmca in forum AWT / Swing
    Replies: 0
    Last Post: 02-04-2008, 06:57 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts