I have a group of JRadioButtons. Each of them points to a directory with only text files, when I mouse over them they should count how many files are in each directory and return the file count as tooltips, I can not set the tooltips when I created the buttons, how to get dynamic tooltips from them ?
I tried the following, but didn't work :
JRadioButton myButton=new JRadioButton("Test")
{
public static final long serialVersionUID=26362862L;
public String getToolTipText(MouseEvent evt)
{
return "123";
}
}