本文整理了Java中javax.swing.JInternalFrame.setOpaque()
方法的一些代码示例,展示了JInternalFrame.setOpaque()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JInternalFrame.setOpaque()
方法的具体详情如下:
包路径:javax.swing.JInternalFrame
类名称:JInternalFrame
方法名:setOpaque
暂无
代码示例来源:origin: com.github.insubstantial/substance
@Override
protected void installComponents() {
if (SubstanceCoreUtilities.isRoundedCorners(frame)) {
frame.setOpaque(false);
}
super.installComponents();
}
代码示例来源:origin: khuxtable/seaglass
public void installDefaults() {
// We want to draw rounded corners, so the internal frame must not be
// opaque. LookAndFeel.installProperty doesn't seem to work here.
frame.setOpaque(false);
frame.setBorder(BorderFactory.createEmptyBorder(1, 2, 2, 2));
frame.setLayout(internalFrameLayout = createLayoutManager());
updateStyle(frame);
}
代码示例来源:origin: com.eas.platypus/platypus-js-forms
@ScriptFunction
public void setOpacity(float aValue) {
opacity = aValue;
if (surface instanceof JDialog) {
((JDialog) surface).setOpacity(opacity);
}
if (surface instanceof JInternalFrame) {
((JInternalFrame) surface).setOpaque(opacity > 0.5f);
}
if (surface instanceof JFrame) {
((JFrame) surface).setOpacity(opacity);
}
}
代码示例来源:origin: com.github.insubstantial/substance
frame.setOpaque(false);
代码示例来源:origin: stackoverflow.com
public class InternalFrameTest extends JFrame {
public InternalFrameTest() {
JDesktopPane desktop = new JDesktopPane();
JInternalFrame frame = new JInternalFrame("AHHHH!!!!", true);
frame.setSize(300, 300);
frame.setVisible(true);
frame.setOpaque(false);
desktop.add(frame);
setContentPane(desktop);
setSize(600, 600);
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
setVisible(true);
}
public static void main(String[] args) {
try {
UIManager.setLookAndFeel(NimbusLookAndFeel.class.getName());
} catch (ClassNotFoundException|InstantiationException
|IllegalAccessException|UnsupportedLookAndFeelException e) {
e.printStackTrace();
}
UIManager.put("InternalFrame:InternalFrameTitlePane[Enabled].textForeground", Color.RED);
new InternalFrameTest();
}
}
代码示例来源:origin: com.googlecode.gstreamer-java/gstreamer-java
frame.setOpaque(false);
frame.setContentPane(player);
frame.pack();
代码示例来源:origin: palantir/Cinch
left.setSize(400, 800);
left.setVisible(true);
left.setOpaque(true);
left.getContentPane().setBackground(ORANGE);
left.setDoubleBuffered(true);
right.setSize(400, 800);
right.setVisible(true);
right.setOpaque(true);
right.getContentPane().setBackground(Color.BLUE);
right.setDoubleBuffered(true);
内容来源于网络,如有侵权,请联系作者删除!