01 package com.bea.medrec.webservices.swing;
02
03 import java.awt.event.WindowAdapter;
04 import java.awt.event.WindowEvent;
05 import javax.swing.*;
06
07
08 /**
09 * <p>Java Swing Client to demonstrate java
10 * client to web service communication.</p>
11 *
12 * @author Copyright (c) 2006 by BEA Systems. All Rights Reserved.
13 */
14 public class SwingClient extends JComponent {
15 private static int width = 600;
16 private static int height = 300;
17
18 public static void main(String[] args) {
19 try {
20 UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
21 } catch (Exception e) { }
22
23 EditProfileFrame frame = new EditProfileFrame();
24 BoxLayout box = new javax.swing.BoxLayout(frame.getContentPane(),
25 BoxLayout.Y_AXIS);
26 frame.getContentPane().setLayout(box);
27
28 //setDefaultCloseOperation
29
30 frame.addWindowListener(new WindowAdapter() {
31 public void windowClosing(WindowEvent e) { System.exit(0); }
32 });
33 }
34 }
|