use of javax.swing.JToolTip in project felix by apache.
the class TreeNodeCellRenderer method createToolTip.
public JToolTip createToolTip() {
JToolTip tip = super.createToolTip();
tip.setBackground(Color.yellow);
return tip;
}
use of javax.swing.JToolTip in project processdash by dtuma.
the class NarrowJMenu method getTooltipOffset.
private static Point getTooltipOffset() {
JToolTip tip = new JToolTip();
tip.setTipText("X");
int delta = tip.getPreferredSize().height + 2;
return new Point(-40, -delta);
}
use of javax.swing.JToolTip in project UniversalMediaServer by UniversalMediaServer.
the class CustomJTextField method createToolTip.
public JToolTip createToolTip() {
JToolTip tip = new HyperLinkToolTip();
tip.setComponent(this);
return tip;
}
use of javax.swing.JToolTip in project UniversalMediaServer by UniversalMediaServer.
the class CustomJButton method createToolTip.
@Override
public JToolTip createToolTip() {
JToolTip tip = new HyperLinkToolTip();
tip.setComponent(this);
return tip;
}
use of javax.swing.JToolTip in project jsql-injection by ron190.
the class PanelConsoles method buildI18nTab.
private void buildI18nTab(String keyLabel, String keyTooltip, Icon icon, Component manager, int position) {
final JToolTipI18n[] j = new JToolTipI18n[] { new JToolTipI18n(I18nView.valueByKey(keyTooltip)) };
JLabel labelTab = new JLabel(I18nView.valueByKey(keyLabel), icon, SwingConstants.CENTER) {
@Override
public JToolTip createToolTip() {
JToolTip tipI18n = new JToolTipI18n(I18nView.valueByKey(keyTooltip));
j[0] = (JToolTipI18n) tipI18n;
return tipI18n;
}
};
labelTab.setName(keyLabel);
labelTab.addMouseListener(new MouseAdapter() {
@Override
public void mousePressed(MouseEvent e) {
MediatorGui.tabConsoles().setSelectedComponent(manager);
super.mousePressed(e);
}
});
MediatorGui.tabConsoles().insertTab(I18nView.valueByKey(keyLabel), icon, manager, null, position);
MediatorGui.tabConsoles().setTabComponentAt(MediatorGui.tabConsoles().indexOfTab(I18nView.valueByKey(keyLabel)), labelTab);
I18nView.addComponentForKey(keyLabel, labelTab);
I18nView.addComponentForKey(keyTooltip, j[0]);
labelTab.setToolTipText(I18nView.valueByKey(keyTooltip));
}
Aggregations