I am using a JidePopup with several components on it. It seems, that tool tips don't function on all components laying on this JidePopup.
Here is a little test case to show this problem:
- Code: Select all
public class ToolTipDemo extends JidePopup {
public ToolTipDemo() {
super();
JTextField textField = new JTextField();
textField.setToolTipText("TextField");
JButton button = new JButton("Close");
button.addActionListener (new ActionListener () {
public void actionPerformed(ActionEvent e) {
hidePopup();
}
});
button.setToolTipText("Button");
getContentPane().add(textField, BorderLayout.CENTER);
getContentPane().add(button, BorderLayout.SOUTH);
packPopup();
}
public static void main(String[] args) {
ToolTipDemo toolTipDemo = new ToolTipDemo();
toolTipDemo.showPopup();
}
}
Can anybody tell me how to make the tool tips work?
Thanks,
Daniel