|
|
|
@ -3,6 +3,7 @@ package com.fr.design.gui.frpane;
|
|
|
|
|
import com.fr.design.beans.BasicBeanPane; |
|
|
|
|
import com.fr.design.dialog.FineJOptionPane; |
|
|
|
|
import com.fr.design.gui.ibutton.UIButton; |
|
|
|
|
import com.fr.design.i18n.Toolkit; |
|
|
|
|
import com.fr.design.layout.FRGUIPaneFactory; |
|
|
|
|
import com.fr.design.utils.gui.GUICoreUtils; |
|
|
|
|
import com.fr.design.utils.gui.JListUtils; |
|
|
|
@ -150,7 +151,10 @@ public abstract class EditingStringListPane extends BasicBeanPane<List<String>>
|
|
|
|
|
public void actionPerformed(ActionEvent e) { |
|
|
|
|
Object selected = jlist.getSelectedValue(); |
|
|
|
|
if (selected != null) { |
|
|
|
|
int re = FineJOptionPane.showConfirmDialog(SwingUtilities.getWindowAncestor(EditingStringListPane.this), com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Basic_Sure_To_Delete") + selected.toString() + "?"); |
|
|
|
|
int re = FineJOptionPane.showConfirmDialog(SwingUtilities.getWindowAncestor(EditingStringListPane.this), |
|
|
|
|
Toolkit.i18nText("Fine-Design_Basic_Sure_To_Delete") + selected.toString() + "?", |
|
|
|
|
Toolkit.i18nText("Fine-Design_Basic_Confirm"), |
|
|
|
|
JOptionPane.OK_CANCEL_OPTION); |
|
|
|
|
if (re == JOptionPane.OK_OPTION) { |
|
|
|
|
JListUtils.removeSelectedListItems(jlist); |
|
|
|
|
} |
|
|
|
|