bm.java

import java.awt.*;

import java.awt.event.*;

import java.sql.*;

import javax.swing.*;

class bm extends Frame implements ActionListener,ItemListener { private condb conx=null;

private ResultSet rs=null;

private String sql=null;

private Label num=new Label(" 职工号");

private Label jb=new Label(" 税收");

private Label fj=new Label(" 医疗保险");

private Label in=new Label(" 退休保险");

private TextField numtx=new TextField();

private TextField jbtx=new TextField();

private TextField fjtx=new TextField();

private TextField intx=new TextField();

private Choice numcho=new Choice();

private Button add=new Button(" 增加");

private Button exit=new Button(" 退出");

public bm()

{ setTitle(" 扣除工资");

setSize(400,300);

setBackground(Color.LIGHT_GRAY);

this.setLocationRelativeTo(this.getParent());

this.setResizable(false);

setLayout(null);

num.setBounds(80,50,50,20);

jb.setBounds(80,80,50,20);

fj.setBounds(80,110,50,20);

in.setBounds(80,140,50,20);

numtx.setBounds(160,50,100,20);

jbtx.setBounds(160,80,100,20);

fjtx.setBounds(160,110,100,20);

intx.setBounds(160,140,100,20);

numcho.setBounds(160,170,100,20);

add.setBounds(60,220,50,20);

exit.setBounds(300,220,50,20);

add(add);

Logo

开放原子开发者工作坊旨在鼓励更多人参与开源活动,与志同道合的开发者们相互交流开发经验、分享开发心得、获取前沿技术趋势。工作坊有多种形式的开发者活动,如meetup、训练营等,主打技术交流,干货满满,真诚地邀请各位开发者共同参与!

更多推荐