Hi, i am trying to use a tooltiptext for a JButton.
I am writing it in as
jbtCalculate.setToolTipText( "Calculates the total return of the bet") ;
and it is giving me back this error
StakePanel.java:26: <identifier> expected
jbtCalculate.setToolTipText( "Calculates the total return of the bet") ;
^
StakePanel.java:26: illegal start of type
jbtCalculate.setToolTipText( "Calculates the total return of the bet") ;
^
2 errors
Any ideas what i am doing wrong?
BTW, i am using a Panel to do this in if that makes a difference
