package shoufei;
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import java.sql.*;
import com.borland.jbcl.layout.*;
import javax.swing.event.*;
import java.awt.Window;
public class jiaofeiFrame extends JInternalFrame {
static int frameNo=1;
static final int xOffset=50,yOffset=30;
public jiaofeiFrame() {
super("缴费界面"+(frameNo++),true,true,true,true);
setSize(600,500);
setLocation(xOffset*frameNo,yOffset*frameNo);
try {
jbInit();
}
catch(Exception e) {
e.printStackTrace();
}
}
private void jbInit() throws Exception {
jPanel1.setLayout(xYLayout1);
jButton1.setFont(new java.awt.Font("Dialog", 0, 18));
jButton1.setText("确 定");
jButton1.addActionListener(new jiaofeiFrame_jButton1_actionAdapter(this));
jButton2.setText("重 置");
jButton2.addActionListener(new jiaofeiFrame_jButton2_actionAdapter(this)
{public void actionPerformed(ActionEvent e) {
jButton2_actionPerformed(e);}});
jButton2.setFont(new java.awt.Font("Dialog", 0, 18));
this.setFont(new java.awt.Font("Dialog", 0, 18));
}
JPanel jPanel1 = new JPanel();
XYLayout xYLayout1 = new XYLayout();
JButton jButton1 = new JButton();
JButton jButton2 = new JButton();
void jButton2_actionPerformed(ActionEvent e) {
AboutDialog aboutDialog = new AboutDialog(this,"guanyu",false);
Dimension dlgSize = new Dimension(300,225);
Dimension frmSize=getSize();
Point loc=getLocation();
aboutDialog.setLocation((frmSize.width -dlgSize.width)/ 2+loc.x,(frmSize.height-dlgSize.height)/2+loc.y);
aboutDialog.setModal(true);
aboutDialog.setSize(dlgSize);
aboutDialog.show();
}
class jiaofeiFrame_jButton2_actionAdapter implements java.awt.event.ActionListener {
jiaofeiFrame adaptee;
jiaofeiFrame_jButton2_actionAdapter(jiaofeiFrame adaptee) {
this.adaptee = adaptee;
}
public void actionPerformed(ActionEvent e) {
adaptee.jButton2_actionPerformed(e);
}
}