From 299d07a9554a3661d44395aa2c6bad9cecd10bf0 Mon Sep 17 00:00:00 2001 From: Ben Soares Date: Tue, 12 Jul 2022 11:58:35 +0100 Subject: [PATCH] JAL-4034 showConfirmDialog works for both desktop and jalviewjs --- src/jalview/gui/StructureChooser.java | 19 ++----------------- 1 file changed, 2 insertions(+), 17 deletions(-) diff --git a/src/jalview/gui/StructureChooser.java b/src/jalview/gui/StructureChooser.java index a5fb2dd..9ff181b 100644 --- a/src/jalview/gui/StructureChooser.java +++ b/src/jalview/gui/StructureChooser.java @@ -366,27 +366,12 @@ public class StructureChooser extends GStructureChooser // 'cancel' TODO: mock should be OK if (!runThread) { - int answer = JvOptionPane.showOptionDialog(this, - + int answer = JvOptionPane.showConfirmDialog(this, MessageManager.formatMessage( "label.fetch_references_for_3dbeacons", seqsWithoutSourceDBRef.size()), - MessageManager.getString("label.3dbeacons"), - - JvOptionPane.YES_NO_OPTION, - - JvOptionPane.PLAIN_MESSAGE, - - null, - - new Object[] - { MessageManager.getString("action.ok"), - MessageManager.getString("action.cancel") }, - - MessageManager.getString("action.ok") - - ); + JvOptionPane.YES_NO_OPTION, JvOptionPane.PLAIN_MESSAGE); runThread = (answer == JvOptionPane.OK_OPTION); } if (runThread) -- 1.7.10.2