本文整理汇总了Java中com.l2fprod.common.swing.JTaskPane.setOpaque方法的典型用法代码示例。如果您正苦于以下问题:Java JTaskPane.setOpaque方法的具体用法?Java JTaskPane.setOpaque怎么用?Java JTaskPane.setOpaque使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.l2fprod.common.swing.JTaskPane
的用法示例。
在下文中一共展示了JTaskPane.setOpaque方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: installUI
import com.l2fprod.common.swing.JTaskPane; //导入方法依赖的package包/类
public void installUI(JComponent c) {
super.installUI(c);
taskPane = (JTaskPane)c;
taskPane.setLayout(new PercentLayout(PercentLayout.VERTICAL, 14));
taskPane.setBorder(BorderFactory.createEmptyBorder(10, 10, 0, 10));
taskPane.setOpaque(true);
if (taskPane.getBackground() == null
|| taskPane.getBackground() instanceof ColorUIResource) {
taskPane
.setBackground(UIManager.getColor("TaskPane.background"));
}
useGradient = UIManager.getBoolean("TaskPane.useGradient");
if (useGradient) {
gradientStart = UIManager
.getColor("TaskPane.backgroundGradientStart");
gradientEnd = UIManager
.getColor("TaskPane.backgroundGradientEnd");
}
}
示例2: installUI
import com.l2fprod.common.swing.JTaskPane; //导入方法依赖的package包/类
public void installUI(JComponent c) {
super.installUI(c);
taskPane = (JTaskPane) c;
taskPane.setLayout(new PercentLayout(PercentLayout.VERTICAL, 14));
taskPane.setBorder(BorderFactory.createEmptyBorder(10, 10, 0, 10));
taskPane.setOpaque(true);
if (taskPane.getBackground() == null || taskPane.getBackground() instanceof ColorUIResource) {
taskPane.setBackground(UIManager.getColor("TaskPane.background"));
}
useGradient = UIManager.getBoolean("TaskPane.useGradient");
if (useGradient) {
gradientStart = UIManager.getColor("TaskPane.backgroundGradientStart");
gradientEnd = UIManager.getColor("TaskPane.backgroundGradientEnd");
}
}
示例3: buildRootComponent
import com.l2fprod.common.swing.JTaskPane; //导入方法依赖的package包/类
protected JComponent buildRootComponent(AbstractCommand command)
{
JTaskPane pane = new JTaskPane();
pane.setBorder(BorderFactory.createEmptyBorder(0, 0, 0, 0));
pane.setOpaque(false);
return pane;
}