/[svn]/jsampler/trunk/src/org/jsampler/HF.java
ViewVC logotype

Diff of /jsampler/trunk/src/org/jsampler/HF.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1751 by iliev, Mon Dec 3 23:22:02 2007 UTC revision 1752 by iliev, Mon Aug 11 22:51:24 2008 UTC
# Line 1  Line 1 
1  /*  /*
2   *   JSampler - a java front-end for LinuxSampler   *   JSampler - a java front-end for LinuxSampler
3   *   *
4   *   Copyright (C) 2005-2006 Grigor Iliev <grigor@grigoriliev.com>   *   Copyright (C) 2005-2008 Grigor Iliev <grigor@grigoriliev.com>
5   *   *
6   *   This file is part of JSampler.   *   This file is part of JSampler.
7   *   *
# Line 76  public class HF { Line 76  public class HF {
76                    
77          /**          /**
78           * Shows a dialog with the specified error message.           * Shows a dialog with the specified error message.
79           * @param frame The parent <code>Frame</code> for the dialog.           * @param parentComponent determines the Frame in which the dialog is displayed
80           * @param msg The error message to be shown.           * @param msg The error message to be shown.
81           */           */
82          public static void          public static void
83          showErrorMessage(String msg, Frame frame) {          showErrorMessage(String msg, Component parentComponent) {
84                  JOptionPane.showMessageDialog (                  JOptionPane.showMessageDialog (
85                          frame, msg,                          parentComponent, msg,
                         i18n.getError("error"),  
                         JOptionPane.ERROR_MESSAGE  
                 );  
         }  
           
         /**  
          * Shows a dialog with the specified error message.  
          * @param dlg The parent <code>Dialog</code> from which the dialog is displayed.  
          * @param msg The error message to be shown.  
          */  
         public static void  
         showErrorMessage(String msg, Dialog dlg) {  
                 JOptionPane.showMessageDialog (  
                         dlg, msg,  
86                          i18n.getError("error"),                          i18n.getError("error"),
87                          JOptionPane.ERROR_MESSAGE                          JOptionPane.ERROR_MESSAGE
88                  );                  );

Legend:
Removed from v.1751  
changed lines
  Added in v.1752

  ViewVC Help
Powered by ViewVC