diff --git a/pom.xml b/pom.xml index 6fe2b15..84f59d7 100644 --- a/pom.xml +++ b/pom.xml @@ -10,7 +10,7 @@ 11 - 1.10.13-SNAPSHOT + 1.10.21 2.6.4-SNAPSHOT 1.18.22 UTF-8 diff --git a/src/main/java/ca/arnah/runelite/plugin/config/ArnahConfigPanel.java b/src/main/java/ca/arnah/runelite/plugin/config/ArnahConfigPanel.java index e1242c8..cd385f3 100644 --- a/src/main/java/ca/arnah/runelite/plugin/config/ArnahConfigPanel.java +++ b/src/main/java/ca/arnah/runelite/plugin/config/ArnahConfigPanel.java @@ -58,7 +58,6 @@ import javax.swing.JScrollPane; import javax.swing.JSpinner; import javax.swing.JTextArea; -import javax.swing.ListCellRenderer; import javax.swing.ListSelectionModel; import javax.swing.ScrollPaneConstants; import javax.swing.SpinnerModel; @@ -100,7 +99,7 @@ import net.runelite.client.ui.FontManager; import net.runelite.client.ui.PluginPanel; import net.runelite.client.ui.components.ColorJButton; -import net.runelite.client.ui.components.ComboBoxListRenderer; +import net.runelite.client.ui.components.TitleCaseListCellRenderer; import net.runelite.client.ui.components.colorpicker.ColorPickerManager; import net.runelite.client.ui.components.colorpicker.RuneliteColorPicker; import net.runelite.client.util.ColorUtil; @@ -126,7 +125,7 @@ class ArnahConfigPanel extends PluginPanel{ private final JLabel title; private final ArnahPluginToggleButton pluginToggle; - private final ListCellRenderer> listCellRenderer = new ComboBoxListRenderer<>(); + private final TitleCaseListCellRenderer listCellRenderer = new TitleCaseListCellRenderer(); @Inject private ArnahPluginListPanel pluginList; @@ -368,7 +367,9 @@ public void mouseClicked(MouseEvent e){ JButton resetButton = new JButton("Reset"); resetButton.addActionListener((e)->{ - final int result = JOptionPane.showOptionDialog(resetButton, "Are you sure you want to reset this plugin's configuration?", "Are you sure?", JOptionPane.YES_NO_OPTION, JOptionPane.WARNING_MESSAGE, null, new String[]{"Yes", "No"}, "No"); + final int result = JOptionPane.showOptionDialog(resetButton, "Are you sure you want to reset this plugin's configuration?", "Are you sure?", JOptionPane.YES_NO_OPTION, JOptionPane.WARNING_MESSAGE, null, new String[]{ + "Yes", + "No"}, "No"); if(result == JOptionPane.YES_OPTION){ configManager.setDefaultConfiguration(pluginConfig.getConfig(), true); @@ -602,7 +603,9 @@ private void changeConfiguration(Component component, ConfigDescriptor cd, Confi final ConfigItem configItem = cid.getItem(); if(!Strings.isNullOrEmpty(configItem.warning())){ - final int result = JOptionPane.showOptionDialog(component, configItem.warning(), "Are you sure?", JOptionPane.YES_NO_OPTION, JOptionPane.WARNING_MESSAGE, null, new String[]{"Yes", "No"}, "No"); + final int result = JOptionPane.showOptionDialog(component, configItem.warning(), "Are you sure?", JOptionPane.YES_NO_OPTION, JOptionPane.WARNING_MESSAGE, null, new String[]{ + "Yes", + "No"}, "No"); if(result != JOptionPane.YES_OPTION){ rebuild();