diff --git a/gui/src/main/java/io/bisq/gui/main/disputes/trader/TraderDisputeView.java b/gui/src/main/java/io/bisq/gui/main/disputes/trader/TraderDisputeView.java index a8689822628..f8666d64d1a 100644 --- a/gui/src/main/java/io/bisq/gui/main/disputes/trader/TraderDisputeView.java +++ b/gui/src/main/java/io/bisq/gui/main/disputes/trader/TraderDisputeView.java @@ -715,6 +715,12 @@ public ListCell call(ListView { + if (2 > event.getClickCount()) { + return; + } + GUIUtil.showSelectableTextModal(headerLabel.getText(), messageLabel.getText()); + }); } @Override diff --git a/gui/src/main/java/io/bisq/gui/util/GUIUtil.java b/gui/src/main/java/io/bisq/gui/util/GUIUtil.java index 78e128343d1..84a83bcdd69 100644 --- a/gui/src/main/java/io/bisq/gui/util/GUIUtil.java +++ b/gui/src/main/java/io/bisq/gui/util/GUIUtil.java @@ -46,16 +46,15 @@ import io.bisq.gui.main.overlays.popups.Popup; import io.bisq.network.p2p.P2PService; import javafx.beans.property.DoubleProperty; -import javafx.collections.ObservableList; import javafx.geometry.Orientation; import javafx.scene.Node; +import javafx.scene.Scene; import javafx.scene.control.ScrollBar; +import javafx.scene.control.TextArea; import javafx.scene.control.Tooltip; import javafx.scene.layout.Pane; import javafx.scene.layout.Region; -import javafx.stage.DirectoryChooser; -import javafx.stage.FileChooser; -import javafx.stage.Stage; +import javafx.stage.*; import javafx.util.StringConverter; import lombok.extern.slf4j.Slf4j; import org.bitcoinj.core.Address; @@ -64,7 +63,6 @@ import org.bitcoinj.uri.BitcoinURI; import org.bitcoinj.wallet.DeterministicSeed; -import javax.annotation.Nullable; import java.io.File; import java.io.FileOutputStream; import java.io.IOException; @@ -73,9 +71,9 @@ import java.net.URISyntaxException; import java.net.URLEncoder; import java.nio.file.Paths; -import java.util.*; +import java.util.ArrayList; +import java.util.List; import java.util.concurrent.TimeUnit; -import java.util.stream.Collectors; @Slf4j public class GUIUtil { @@ -446,4 +444,22 @@ public static void restoreSeedWords(DeterministicSeed seed, WalletsManager walle .show(); })); } + + public static void showSelectableTextModal(String title, String text) { + TextArea textArea = new TextArea(); + textArea.setText(text); + textArea.setEditable(false); + textArea.setWrapText(true); + textArea.setPrefSize(800, 600); + + Scene scene = new Scene(textArea); + Stage stage = new Stage(); + if (null != title) { + stage.setTitle(title); + } + stage.setScene(scene); + stage.initModality(Modality.NONE); + stage.initStyle(StageStyle.UTILITY); + stage.show(); + } }