本文整理了Java中javax.swing.JDesktopPane.moveToFront()
方法的一些代码示例,展示了JDesktopPane.moveToFront()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JDesktopPane.moveToFront()
方法的具体详情如下:
包路径:javax.swing.JDesktopPane
类名称:JDesktopPane
方法名:moveToFront
暂无
代码示例来源:origin: xyz.cofe/docking-frames-core
public void toFront(){
desktop.moveToFront( dialog );
}
代码示例来源:origin: org.opentcs.thirdparty.dockingframes/docking-frames-core
public void toFront(){
desktop.moveToFront( dialog );
}
代码示例来源:origin: magefree/mage
desktopPane.moveToFront(frame);
activeFrame.setBounds(0, 0, desktopPane.getWidth(), desktopPane.getHeight());
activeFrame.revalidate();
代码示例来源:origin: org.jclarion/clarion-runtime
private void setPosition(int ratio)
{
Dimension preferredSize = component.getPreferredSize();
JDesktopPane pane = (JDesktopPane)component.getParent();
JScrollPane scroll = (JScrollPane)pane.getParent().getParent();
JViewport port = scroll.getViewport();
Rectangle bounds = port.getViewRect();
component.setLocation(
bounds.x+bounds.width-preferredSize.width,
bounds.y+bounds.height-preferredSize.height*ratio/100);
if (!component.isVisible()) {
component.setVisible(true);
pane.moveToFront(component);
}
component.repaint();
}
代码示例来源:origin: robo-code/robocode
getDesktopPane().moveToFront(internalFrame);
if (internalFrame instanceof EditWindow) {
((EditWindow) internalFrame).getEditorPane().requestFocus();
内容来源于网络,如有侵权,请联系作者删除!