javax.swing.JDialog.setGlassPane()方法的使用及代码示例

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

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

JDialog.setGlassPane介绍

暂无

代码示例

代码示例来源:origin: stackoverflow.com

((JDialog) w).setGlassPane(glassPane);

代码示例来源:origin: org.bidib.jbidib.com.vldocking/vldocking

public void endDrag() {
    Window aboveWindow = this.window;//SwingUtilities.getWindowAncestor(desktop);
    if(aboveWindow instanceof JFrame) {
      ((JFrame) aboveWindow).setGlassPane(oldGlassPane);
    } else if(aboveWindow instanceof JDialog) {
      ((JDialog) aboveWindow).setGlassPane(oldGlassPane);
    }
    oldGlassPane.setVisible(oldGlassPaneVisible);
    isDragStarted = false;
  }
}

代码示例来源:origin: com.synaptix/SynaptixSwing

public static void setGlassPaneForWindow(Window window, Component glassPane) {
  if (window instanceof JDialog) {
    ((JDialog) window).setGlassPane(glassPane);
  } else if (window instanceof JFrame) {
    ((JFrame) window).setGlassPane(glassPane);
  }
}

代码示例来源:origin: org.bidib.jbidib.com.vldocking/vldocking

public void endDrag() {
    heavyShape.setVisible(false);
    Window aboveWindow = this.window;//SwingUtilities.getWindowAncestor(desktop);
    if(aboveWindow instanceof JFrame) {
      ((JFrame) aboveWindow).setGlassPane(oldGlassPane);
    } else if(aboveWindow instanceof JDialog) {
      ((JDialog) aboveWindow).setGlassPane(oldGlassPane);
    }
    oldGlassPane.setVisible(oldGlassPaneVisible);
    isDragStarted = false;
  }
}

代码示例来源:origin: org.fudaa.business/fudaa-common-corba

/**
 * Cette methode sert a initialise un glasspane sur le dialogue parent.
 * @param _d le dialogue contenant ce panneau
 */
public void setDialog(final JDialog _d) {
 if (isSearch_) {
  if (glassPane_ == null) {
   glassPane_ = new BuGlassPaneStop();
  }
  _d.setGlassPane(glassPane_);
  glassPane_.setVisible(true);
 }
}

代码示例来源:origin: org.fudaa.framework.ebli/ebli-common

void startComputing() {
 if (owner_ != null) {
  stop_ = new BuGlassPaneStop();
  if (owner_ != null) {
   owner_.setGlassPane(stop_);
   stop_.setVisible(true);
   owner_.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));
  }
 }
}

代码示例来源:origin: notzippy/JALOPY2-MAIN

public void focusLost(FocusEvent ev)
  {
    pane.setVisible(false);
    if (frame != null)
    {
      frame.setGlassPane(glassPane);
      frame = null;
    }
    else if (dialog != null)
    {
      dialog.setGlassPane(glassPane);
      dialog = null;
    }
    glassPane = null;
  }
};

代码示例来源:origin: org.bidib.jbidib.com.vldocking/vldocking

public void startDrag(DockableDragSource source) {
  if(isDragStarted || source == null) {
    // safety checks
    return;
  }
  Window aboveWindow = this.window;
  isDragStarted = true;
  if(aboveWindow instanceof JFrame) {
    oldGlassPane = ((JFrame) aboveWindow).getGlassPane();
    oldGlassPaneVisible = oldGlassPane.isVisible();
    ((JFrame) aboveWindow).setGlassPane(dragGlassPane);
    dragGlassPane.setVisible(true);
  } else if(aboveWindow instanceof JDialog) {
    oldGlassPane = ((JDialog) aboveWindow).getGlassPane();
    oldGlassPaneVisible = oldGlassPane.isVisible();
    ((JDialog) aboveWindow).setGlassPane(dragGlassPane);
    dragGlassPane.setVisible(true);
  }
}

代码示例来源:origin: notzippy/JALOPY2-MAIN

dialog.setGlassPane(pane);
pane.setVisible(true);

代码示例来源:origin: stackoverflow.com

dialog.setGlassPane(dialogGlas);
dialogGlas.setVisible(true);
dialog.setVisible(true);

代码示例来源:origin: org.fudaa.framework.ctulu/ctulu-ui

final int[] colToWrite = col;
final int[] rowToWrite = row;
parentDial_.setGlassPane(s);
parentDial_.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));
s.setVisible(true);

代码示例来源:origin: net.sf.cuf/cuf-swing

dialog.setGlassPane(mGlassPane);

代码示例来源:origin: org.bidib.jbidib.com.vldocking/vldocking

oldGlassPane = ((JDialog) aboveWindow).getGlassPane();
oldGlassPaneVisible = oldGlassPane.isVisible();
((JDialog) aboveWindow).setGlassPane(dragGlassPane);
dragGlassPane.setVisible(true);

相关文章

JDialog类方法