/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
*
* Copyright 2009 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*
* Load a Naming Context implementation
*/
int resetIndex;
setLayout(new BorderLayout());
northPanel();
southPanel();
}
public void northPanel() {
GridBagConstraints c = new GridBagConstraints();
c.gridheight = 1;
c.gridwidth = 1;
c.gridy = 1;
c.gridx = 0;
c.gridy = 1;
c.gridx = 2;
c.ipadx = 15;
}
public nsListener() {}
{
}
};
}
public void southPanel() {
GridBagConstraints c = new GridBagConstraints();
c.gridheight = 1;
c.gridwidth = 1;
c.gridy = 0;
resetButton = new pmButton(
cancelButton = new pmButton(
helpButton = new pmButton(
c.gridx = 0;
c.gridx = 1;
c.gridx = 2;
c.gridx = 3;
}
int activeButton;
// Constructor
{
}
// Select Active Button and call routine
{
switch (activeButton) {
case OK:
break;
case RESET:
break;
case CANCEL:
break;
case HELP:
break;
}
}
}
public void pmScreendispose() {
}
// Action for buttons
public void actionokButton() {
frame.setVisible(false);
}
public void actionresetButton() {
}
public void actioncancelButton() {
frame.setVisible(false);
}
public void actionhelpButton() {
}
public void Show() {
// handle Esc as cancel
public void actionPerformed(ActionEvent e) {
}},
// default button is always OK, for now...
frame.setVisible(true);
}
}