diff --git a/creator-tools/build.gradle b/creator-tools/build.gradle index d274187..e11a201 100644 --- a/creator-tools/build.gradle +++ b/creator-tools/build.gradle @@ -7,6 +7,7 @@ targetCompatibility = 1.8 dependencies { compile project(':launcher-builder') compile 'org.eclipse.jetty:jetty-server:9.3.1.v20150714' + compile 'com.jidesoft:jide-oss:3.6.10' } processResources { diff --git a/creator-tools/src/main/java/com/skcraft/launcher/creator/dialog/GenerateListingDialog.java b/creator-tools/src/main/java/com/skcraft/launcher/creator/dialog/GenerateListingDialog.java index d778271..9bd7c97 100644 --- a/creator-tools/src/main/java/com/skcraft/launcher/creator/dialog/GenerateListingDialog.java +++ b/creator-tools/src/main/java/com/skcraft/launcher/creator/dialog/GenerateListingDialog.java @@ -6,6 +6,8 @@ package com.skcraft.launcher.creator.dialog; +import com.jidesoft.swing.SearchableUtils; +import com.jidesoft.swing.TableSearchable; import com.skcraft.launcher.creator.Creator; import com.skcraft.launcher.creator.model.swing.ListingType; import com.skcraft.launcher.creator.model.swing.ListingTypeComboBoxModel; @@ -72,6 +74,9 @@ public class GenerateListingDialog extends JDialog { getRootPane().setDefaultButton(generateButton); getRootPane().registerKeyboardAction(e -> cancelButton.doClick(), KeyStroke.getKeyStroke(KeyEvent.VK_ESCAPE, 0), JComponent.WHEN_IN_FOCUSED_WINDOW); + + TableSearchable tableSearchable = SearchableUtils.installSearchable(manifestsTable); + tableSearchable.setMainIndex(-1); } } diff --git a/creator-tools/src/main/java/com/skcraft/launcher/creator/dialog/PackManagerFrame.java b/creator-tools/src/main/java/com/skcraft/launcher/creator/dialog/PackManagerFrame.java index a715b8c..b64dc0d 100644 --- a/creator-tools/src/main/java/com/skcraft/launcher/creator/dialog/PackManagerFrame.java +++ b/creator-tools/src/main/java/com/skcraft/launcher/creator/dialog/PackManagerFrame.java @@ -6,6 +6,8 @@ package com.skcraft.launcher.creator.dialog; +import com.jidesoft.swing.SearchableUtils; +import com.jidesoft.swing.TableSearchable; import com.skcraft.launcher.creator.Creator; import com.skcraft.launcher.swing.DefaultTable; import com.skcraft.launcher.swing.SwingHelper; @@ -82,6 +84,9 @@ public class PackManagerFrame extends JFrame { container.add(createToolbar(), "dock north"); container.add(SwingHelper.wrapScrollPane(packTable), "grow, span, w null:800:null"); + TableSearchable tableSearchable = SearchableUtils.installSearchable(packTable); + tableSearchable.setMainIndex(-1); + add(container, BorderLayout.CENTER); }