基本上,当我将鼠标悬停在挥杆组件上时,我需要显示图像/图标
//this is what i normally use to apply image to components
Icon icon = new ImageIcon(getClass().getResource("icon.png"));
label = new JLabel(icon);
我想做什么:
//use an imported icon on a tool tip text and also add some texts
label.setToolTipText(icon + "some random text");