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

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

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

JDialog.invalidate介绍

暂无

代码示例

代码示例来源:origin: groovy/groovy-core

CLOSE_BUTTON.setPreferredSize(d);
FIND_REPLACE_DIALOG.invalidate();
FIND_REPLACE_DIALOG.repaint();
FIND_REPLACE_DIALOG.pack();

代码示例来源:origin: bcdev/beam

@Override
public void setCurrentPage(AssistantPage currentPage) {
  this.currentPage = currentPage;
  pagePanel.removeAll();
  titleLabel.setText(currentPage.getPageTitle());
  pagePanel.add(currentPage.getPageComponent(), BorderLayout.CENTER);
  updateState();
  dialog.invalidate();
  dialog.validate();
  dialog.repaint();
}

代码示例来源:origin: senbox-org/snap-desktop

@Override
public void setCurrentPage(AssistantPage currentPage) {
  this.currentPage = currentPage;
  pagePanel.removeAll();
  titleLabel.setText(currentPage.getPageTitle());
  pagePanel.add(currentPage.getPageComponent(), BorderLayout.CENTER);
  updateState();
  dialog.invalidate();
  dialog.validate();
  dialog.repaint();
}

代码示例来源:origin: MinecraftForge/Installer

dialog.invalidate();
dialog.pack();

代码示例来源:origin: org.codehaus.groovy/groovy-console

CLOSE_BUTTON.setPreferredSize(d);
FIND_REPLACE_DIALOG.invalidate();
FIND_REPLACE_DIALOG.repaint();
FIND_REPLACE_DIALOG.pack();

代码示例来源:origin: org.kohsuke.droovy/groovy

CLOSE_BUTTON.setPreferredSize(d);
FIND_REPLACE_DIALOG.invalidate();
FIND_REPLACE_DIALOG.repaint();
FIND_REPLACE_DIALOG.pack();

代码示例来源:origin: org.codehaus.groovy/groovy-all-minimal

CLOSE_BUTTON.setPreferredSize(d);
FIND_REPLACE_DIALOG.invalidate();
FIND_REPLACE_DIALOG.repaint();
FIND_REPLACE_DIALOG.pack();

代码示例来源:origin: com.thinkaurelius.groovy-shaded-asm/groovy-shaded-asm

CLOSE_BUTTON.setPreferredSize(d);
FIND_REPLACE_DIALOG.invalidate();
FIND_REPLACE_DIALOG.repaint();
FIND_REPLACE_DIALOG.pack();

代码示例来源:origin: org.codehaus.groovy/groovy-jdk14

CLOSE_BUTTON.setPreferredSize(d);
FIND_REPLACE_DIALOG.invalidate();
FIND_REPLACE_DIALOG.repaint();
FIND_REPLACE_DIALOG.pack();

代码示例来源:origin: otros-systems/otroslogviewer

protected JDialog createDialog(Component parent) throws HeadlessException {
 Frame toUse = (Frame) SwingUtilities.getAncestorOfClass(Frame.class, parent);
 final JDialog dialog = new JDialog(toUse);
 dialog.getContentPane().add(vfsBrowser);
 dialog.addWindowListener(new WindowAdapter() {
  public void windowClosing(WindowEvent e) {
   cancelSelection();
  }
 });
 vfsBrowser.setApproveAction(new AbstractAction(Messages.getMessage("general.openButtonText")) {
  @Override
  public void actionPerformed(ActionEvent actionEvent) {
   returnValue = ReturnValue.Approve;
   dialog.dispose();
  }
 });
 vfsBrowser.setCancelAction(new AbstractAction(Messages.getMessage("general.cancelButtonText")) {
  @Override
  public void actionPerformed(ActionEvent actionEvent) {
   cancelSelection();
   dialog.dispose();
  }
 });
 dialog.setModal(true);
 dialog.invalidate();
 dialog.repaint();
 return dialog;
}

相关文章

JDialog类方法