List of usage examples for javax.swing JDialog setVisible
public void setVisible(boolean b)
From source file:org.cytoscape.dyn.internal.graphMetrics.GraphMetricsResultsPanel.java
/** * //w w w. j a v a 2s. c o m */ public void enlargeChart() { chartPanelForDialog = new ChartPanel(this.timeSeries); JDialog dialog = new JDialog(cyActivator.getCySwingAppication().getJFrame(), "Dynamic Graph Metrics", false); dialog.getContentPane().add(chartPanelForDialog); dialog.pack(); dialog.setLocationRelativeTo(cyActivator.getCySwingAppication().getJFrame()); dialog.setVisible(true); }
From source file:es.udc.fic.medregatas.view.MainAppjFrame.java
private void AcercaDeMenuItemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_AcercaDeMenuItemActionPerformed JDialog dialog = new AboutJDialog(this, true); dialog.setLocationRelativeTo(null);//from ww w. ja va 2 s . c om dialog.setVisible(true); }
From source file:medsavant.uhn.cancer.UserCommentApp.java
private void replyToOntology(VariantRecord vr, OntologyTerm ot) { JDialog acd = new AddNewCommentDialog(MedSavantFrame.getInstance(), vr, ot); acd.setVisible(true); }
From source file:com.anrisoftware.prefdialog.spreadsheetimportdialog.dialog.OpenSpreadsheetImportDialogAction.java
@Override protected SpreadsheetImportProperties openDialogAWT(JDialog dialog, AbstractCreateDialogWorker<JDialog> dialogWorker) throws CreateDialogWorkerException { SpreadsheetImportDialogWorker w = (SpreadsheetImportDialogWorker) dialogWorker; SpreadsheetImportDialog importDialog = w.getImportDialog(); notNull(importDialog, "importDialog=null"); dialog.setVisible(true); if (importDialog.getStatus() == Status.APPROVED) { return importDialog.getProperties(); } else {//from w w w . j a v a 2 s . co m return null; } }
From source file:es.udc.fic.medregatas.view.MainAppjFrame.java
private void newBarcoMenuItemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_newBarcoMenuItemActionPerformed JDialog dialog = new NuevoBarcoJDialog(this, true); dialog.setLocationRelativeTo(null);/*from w w w . java 2s. c o m*/ dialog.setVisible(true); }
From source file:medsavant.uhn.cancer.UserCommentApp.java
private void editStatus(UserCommentGroup lcg, UserComment lc) { JDialog scd = new SetCommentStatusDialog(MedSavantFrame.getInstance(), lcg, lc); scd.setVisible(true); }
From source file:esmska.gui.AboutFrame.java
private void licenseButtonActionPerformed(ActionEvent evt) {//GEN-FIRST:event_licenseButtonActionPerformed //show licence try {//from www . jav a 2s . c om logger.fine("Showing license..."); String license = IOUtils.toString(getClass().getResourceAsStream(RES + "license.txt"), "UTF-8"); final String agpl = IOUtils.toString(getClass().getResourceAsStream(RES + "gnu-agpl.txt"), "UTF-8"); license = MiscUtils.escapeHtml(license); license = license.replaceAll("GNU Affero General Public License", "<a href=\"agpl\">GNU Affero General Public License</a>"); final JTextPane tp = new JTextPane(); tp.setContentType("text/html; charset=UTF-8"); tp.setText("<html><pre>" + license + "</pre></html>"); tp.setEditable(false); Dimension d = Toolkit.getDefaultToolkit().getScreenSize(); tp.setPreferredSize(new Dimension((int) d.getWidth() / 2, (int) d.getHeight() / 2)); //reasonable size tp.setCaretPosition(0); //make links clickable tp.addHyperlinkListener(new HyperlinkListener() { @Override public void hyperlinkUpdate(final HyperlinkEvent e) { if (e.getEventType() == HyperlinkEvent.EventType.ACTIVATED) { logger.fine("Showing GNU AGPL..."); tp.setText(null); tp.setContentType("text/plain"); tp.setText(agpl); tp.setCaretPosition(0); } } }); String option = l10n.getString("AboutFrame.Acknowledge"); JOptionPane op = new JOptionPane(new JScrollPane(tp), JOptionPane.INFORMATION_MESSAGE, JOptionPane.DEFAULT_OPTION, null, new Object[] { option }, option); JDialog dialog = op.createDialog(this, l10n.getString("AboutFrame.License")); dialog.setResizable(true); dialog.pack(); dialog.setVisible(true); } catch (IOException ex) { logger.log(Level.WARNING, "Could not show license", ex); } }
From source file:es.udc.fic.medregatas.view.MainAppjFrame.java
private void NewTipoMenuItemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_NewTipoMenuItemActionPerformed Tipo aEditar = null;/*w w w .j av a 2s. c o m*/ JDialog dialog = new NuevoTipoJDialog(this, true, aEditar); dialog.setLocationRelativeTo(null); dialog.setVisible(true); }
From source file:es.udc.fic.medregatas.view.MainAppjFrame.java
private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed JDialog dialog = new RegistrarDatosRegataJDialog(this, null); dialog.setLocationRelativeTo(null);//from w ww . java 2 s . co m dialog.setVisible(true); regatasList.setListData(regataService.getRegatas().toArray()); }
From source file:es.udc.fic.medregatas.view.MainAppjFrame.java
private void newRegataMenuItemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_newRegataMenuItemActionPerformed JDialog dialog = new RegistrarDatosRegataJDialog(this, null); dialog.setLocationRelativeTo(null);// w w w. j a va 2 s .c o m dialog.setVisible(true); regatasList.setListData(regataService.getRegatas().toArray()); }