From 8ff705417350463e66b4c09262db5e2b92cecd07 Mon Sep 17 00:00:00 2001 From: rusefi Date: Fri, 7 Aug 2020 21:26:13 -0400 Subject: [PATCH] TS SD integration #1653 --- .../src/main/java/com/rusefi/ts_plugin/ConnectPanel.java | 2 +- .../src/main/java/com/rusefi/ts_plugin/SdCardReader.java | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/java_tools/ts_plugin/src/main/java/com/rusefi/ts_plugin/ConnectPanel.java b/java_tools/ts_plugin/src/main/java/com/rusefi/ts_plugin/ConnectPanel.java index 7d952e5a08..9358aba177 100644 --- a/java_tools/ts_plugin/src/main/java/com/rusefi/ts_plugin/ConnectPanel.java +++ b/java_tools/ts_plugin/src/main/java/com/rusefi/ts_plugin/ConnectPanel.java @@ -110,7 +110,7 @@ public class ConnectPanel { controllerConnector.startAndConnect(autoDetectedPort, new ConnectionStateListener() { public void onConnectionEstablished() { SwingUtilities.invokeLater(() -> { - status.setText("Connected to rusEFI"); + status.setText("Connected to rusEFI " + autoDetectedPort); disconnect.setEnabled(true); connectionStateListener.onConnectionEstablished(); }); diff --git a/java_tools/ts_plugin/src/main/java/com/rusefi/ts_plugin/SdCardReader.java b/java_tools/ts_plugin/src/main/java/com/rusefi/ts_plugin/SdCardReader.java index 62c8315b22..a3feae9e11 100644 --- a/java_tools/ts_plugin/src/main/java/com/rusefi/ts_plugin/SdCardReader.java +++ b/java_tools/ts_plugin/src/main/java/com/rusefi/ts_plugin/SdCardReader.java @@ -73,8 +73,7 @@ public class SdCardReader { content.add(topPanel, BorderLayout.NORTH); - JScrollPane fileListScroll = new JScrollPane(fileList, JScrollPane.VERTICAL_SCROLLBAR_ALWAYS, JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED); - content.add(fileListScroll, BorderLayout.CENTER); + content.add(fileList, BorderLayout.CENTER); content.add(new JLabel("This tab allows direct access to SD card
Please be sure to disconnect Tuner Studio from ECU while downloading files using this tab"), BorderLayout.SOUTH); } @@ -85,7 +84,7 @@ public class SdCardReader { } public Component getContent() { - return content; + return new JScrollPane(content, JScrollPane.VERTICAL_SCROLLBAR_ALWAYS, JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED); } private void requestFileList() {