tn5250j/src/org/tn5250j/gui TN5250jSecurityAccessDialog.java,NONE,1.1

Patrick Bielen <[email protected]> Thu, 01 Jul 2004 10:35:31 +0000
Newsgroups gmane.comp.java.tn5250j.cvs
Message-ID <[email protected]>
Update of /cvsroot/tn5250j/tn5250j/src/org/tn5250j/gui
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23533/src/org/tn5250j/gui

Added Files:
	TN5250jSecurityAccessDialog.java 
Log Message:
Update related to warnings in eclipse (unused imports) and to the 
bug-reporting of the applet-related bugs.

--- NEW FILE: TN5250jSecurityAccessDialog.java ---
/*
 * @(#)TN5250jSecurityAccessDialog.java
 * Copyright:    Copyright (c) 2001 , 2002
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2, or (at your option)
 * any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this software; see the file COPYING.  If not, write to
 * the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
 * Boston, MA 02111-1307 USA
 *
 */

package org.tn5250j.gui;

import javax.swing.JOptionPane;

import org.tn5250j.tools.LangTool;
import org.tn5250j.gui.TN5250jFrame;

public class TN5250jSecurityAccessDialog {

   // set so outsiders can not initialize the dialog.
   private TN5250jSecurityAccessDialog() {

   }

   static public void showErrorMessage(SecurityException se) {

      TN5250jFrame parent = new TN5250jFrame();
      JOptionPane.showMessageDialog(parent,LangTool.getString("messages.SADMessage")
                                    + se.getMessage()
                                    ,LangTool.getString("messages.SADTitle"),
                                    JOptionPane.ERROR_MESSAGE);


   }
}


-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com