ToolTip is not being shown for all labels

Posted on 2012-09-01
Last Modified: 2012-09-01
public void mouseEntered(MouseEvent e) {
            		//for(PathInfo p2:log1.getPathinfolist())
            	for(LogProcess lp1:lo)
            	{   lp1=lo.get(xx);
            		String ename=e.getComponent().getName();
            		for(PathInfo p2:lp1.getPathinfolist())
            	    	String toolTip ="<html>";
                		for(String line : d1d)
                		  toolTip += line +"<br>";
                		toolTip += "</html>";
            			//System.out.println("Hover Activated");

Open in new window

In my program labels are added to a panel based on the contents of a linked list.I wanted to implement hover for each label,but comparing values based on the label name and the linked list.However it does not quite seem to work.Can someone help me to find the mistake?
Question by:akashsuresh
    LVL 86

    Accepted Solution


    Open in new window

    Only one label has its text set repeatedly, finally getting the last loop value
    LVL 86

    Expert Comment


    Featured Post

    Threat Intelligence Starter Resources

    Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

    Join & Write a Comment

    After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
    Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
    Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
    This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

    754 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    20 Experts available now in Live!

    Get 1:1 Help Now