// Clicking the close button on a primary window deletes the cell
if (isPrimary) {
// Display a confirmation dialog to make sure we really want to delete the cell.
App2D app = viewWindow.getApp();
String message = BUNDLE.getString("Quit_Message");
message = MessageFormat.format(message, app.getName());
int result = JOptionPane.showConfirmDialog(
JmeClientMain.getFrame().getFrame(),
message, BUNDLE.getString("Confirm_Quit"),
JOptionPane.YES_NO_OPTION);
if (result == JOptionPane.NO_OPTION) {