I have created popup frame,which is visible when mouse pointer is placed on button.
But the popup frame is getting displayed at top-left corner of the screen.
How can i get popup in the form of tooltip of the button?
I have created popup frame,which is visible when mouse pointer is placed on button.
Share
have you googled just that "JButton tooltip"? Here’s the first hit with an example:
about the pop-up frame being in the top-left corner; it’s displayed at the default location which is (0,0). You can set it’s location by using the [
setLocation()][2] method[2]: https://web.archive.org/web/20130715065613/http://docs.oracle.com:80/javase/1.4.2/docs/api/java/awt/Component.html#setLocation(int, int)