xref: /titanic_41/usr/src/cmd/krb5/kadmin/gui/KdcGuiMain.java (revision 88447a05f537aabe9a1bc3d5313f22581ec992a7)
1 /*
2  * CDDL HEADER START
3  *
4  * The contents of this file are subject to the terms of the
5  * Common Development and Distribution License, Version 1.0 only
6  * (the "License").  You may not use this file except in compliance
7  * with the License.
8  *
9  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10  * or http://www.opensolaris.org/os/licensing.
11  * See the License for the specific language governing permissions
12  * and limitations under the License.
13  *
14  * When distributing Covered Code, include this CDDL HEADER in each
15  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16  * If applicable, add the following below this CDDL HEADER, with the
17  * fields enclosed by brackets "[]" replaced with your own identifying
18  * information: Portions Copyright [yyyy] [name of copyright owner]
19  *
20  * CDDL HEADER END
21  */
22 /*
23  * ident	"%Z%%M%	%I%	%E% SMI"
24  *
25  * Copyright (c) 2001 by Sun Microsystems, Inc.
26  * All rights reserved.
27  *
28  */
29 
30 /**
31  * This file was originally automatically generated by Java WorkShop.
32  *
33  * Runtime vendor: SunSoft, Inc.
34  * Runtime version: 1.0
35  *
36  * Visual vendor: SunSoft, Inc.
37  * Visual version: 1.0
38  */
39 
40 
41 
42 import sunsoft.jws.visual.rt.base.Group;
43 import sunsoft.jws.visual.rt.base.MainHelper;
44 import java.applet.Applet;
45 
46 /**
47  * Generated Main class
48  *
49  * @version 1.20, 05/21/96
50  */
51 public class KdcGuiMain extends Applet {
52     /**
53      * Helper class for the generated main class.  This variable is only
54      * used when we are running as an applet.
55      */
56     private MainHelper helper;
57 
58     /**
59      * Called when application is run from the command line.
60      */
61     public static void main(String args[]) {
62         MainHelper helper = new MainHelper();
63         helper.checkVersion(1.0);
64 
65         Group group = new KdcGui();
66         helper.main(group, args);
67     }
68 
69     /**
70      * Called when the applet is loaded.
71      */
72     public void init() {
73         helper = new MainHelper();
74         helper.checkVersion(1.0);
75 
76         Group group = new KdcGui();
77         helper.init(this, group);
78     }
79 
80     /**
81      * Called whenever the applet's page is visited.
82      */
83     public void start() {
84         helper.start();
85     }
86 
87     /**
88      * Called by the browser when the user leaves the page.
89      */
90     public void stop() {
91         helper.stop();
92     }
93 
94     /**
95      * Called by the browser when the applet should be destroyed.
96      */
97     public void destroy() {
98         helper.destroy();
99     }
100 }
101