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

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

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

JDialog.getGraphics介绍

暂无

代码示例

代码示例来源:origin: net.sf.sf3jswing/kernel-core

private static long _displayWaiting(String message, JComponent label, Container parent) {
    final JDialog display = _showLightPopupMessage(label, null, parent, UI_CENTER, false);
    long id;
    UIMessage.display.put(id = System.nanoTime(), display);
    JProgressBar jpb = JXAenvUtils._JTimeProgressBar();
    UIMessage.jpb.put(id, jpb);
    jpb.setStringPainted(false);
    jpb.setDoubleBuffered(true);
    jpb.setIndeterminate(true);
    _makeUncloseable(display);
    display.setTitle("Please wait !");
    display.setResizable(false);
    display.setAlwaysOnTop(true);
    display.getContentPane().setLayout(new GridBagLayout());
    GridBagConstraints c = new GridBagConstraints();
    c.insets = new Insets(5, 5, 5, 5);
    c.gridwidth = c.REMAINDER;
    c.fill = c.HORIZONTAL;
    c.weightx = .5;
    display.getContentPane().add(new JLabel(message), c);
    c.gridwidth = 1;
    display.getContentPane().add(label, c);
    c.gridwidth = c.REMAINDER;
    c.weightx = 1.0;
    display.getContentPane().add(jpb, c);
    display.pack();
    display.setVisible(true);
    display.update(display.getGraphics());
    return id;
}

代码示例来源:origin: net.sf.sf3jswing/kernel-core

display.pack();
display.setVisible(true);
display.update(display.getGraphics());
return ct;

代码示例来源:origin: com.fifesoft.rtext/fife.common

Graphics h = dummyDialog.getGraphics();
numPages = 0;
try {

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

dialog.paint(dialog.getGraphics());

相关文章

JDialog类方法