本文整理了Java中javax.swing.JDialog.repaint()
方法的一些代码示例,展示了JDialog.repaint()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JDialog.repaint()
方法的具体详情如下:
包路径:javax.swing.JDialog
类名称:JDialog
方法名:repaint
暂无
代码示例来源:origin: libgdx/libgdx
@Override
public void actionPerformed (ActionEvent arg0) {
if(editor.isUsingDefaultTexture()) {
JOptionPane.showMessageDialog(editor, "Load a Texture or an Atlas first.");
return;
}
TextureAtlas atlas = editor.getAtlas();
if(atlas != null)
regionPickerPanel.setAtlas(atlas);
else
regionPickerPanel.setTexture(editor.getTexture());
regionPickerPanel.revalidate();
regionPickerPanel.repaint();
regionSelectDialog.validate();
regionSelectDialog.repaint();
regionSelectDialog.pack();
regionSelectDialog.setVisible(true);
}
});
代码示例来源:origin: libgdx/libgdx
@Override
public void actionPerformed (ActionEvent arg0) {
if(editor.isUsingDefaultTexture()) {
JOptionPane.showMessageDialog(editor, "Load a Texture or an Atlas first.");
return;
}
TextureAtlas atlas = editor.getAtlas();
if(atlas != null)
regionPickerPanel.setAtlas(atlas);
else
regionPickerPanel.setTexture(editor.getTexture());
regionPickerPanel.revalidate();
regionPickerPanel.repaint();
regionSelectDialog.validate();
regionSelectDialog.repaint();
regionSelectDialog.pack();
regionSelectDialog.setVisible(true);
}
});
代码示例来源:origin: groovy/groovy-core
FIND_REPLACE_DIALOG.repaint();
FIND_REPLACE_DIALOG.pack();
代码示例来源:origin: nz.ac.waikato.cms.weka/weka-stable
@Override
public void actionPerformed(ActionEvent ae) {
tm.randomize();
dlg.repaint();
}
});
代码示例来源:origin: org.cytoscape/swing-application-impl
public void actionPerformed(ActionEvent e) {
panel.incrementYPos();
dialog.repaint();
}
};
代码示例来源:origin: protegeproject/protege
public void resetButtonStates(){
wizardController.resetButtonsToPanelRules();
wizardDialog.repaint();
}
代码示例来源:origin: Waikato/weka-trunk
@Override
public void actionPerformed(ActionEvent ae) {
tm.randomize();
dlg.repaint();
}
});
代码示例来源:origin: org.protege/protege-editor-core-application
public void resetButtonStates(){
wizardController.resetButtonsToPanelRules();
wizardDialog.repaint();
}
代码示例来源:origin: edu.stanford.protege/org.protege.editor.core.application
public void resetButtonStates(){
wizardController.resetButtonsToPanelRules();
wizardDialog.repaint();
}
代码示例来源:origin: org.verapdf.apps/gui
private void removeLineFromMainPanel(int index) {
if (index >= 0 && index < this.layoutPanels.size()) {
this.assertionsPanel.remove(index);
this.featureTypes.remove(index);
this.features.remove(index);
this.operations.remove(index);
this.arguments.remove(index);
this.removeLineButtons.remove(index);
this.layoutPanels.remove(index);
this.dialog.revalidate();
this.dialog.repaint();
}
}
代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/skinlf
/**
* Sets the Selected attribute of the SkinWindowWindow object
*
* @param b The new Selected value
*/
public void setSelected(boolean b) {
if (b) {
if (frame != null) {
frame.repaint();
} else if (dialog != null) {
dialog.repaint();
}
}
this.selected = b;
}
代码示例来源:origin: org.ihtsdo/wb-api
@Override
public void itemStateChanged(ItemEvent e) {
if (e.getStateChange() == ItemEvent.DESELECTED) {
attachments.remove(file);
layoutComponents();
wizard.getDialog().pack();
wizard.getDialog().repaint();
}
}
}
代码示例来源:origin: org.ihtsdo/wb-api
public void removeSelectedReviewer(String reviewer) {
selectedReviewers.remove(reviewer);
layoutComponents();
wizard.getDialog().pack();
wizard.getDialog().repaint();
}
代码示例来源:origin: org.ihtsdo/wb-api
public void removeAllSelectedReviewers() {
selectedReviewers.clear();
layoutComponents();
wizard.getDialog().pack();
wizard.getDialog().repaint();
}
代码示例来源:origin: net.sf.sf3jswing/kernel-core
private static long _setProgressVisibility(long id, boolean visibility, boolean dispose) {
final JDialog display;
final JProgressBar jpb;
if (id == 0) {
return 0;
}
if (!(UIMessage.jpb.containsKey(id) || UIMessage.display.containsKey(id))) {
System.err.println(JXAenvUtils.log("UIMessage : you must call int displayProgress() before setProgressVisibility(int) or maybe the progressBar has been killed by another one!", LVL.APP_WRN));
return id;
}
display = UIMessage.display.get(id);
jpb = UIMessage.jpb.get(id);
if (jpb != null) {
jpb.setVisible(visibility);
}
if (display != null) {
display.setVisible(visibility);
if (dispose) {
display.dispose();
} else {
display.repaint();
}
}
return id;
}
代码示例来源:origin: de.dfki.mary/marytts-transcription
private void helpMenuItemActionPerformed(java.awt.event.ActionEvent evt) {// GEN-FIRST:event_helpMenuItemActionPerformed
try {
htmlEditor.setContentType("text/html; charset=UTF-8");
htmlEditor
.read(new InputStreamReader(TranscriptionGUI.class.getResourceAsStream("instructions.html"), "UTF-8"), null);
htmlEditor.setPreferredSize(new Dimension(500, 400));
htmlEditor.setEditable(true);
htmlEditor.updateUI();
startUpHelpDialog.setSize(new Dimension(700, 500));
startUpHelpDialog.repaint();
closeHelp.grabFocus();
startUpHelpDialog.setVisible(true);
startUpHelpDialog.repaint();
} catch (IOException e) {
e.printStackTrace();
System.out.println("Could not read file : " + e.getMessage());
}
}// GEN-LAST:event_helpMenuItemActionPerformed
代码示例来源: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: org.verapdf.apps/gui
public boolean showDialog(Component parent) {
Frame owner = parent instanceof Frame ? (Frame) parent
: (Frame) SwingUtilities.getAncestorOfClass(Frame.class, parent);
this.ok = false;
if (this.dialog == null || this.dialog.getOwner() != owner) {
this.dialog = new JDialog(owner, true);
this.dialog.setResizable(false);
this.dialog.add(this);
this.dialog.getRootPane().setDefaultButton(this.okButton);
this.dialog.pack();
this.dialog.setTitle(GUIConstants.POLICY_TITLE);
}
this.dialog.setLocation(GUIConstants.POLICY_DIALOG_COORD_X, GUIConstants.POLICY_DIALOG_COORD_Y);
this.dialog.setVisible(true);
this.dialog.repaint();
return this.ok;
}
代码示例来源:origin: com.badlogicgames.gdx/gdx-tools
@Override
public void actionPerformed (ActionEvent arg0) {
if(editor.isUsingDefaultTexture()) {
JOptionPane.showMessageDialog(editor, "Load a Texture or an Atlas first.");
return;
}
TextureAtlas atlas = editor.getAtlas();
if(atlas != null)
regionPickerPanel.setAtlas(atlas);
else
regionPickerPanel.setTexture(editor.getTexture());
regionPickerPanel.revalidate();
regionPickerPanel.repaint();
regionSelectDialog.validate();
regionSelectDialog.repaint();
regionSelectDialog.pack();
regionSelectDialog.setVisible(true);
}
});
内容来源于网络,如有侵权,请联系作者删除!