/* * (c) Digi International Inc. 2003. All Rights Reserved * * Digi provides this document "as is," without warranty of any kind, * either expressed or implied, including, but not limited to, the implied * warranties of fitness or merchantability for a particular purpose. Digi * may make improvements and/or changes in this document or in the product(s) * and/or the program(s) described in this document at any time. * * This document could include technical inaccuracies or typographical errors. * Changes are periodically made to the information herein; these changes may * be incorporated in new editions of the publication. * * Digi International Inc. * 11001 Bren Road East * Minnetonka, MN 55343, USA * Tel: +1 (952) 912-3444 * Fax: +1 (952) 912-4952 * http: *www.digi.com/ * */ package com.digi.demo.messenger; import javax.swing.*; /** * JFC Messenger demo application. */ public class MessengerApplication extends JFrame { static public void main(String args[]) throws Exception { // Set the "look and feel" to the native system UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); // UIManager.setLookAndFeel(UIManager.getCrossPlatformLookAndFeelClassName()); // Create a new instance of the application frame and make it visible MessengerApplication theApp = new MessengerApplication(); theApp.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); theApp.show(); } /** * Constructor */ public MessengerApplication() { setTitle("Messenger Demo"); String host = System.getProperty("host", "localhost"); setSize(500, 300); getContentPane().add(new MessengerPanel(host)); } }