Author: echatellier Date: 2012-04-17 18:03:01 +0200 (Tue, 17 Apr 2012) New Revision: 3374 Url: http://chorem.org/repositories/revision/lima/3374 Log: Deprecate another helper Modified: trunk/lima-swing/src/main/java/org/chorem/lima/util/DialogHelper.java Modified: trunk/lima-swing/src/main/java/org/chorem/lima/util/DialogHelper.java =================================================================== --- trunk/lima-swing/src/main/java/org/chorem/lima/util/DialogHelper.java 2012-04-17 16:00:24 UTC (rev 3373) +++ trunk/lima-swing/src/main/java/org/chorem/lima/util/DialogHelper.java 2012-04-17 16:03:01 UTC (rev 3374) @@ -37,21 +37,11 @@ /** * @author ore * @author Rémi Chapelet + * @deprecated with no replacement, use JOptionPane directly */ +@Deprecated public class DialogHelper { - public static int showConfirmDialog(String message) { - String[] response = {_("lima.response.yes"), _("lima.response.no")}; - return JOptionPane.showOptionDialog(null, - message, - _("lima.common.question"), - JOptionPane.YES_NO_OPTION, - JOptionPane.QUESTION_MESSAGE, - null, //do not use a custom Icon - response, //the titles of buttons - response[0]); //default button title - } - /** * Use instead: JOptionPane.showMessageDialog (String message,String titre,int type) * <p/> @@ -86,24 +76,6 @@ } /** - * Permet d'afficher une boite de dialogue. - * - * @param message - * @param titre - * @param type - */ - public static void showMessageDialog(String message, String titre, int type) { - JFrame f = new JFrame(); - f.setIconImage(Resource.getIcon("icons/lima.png").getImage()); - JOptionPane.showMessageDialog( - f, - message, - titre, - type); - f.dispose(); - } - - /** * Permet d'afficher une boite de dialogue avec rapport * * @param message