Update of /cvsroot/ejtools/applications/jmx.browser/src/main/net/sourceforge/ejtools/jmxbrowser
In directory usw-pr-cvs1:/tmp/cvs-serv29212/jmx.browser/src/main/net/sourceforge/ejtools/jmxbrowser
Added Files:
JMXBrowser.java
Log Message:
Initial Import
--- NEW FILE: JMXBrowser.java ---
/*
* EJTools, the Enterprise Java Tools
*
* Distributable under LGPL license.
* See terms of license at www.gnu.org.
*/
package net.sourceforge.ejtools.jmxbrowser;
import java.beans.beancontext.BeanContextServicesSupport;
import java.util.Vector;
import javax.swing.ImageIcon;
//import com.dreambean.awt.BeanContextPanel;
import net.sourceforge.ejtools.awt.BeanContextPanel;
import net.sourceforge.ejtools.awt.action.Command;
import net.sourceforge.ejtools.awt.action.CommandAction;
import net.sourceforge.ejtools.awt.action.file.ExitAction;
import net.sourceforge.ejtools.awt.action.file.NewAction;
import net.sourceforge.ejtools.awt.action.file.OpenAction;
import net.sourceforge.ejtools.awt.action.file.SaveAction;
import net.sourceforge.ejtools.awt.action.file.SaveAsAction;
import net.sourceforge.ejtools.awt.services.AboutServiceProvider;
import net.sourceforge.ejtools.awt.services.FrameServiceProvider;
import net.sourceforge.ejtools.awt.services.MenuBarServiceProvider;
import net.sourceforge.ejtools.awt.services.StatusBarService;
import net.sourceforge.ejtools.awt.services.StatusBarServiceProvider;
import net.sourceforge.ejtools.awt.services.ToolBarServiceProvider;
import net.sourceforge.ejtools.jmxbrowser.model.ConnectionServiceProvider;
import net.sourceforge.ejtools.jmxbrowser.model.Server;
import org.apache.log4j.Category;
/**
* Description of the Class
*
* @author letiembl
* @created 21 mars 2002
*/
public class JMXBrowser extends BeanContextServicesSupport
{
/** Description of the Field */
protected AboutServiceProvider aboutService;
/** Description of the Field */
protected ConnectionServiceProvider connectionProvider;
/** Description of the Field */
protected FrameServiceProvider frameService;
/** Description of the Field */
protected MenuBarServiceProvider menuBarService;
/** Description of the Field */
protected StatusBarServiceProvider statusBarService;
/** Description of the Field */
protected ToolBarServiceProvider toolBarService;
/** Description of the Field */
private static Category cat = Category.getInstance(JMXBrowser.class.getName());
/** Description of the Field */
private static Vector factories;
/** Constructor for the EJX object */
public JMXBrowser()
{
cat.debug("JMXBrowser starting...");
connectionProvider = new ConnectionServiceProvider("EJB");
frameService = new FrameServiceProvider("SDI");
aboutService = new AboutServiceProvider(new AboutDialog());
menuBarService = new MenuBarServiceProvider();
toolBarService = new ToolBarServiceProvider();
statusBarService = new StatusBarServiceProvider();
try
{
add(menuBarService);
// add(toolBarService);
// add(statusBarService);
/*
* statusBarService.addZone("status");
* statusBarService.setContent("status", "Ready");
* statusBarService.addZone("hour", StatusBarService.RIGHT);
* statusBarService.setContent("hour", "10:25:32", new ImageIcon(getClass().getResource("/images/container.gif")));
*/
add(new ExitAction(
new Command()
{
public void execute()
{
System.exit(0);
}
}
));
add(connectionProvider);
Server server = new Server();
add(server);
frameService.setContent(new BeanContextPanel(server));
add(frameService);
add(aboutService);
}
catch (RuntimeException e)
{
cat.warn("Error occured " + e.getMessage());
throw e;
}
}
}
|