1

You can put a title attribute on any HTML element. Usually, the content of the title attribute will be displayed if the element is pointed by the user for about one second. It is a very convenient way to give help to users that may need some. Here is how it looks like: Title example

I am looking for a java swing build-in feature imitating this behavior. If it does not exist, can you provide a set of good practices to implement it?

Note: I am not looking for the HTML5 placeholder attribute equivalent that can be found on this post: Java JTextField with input hint

Community
  • 1
  • 1
Florent Henry
  • 702
  • 1
  • 7
  • 25
  • 5
    Yes there is. It's called [ToolTip text](http://docs.oracle.com/javase/tutorial/uiswing/components/tooltip.html) – BackSlash Apr 14 '14 at 14:57

1 Answers1

3

Sounds like you want the JToolTip class.

Kayaman
  • 72,141
  • 5
  • 83
  • 121