ICE 3.4.2
[php5-ice-freebsdport.git] / java / src / IceGridGUI / Logger.java
blob653055c3a05954db9f125436bf607256250ec2b8
1 // **********************************************************************
2 //
3 // Copyright (c) 2003-2011 ZeroC, Inc. All rights reserved.
4 //
5 // This copy of Ice is licensed to you under the terms described in the
6 // ICE_LICENSE file included in this distribution.
7 //
8 // **********************************************************************
10 package IceGridGUI;
12 import javax.swing.JFrame;
13 import javax.swing.JOptionPane;
14 import javax.swing.SwingUtilities;
16 public class Logger extends Ice.LoggerI
18 public
19 Logger(JFrame mainFrame)
21 super("IceGrid Admin", "");
23 _mainFrame = mainFrame;
26 public void
27 warning(final String message)
29 SwingUtilities.invokeLater(new Runnable()
31 public void run()
33 JOptionPane.showMessageDialog(
34 _mainFrame,
35 message,
36 "Warning - IceGrid Admin Logger",
37 JOptionPane.WARNING_MESSAGE);
39 });
42 public void
43 error(final String message)
45 SwingUtilities.invokeLater(new Runnable()
47 public void run()
49 JOptionPane.showMessageDialog(
50 _mainFrame,
51 message,
52 "Error - IceGrid Admin Logger",
53 JOptionPane.ERROR_MESSAGE);
55 });
58 private final JFrame _mainFrame;