本文整理了Java中javax.swing.JLabel.createToolTip()
方法的一些代码示例,展示了JLabel.createToolTip()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JLabel.createToolTip()
方法的具体详情如下:
包路径:javax.swing.JLabel
类名称:JLabel
方法名:createToolTip
暂无
代码示例来源:origin: ATLauncher/ATLauncher
@Override
public JToolTip createToolTip() {
JToolTip tip = super.createToolTip();
tip.setBorder(HOVER_BORDER);
return tip;
}
}
代码示例来源:origin: icza/scelight
/**
* Creates a tool tip with the label's font.
*/
@Override
public JToolTip createToolTip() {
final JToolTip tt = super.createToolTip();
tt.setFont( getFont() );
return tt;
}
代码示例来源:origin: ATLauncher/ATLauncher
public JToolTip createToolTip() {
JToolTip tip = super.createToolTip();
Border border = new CustomLineBorder(5, App.THEME.getHoverBorderColor(), 2);
tip.setBorder(border);
return tip;
}
};
代码示例来源:origin: ATLauncher/ATLauncher
public JToolTip createToolTip() {
JToolTip tip = super.createToolTip();
Border border = new CustomLineBorder(5, App.THEME.getHoverBorderColor(), 2);
tip.setBorder(border);
return tip;
}
};
代码示例来源:origin: ATLauncher/ATLauncher
public JToolTip createToolTip() {
JToolTip tip = super.createToolTip();
Border border = new CustomLineBorder(5, App.THEME.getHoverBorderColor(), 2);
tip.setBorder(border);
return tip;
}
};
代码示例来源:origin: senbox-org/snap-desktop
@Override
public JToolTip createToolTip() {
if(!thumbnail.hasImage() || !thumbnail.hasCachedImage()) {
return super.createToolTip();
}
final BufferedImage thumbnailImage = thumbnail.getImage(ProgressMonitor.NULL);
BufferedImage img = new FixedSizeThumbnailMaker()
.size(imgWidth*3, imgHeight*3)
.keepAspectRatio(true)
.fitWithinDimensions(true)
.make(thumbnailImage);
final JToolTip toolTip = new JToolTip() {
{
setLayout(new BorderLayout());
add(new JLabel(new ImageIcon(img)));
}
public Dimension getPreferredSize() {
return new Dimension(img.getWidth(), img.getHeight());
}
};
return toolTip;
}
内容来源于网络,如有侵权,请联系作者删除!