use of javax.swing.JDialog in project vcell by virtualcell.
the class TestingFrameworkWindowManager method showEditTestCriteriaDialog.
/**
* Insert the method's description here.
* Creation date: (5/14/2004 6:11:35 PM)
*/
@SuppressWarnings("deprecation")
private Object showEditTestCriteriaDialog(JComponent editTCrPanel, Component requester) {
editTCrPanel.setPreferredSize(new java.awt.Dimension(400, 300));
getEditTestCriteriaDialog().setMessage("");
getEditTestCriteriaDialog().setMessage(editTCrPanel);
getEditTestCriteriaDialog().setValue(null);
JDialog d = getEditTestCriteriaDialog().createDialog(requester, "Edit Test Criteria:");
d.setResizable(true);
d.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
DialogUtils.showModalJDialogOnTop(d, requester);
return getEditTestCriteriaDialog().getValue();
}
use of javax.swing.JDialog in project vcell by virtualcell.
the class TestingFrameworkWindowManager method showAddTestCaseDialog.
/**
* Insert the method's description here.
* Creation date: (5/14/2004 6:11:35 PM)
*/
private Object showAddTestCaseDialog(JComponent addTCPanel, Component requester) {
addTCPanel.setPreferredSize(new java.awt.Dimension(600, 200));
getAddTestCaseDialog().setMessage("");
getAddTestCaseDialog().setMessage(addTCPanel);
getAddTestCaseDialog().setValue(null);
JDialog d = getAddTestCaseDialog().createDialog(requester, "New TestCase:");
d.setResizable(true);
d.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
d.setVisible(true);
return getAddTestCaseDialog().getValue();
}
use of javax.swing.JDialog in project vcell by virtualcell.
the class PathwayImportPanel method showDialog.
public void showDialog(JComponent parent, PathwayImportOption pathwayImportOption) {
currentOption = pathwayImportOption;
choosePathwayCardLayout.show(choosePathwayPanel, currentOption.name());
Container owner = parent.getTopLevelAncestor();
String title = "Select Pathway";
boolean modal = true;
dialog = owner instanceof Frame ? new JDialog((Frame) owner, title, modal) : owner instanceof Dialog ? new JDialog((Dialog) owner, title, modal) : new JDialog((Frame) null, title, modal);
dialog.add(this);
dialog.pack();
dialog.setLocationRelativeTo(owner);
dialog.setVisible(true);
}
use of javax.swing.JDialog in project vcell by virtualcell.
the class ElectricalStimulusPanel method graphTimeFunction.
public static void graphTimeFunction(Component owner, Expression expr, SymbolTable symbolTable, ReservedSymbol timeSymbol, String title) {
final TimeFunctionPanel timeFunctionPanel = new TimeFunctionPanel();
try {
timeFunctionPanel.setTimeFunction(getProtocolParameterExprPreview(expr, symbolTable, timeSymbol).flatten().infix());
} catch (Exception e) {
e.printStackTrace();
DialogUtils.showErrorDialog(owner, "For plot preview only simple expressions of time are allowed.", e);
return;
}
JDialog jdialog = new JDialog(JOptionPane.getFrameForComponent(owner), true);
jdialog.setTitle(title);
jdialog.setContentPane(timeFunctionPanel);
jdialog.pack();
BeanUtils.centerOnComponent(jdialog, owner);
DialogUtils.showModalJDialogOnTop(jdialog, owner);
}
use of javax.swing.JDialog in project processdash by dtuma.
the class WBSEditor method save.
private boolean save() {
if (readOnly)
return true;
// finish all editing sessions in progress
stopAllCellEditingSessions();
if (maybeSaveTeamMemberList() == false)
return false;
JDialog dialog = createWaitDialog(frame, "Saving Data...");
SaveThread saver = new SaveThread(dialog);
saver.start();
dialog.setVisible(true);
setDirty(!saver.saveResult);
return saver.saveResult;
}
Aggregations