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();
}
}