Sunday 17 July 2011

Setting tool tip Text for any JComponent

Tool Tip Text
Creating a tool tip for any JComponent object is easy. Use the setToolTipText method to set up a tool tip for the component. For example, to add tool tips to a button, you add only one line of code:
b1.setToolTipText("Button 1")

No comments:

Post a Comment