DeptView.java 文件源码

java
阅读 26 收藏 0 点赞 0 评论 0

项目:DocIT 作者:
public DeptView(Controller controller) {
    this.controller = controller;
    frame = new JFrame();
    namePanel = new JPanel(new GridLayout(1, 2, 0, 0));
    managerPanel = new JPanel(new GridLayout(1, 2, 66, 0));
    employeePanel = new JPanel(new GridLayout(1, 2, 30, 0));
    subDeptPanel = new JPanel(new GridLayout(1, 2, 20, 0));
    salaryPanel = new JPanel(new FlowLayout(FlowLayout.CENTER, 20, 0));
    buttonPanel = new JPanel(new GridLayout(1, 3, 20, 0));
    subDeptLabel = new JLabel();
    salaryLabel = new JLabel();
    cutButton = new JButton();
    saveButton = new JButton();
    okButton = new JButton();
    cancelButton = new JButton();
    nameField = new JTextField();
    managerButton = new JButton();
    employeeListModel = new DefaultListModel();
    subDeptListModel = new DefaultListModel();
    employeeList = new JList(employeeListModel);
    subDeptList = new JList(subDeptListModel);
    init();
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号