本文整理了Java中javax.swing.JInternalFrame.toBack()
方法的一些代码示例,展示了JInternalFrame.toBack()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JInternalFrame.toBack()
方法的具体详情如下:
包路径:javax.swing.JInternalFrame
类名称:JInternalFrame
方法名:toBack
暂无
代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/skinlf
/**
* Description of the Method
*
* @param e Description of Parameter
*/
public void mouseDragged(MouseEvent e) {
try {
// do not resize the frame if it is shaded
JComponent pane = getNorthPane();
if (e.getSource()==frame &&
pane instanceof SkinTitlePane &&
((SkinTitlePane) pane).getWindow().isShaded()) {
return;
}
super.mouseDragged(e);
} catch (NullPointerException ex) {
// the nullpointerexception may be thrown by bug id 4383371
// if parentBounds is not set
// sending the frame back and front should fix the problem as an Ancestor propertychangeevent
// will be sent
// this bug has been fixed in JDK1.3
// http://developer.java.sun.com/developer/bugParade/bugs/4383371.html
((JInternalFrame) e.getSource()).toBack();
((JInternalFrame) e.getSource()).toFront();
}
}
}
代码示例来源:origin: fcrepo3/fcrepo
public Component add(JInternalFrame frame) {
JInternalFrame[] array = getAllFrames();
Point p;
Component retval = super.add(frame);
checkDesktopSize();
if (array.length > 0) {
p = array[0].getLocation();
p.x = p.x + FRAME_OFFSET;
p.y = p.y + FRAME_OFFSET;
} else {
p = new Point(0, 0);
}
frame.setLocation(p.x, p.y);
moveToFront(frame);
frame.setVisible(true);
try {
frame.setSelected(true);
} catch (PropertyVetoException e) {
frame.toBack();
}
return retval;
}
内容来源于网络,如有侵权,请联系作者删除!