Exemple #1
0
  public ShenPiPanel(MainFrame par) {
    this.parent = par;

    initUI();
    setHotKey();

    initBL();

    approvebt.addActionListener(this);
    disappbt.addActionListener(this);
    refreshbt.addActionListener(this);
    refreshList();
  }
  public BankAccountPanel(MainFrame par) {
    this.parent = par;
    this.setOpaque(false);
    this.setBorder(
        BorderFactory.createTitledBorder(
            BorderFactory.createBevelBorder(ALLBITS),
            "银行账户",
            TitledBorder.LEFT,
            TitledBorder.TOP,
            new Font("", Font.BOLD, 25)));

    initUI();
    setHotKey();

    addbt.addActionListener(this);
    deletebt.addActionListener(this);
    refreshbt.addActionListener(this);

    initBL();
    refresh();
  }
 private void setHotKey() {
   addbt.setMnemonic('N');
   deletebt.setMnemonic('D');
   refreshbt.setMnemonic('R');
 }
Exemple #4
0
 private void setHotKey() {
   approvebt.setMnemonic('A');
   disappbt.setMnemonic('D');
   refreshbt.setMnemonic('R');
 }