<<< ActionListener interface | Index | Font class >>> |
A tool tip helps to understand the purpose of component on the input form
Tool tips appear when a user hovers the mouse over the component
// Create frame // ... // Add button and set font: JButton button = new JButton( "Hello" ); button.setToolTipText( "tool tip text goes here" ); frame.getContentPane().add( button ); frame.setVisible( true );
<<< ActionListener interface | Index | Font class >>> |