本文整理汇总了Java中org.jdesktop.swingx.JXBusyLabel.setBusyPainter方法的典型用法代码示例。如果您正苦于以下问题:Java JXBusyLabel.setBusyPainter方法的具体用法?Java JXBusyLabel.setBusyPainter怎么用?Java JXBusyLabel.setBusyPainter使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.jdesktop.swingx.JXBusyLabel
的用法示例。
在下文中一共展示了JXBusyLabel.setBusyPainter方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: createComplexBusyLabel
import org.jdesktop.swingx.JXBusyLabel; //导入方法依赖的package包/类
private static JXBusyLabel createComplexBusyLabel() {
JXBusyLabel label = new JXBusyLabel(new Dimension(340, 150));
// default is 100
label.setDelay(100);
MFMBusyPainter painter = new MFMBusyPainter(
new Ellipse2D.Double(0.0d, 0.0d, 15.0d, 15.0d),
new Ellipse2D.Double(10.0d, 10.0d, 125.0d, 125.0d));
painter.setTrailLength(64);
painter.setPoints(192);
painter.setFrame(-1);
painter.setBaseColor(MFMUI.getMFMcolor());
painter.setHighlightColor(Color.orange);
label.setPreferredSize(new Dimension(340, 150));
label.setMinimumSize(new Dimension(340, 150));
label.setIcon(new EmptyIcon(150, 150));
label.setBusyPainter(painter);
label.setFont(new Font(label.getFont().getName(), Font.BOLD, 24));
return label;
}
示例2: buildBusyLabel
import org.jdesktop.swingx.JXBusyLabel; //导入方法依赖的package包/类
private JXBusyLabel buildBusyLabel() {
busyLabel = new JXBusyLabel();
BusyPainter busyPainter = new BusyPainter();
busyPainter.setBaseColor(Colors.navy);
busyPainter.setHighlightColor(Colors.tableRowColor);
busyLabel.setBusyPainter(busyPainter);
busyLabel.setDelay(1);
busyLabel.setVisible(false);
return busyLabel;
}
示例3: buildBusyLabel
import org.jdesktop.swingx.JXBusyLabel; //导入方法依赖的package包/类
private JXBusyLabel buildBusyLabel() {
JXBusyLabel busyLabel = new JXBusyLabel();
BusyPainter busyPainter = new BusyPainter();
busyPainter.setBaseColor(Colors.navy);
busyPainter.setHighlightColor(Colors.tableRowColor);
busyLabel.setBusyPainter(busyPainter);
busyLabel.setDelay(1);
return busyLabel;
}