本文整理了Java中javax.swing.JDialog.invalidate()
方法的一些代码示例,展示了JDialog.invalidate()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JDialog.invalidate()
方法的具体详情如下:
包路径:javax.swing.JDialog
类名称: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;
}
内容来源于网络,如有侵权,请联系作者删除!