
How can i create button, when you go across with mouse show that yellow window.
Open.setToolTipText (Open); // how change it from blue to yellow?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The message displayed when the user hovers over a JButton is called a tooltip.
You can create one using the code found in the Java tutorial here:
http://docs.oracle.com/javase/tutorial/uiswing/components/tooltip.html
To customize the background of the tooltip, you can do one of two things:
Use the following code to change the tooltip alone:
Source: Moon Ocean Oracle Blog