本文整理了Java中javax.swing.JInternalFrame.setBorder()
方法的一些代码示例,展示了JInternalFrame.setBorder()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JInternalFrame.setBorder()
方法的具体详情如下:
包路径:javax.swing.JInternalFrame
类名称:JInternalFrame
方法名:setBorder
暂无
代码示例来源:origin: com.jtattoo/JTattoo
public void setPalette(boolean isPalette) {
if (isPalette) {
frame.setBorder(UIManager.getBorder(FRAME_PALETTE_BORDER));
} else {
frame.setBorder(UIManager.getBorder(FRAME_BORDER));
}
getTitlePane().setPalette(isPalette);
}
代码示例来源: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: stackoverflow.com
public static void addOnScreen(JInternalFrame inFrame, String title) {
//border for the internal frame
javax.swing.plaf.InternalFrameUI ifu = inFrame.getUI();
((javax.swing.plaf.basic.BasicInternalFrameUI) ifu).setNorthPane(null);
Border b1 = new LineBorder(new Color(114, 139, 173), 3, true) {
};
tabbedPane.setBounds(0, 0, jDesktopPane1.getWidth(), jDesktopPane1.getHeight());
inFrame.setLocation(0, 0);
inFrame.setSize(jDesktopPane1.getWidth(), jDesktopPane1.getHeight());
inFrame.setBorder(b1);
JPanel jp = new JPanel();
jp.setLayout(new GridLayout());
jp.setOpaque(true);
jp.add(inFrame);
tabbedPane.addTab(title, jp);
tabbedPane.setSelectedComponent(jp);
inFrame.requestFocusInWindow();
inFrame.setVisible(true);
tabbedPane.setVisible(true);
}
内容来源于网络,如有侵权,请联系作者删除!