Removed obsolete method
@@ -26,21 +26,19 @@ import java.awt.event.ActionListener;
import java.text.NumberFormat;
import java.util.TreeMap;
import java.util.logging.Logger;
-
import javax.swing.JButton;
import javax.swing.JColorChooser;
import javax.swing.JDialog;
import javax.swing.JFormattedTextField;
import javax.swing.JFrame;
import javax.swing.JLabel;
-import javax.swing.JOptionPane;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JTable;
import javax.swing.ListSelectionModel;
import javax.swing.event.ListSelectionEvent;
import javax.swing.event.ListSelectionListener;
-
+import io.github.mzmine.main.MZmineCore;
import io.github.mzmine.util.ExitCode;
public class InterpolatingLookupPaintScaleSetupDialog extends JDialog
@@ -143,6 +141,7 @@ public class InterpolatingLookupPaintScaleSetupDialog extends JDialog
}
+ @Override
public void valueChanged(ListSelectionEvent event) {
if (event.getValueIsAdjusting())
@@ -161,6 +160,7 @@ public class InterpolatingLookupPaintScaleSetupDialog extends JDialog
}
+ @Override
public void actionPerformed(ActionEvent event) {
Object src = event.getSource();
if (src == buttonColor) {
@@ -171,7 +171,7 @@ public class InterpolatingLookupPaintScaleSetupDialog extends JDialog
if (src == buttonAddModify) {
if (fieldValue.getValue() == null) {
- displayMessage("Please enter value first.");
+ MZmineCore.getDesktop().displayMessage("Please enter value first.");
return;
}
@@ -215,12 +215,4 @@ public class InterpolatingLookupPaintScaleSetupDialog extends JDialog
return paintScale;
}
- private void displayMessage(String msg) {
- try {
- logger.info(msg);
- JOptionPane.showMessageDialog(this, msg, "Error", JOptionPane.ERROR_MESSAGE);
- } catch (Exception exce) {
- }
- }
-
}
