button.setToolTipText("Hello, World");
    frame.add(button, BorderLayout.NORTH);

This part is the main of my program..the main ok..but that class above somethind wrong please help me figured it out......

public class ComponentDemo{
	
	public static void main(String [] args){
		
			JFrameWithManyComponents frame= new JFrameWithManyComponents();
			
		}
	}

What errors do you get? What is wrong? You give no information as what is not working

//the method is not working:
setToolTipText();//this method 
button.setToolTipText("Click this button");

actually theres no error but the method is not working please help me figured it out and please explain what i did wrong......

thanks..

never mind it I already solve the problem...
thanks..

yeah...I already solve it

thanks java addict...

Well, if it was a problem that is not obvious, why not post the solution here for others to see?

grrrrrr

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.