javax.swing.JDesktopPane.moveToFront()方法的使用及代码示例

x33g5p2x  于2022-01-21 转载在 其他  
字(1.4k)|赞(0)|评价(0)|浏览(179)

本文整理了Java中javax.swing.JDesktopPane.moveToFront()方法的一些代码示例,展示了JDesktopPane.moveToFront()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JDesktopPane.moveToFront()方法的具体详情如下:
包路径:javax.swing.JDesktopPane
类名称:JDesktopPane
方法名:moveToFront

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();

相关文章