1 package org.opensync.engine.admin.gui;
2
3 import javax.swing.ImageIcon;
4
5 import org.opensync.engine.server.Log;
6 import org.opensync.engine.util.I18n;
7
8 /***
9 *
10 * @version 1.0
11 * @author SOFTMED
12 *
13 */
14
15 public class LogIFrm extends OpenSyncIFrm {
16 LogTextPnl logTextPnl;
17
18 /***
19 * @param log
20 * @param rollWindow
21 */
22 public LogIFrm(Log log, int rollWindow) {
23 super(I18n.getInstance().get("gui.logging.title"),600,300);
24 logTextPnl = new LogTextPnl(log,Log.ROOT,rollWindow);
25 getContentPane().add(logTextPnl.getPanel());
26 setFrameIcon(new ImageIcon(LogIFrm.class.getResource("/images/log.gif")));
27 }
28 /****/
29 public LogTextPnl getLogTextPnl(){
30 return logTextPnl;
31 }
32 }