I am trying to add a kind of label when the mouse touches a button, I used Jlabel but i failed to create it.
Can you help me?
Use setToolTipText with Button.
button.setToolTipText("Click me");
Look at this tutorial.