0
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();
			
		}
	}
3
Contributors
6
Replies
7
Views
6 Years
Discussion Span
Last Post by Akill10
0
//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..

0

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

grrrrrr

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.