From bcf9010df8fb0c397ea2b00991b89c9af49b85e7 Mon Sep 17 00:00:00 2001 From: Majick Tek Date: Fri, 25 Feb 2022 20:36:44 -0500 Subject: [PATCH] Deleting all indexes clears the visual data --- MiniCraftLauncher/src/com/mt/minilauncher/LauncherWindow.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/MiniCraftLauncher/src/com/mt/minilauncher/LauncherWindow.java b/MiniCraftLauncher/src/com/mt/minilauncher/LauncherWindow.java index 01efef4..319bb38 100644 --- a/MiniCraftLauncher/src/com/mt/minilauncher/LauncherWindow.java +++ b/MiniCraftLauncher/src/com/mt/minilauncher/LauncherWindow.java @@ -35,7 +35,6 @@ import java.awt.Color; import javax.swing.JPanel; import javax.swing.border.BevelBorder; -import javax.swing.border.EtchedBorder; import javax.swing.JCheckBoxMenuItem; public class LauncherWindow { @@ -192,6 +191,8 @@ public void actionPerformed(ActionEvent e) { cleanFolderMenuItem.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { Initializer.cleanFolders(); + getList().setModel(new DefaultListModel()); + getList().updateUI(); } }); editMenu.add(cleanFolderMenuItem);