@Override public void actionPerformed(ActionEvent e) { final Window parentWindow = SwingUtilities.getWindowAncestor(detailsButton); createDetailsDialog(parentWindow, distanceData).show(); } });
/** * Shows VISAT's about box. */ public void showAboutBox() { final ModalDialog box = createAboutBox(); box.show(); }
@Override public int show() { updateUI(); return super.show(); }
@Override public void actionPerformed(ActionEvent e) { final Object source = e.getSource(); Window window = null; if (source instanceof Component) { window = SwingUtilities.getWindowAncestor((Component) source); } final ModalDialog dialog = new EditTimeSpanDialog(window, timeSeries); dialog.show(); }
@Override public int show() { strategy.updateCheckBoxStates(); return super.show(); }
@Override public int show() { createUI(); return super.show(); }
public int showModalDialog(Window parent, String title) { ModalDialog dialog = new ExpressionPaneDialog(parent, title); return dialog.show(); }
@Override public void actionPerformed(ActionEvent e) { JTextArea wktArea = new JTextArea(30, 40); wktArea.setEditable(false); wktArea.setText(wkt); final JScrollPane scrollPane = new JScrollPane(wktArea); final ModalDialog dialog = new ModalDialog(appContext.getApplicationWindow(), "Coordinate reference system as well known text", scrollPane, ModalDialog.ID_OK, null); dialog.show(); } });
private void show(final EditorContent editorContent) { dialog = new PropertyEditorDialog(editorContent); if (dialog.show() == ModalDialog.ID_OK) { editorContent.changeProperties(); } dialog = null; }
@Override public int show() { availableSpectraListModel.removeElements(selectedSpectraListModel.getAllElements()); return super.show(); }
private void showSystemDialog() { final ModalDialog modalDialog = new ModalDialog(getJDialog(), "System Info", ID_OK, null); final Object[][] sysInfo = getSystemInfo(); final JTable sysTable = new JTable(sysInfo, new String[]{"Property", "Value"}); /*I18N*/ final JScrollPane systemScroll = new JScrollPane(sysTable); systemScroll.setPreferredSize(new Dimension(400, 400)); modalDialog.setContent(systemScroll); modalDialog.show(); }
public boolean showDialog(Window parent, String title, String helpId) { ModalDialog modalDialog = new ModalDialog(parent, title, ModalDialog.ID_OK_CANCEL_HELP, helpId); modalDialog.setContent(this); final int status = modalDialog.show(); modalDialog.getJDialog().dispose(); return status == ModalDialog.ID_OK; }
@Override public int show() { createParameter(); createUI(); updateUI(); return super.show(); }
private void showInformationDialog(String title, Component component) { final ModalDialog modalDialog = new ModalDialog(UIUtils.getRootWindow(parentComponent), title, AbstractDialog.ID_OK, null); /*I18N*/ modalDialog.setContent(component); modalDialog.show(); }
@Override public int show() { for (int i = 0; i < getNumRootPages(); i++) { ConfigPage page = getRootPageAt(i); updatePageUI(page); } return super.show(); }
@Override public int show() { createParameter(); createUI(); updateUI(); return super.show(); }
private void showCreditsDialog() { final ModalDialog modalDialog = new ModalDialog(getJDialog(), "Credits", ID_OK, null); /*I18N*/ final String credits = getCreditsHtml(); final JLabel creditsPane = new JLabel(credits); /*I18N*/ modalDialog.setContent(creditsPane); modalDialog.show(); }
@Override public void actionPerformed(ActionEvent e) { final ModalDialog dialog = new ModalDialog(getAppContext().getApplicationWindow(), "Select Coordinate Reference System", predefinedCrsForm, ModalDialog.ID_OK_CANCEL, null); if (dialog.show() == ModalDialog.ID_OK) { selectedCrsInfo = predefinedCrsForm.getSelectedCrsInfo(); crsCodeField.setText(selectedCrsInfo.toString()); fireCrsChanged(); } } });
@Override public int show() { setContent(createUI()); this.getJDialog().getRootPane().registerKeyboardAction(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { hide(); } }, KeyStroke.getKeyStroke(KeyEvent.VK_ESCAPE, 0), JComponent.WHEN_IN_FOCUSED_WINDOW); getJDialog().setResizable(false); return super.show(); }
@Override public void actionPerformed(ActionEvent e) { final String operationName = model.operationWrapper.getName(); final ModalDialog modalDialog = new ModalDialog(parent, operationName + " - Parameters", ModalDialog.ID_OK_CANCEL, null); final ParameterValueGroup workCopy = model.parameters.clone(); final PropertyContainer propertyContainer = createValueContainer(workCopy); modalDialog.setContent(new PropertyPane(propertyContainer).createPanel()); if (modalDialog.show() == AbstractDialog.ID_OK) { vc.setValue(PARAMETERS, workCopy); } } }