⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 bankadmin.java

📁 java书 java书 java书 java书 java书 java书
💻 JAVA
📖 第 1 页 / 共 5 页
字号:
                        org.jdesktop.layout.GroupLayout.LEADING).add(                        accountInfoPanelLayout.createSequentialGroup().addContainerGap().add(                                accountInfoPanelLayout.createParallelGroup(                                        org.jdesktop.layout.GroupLayout.BASELINE).add(                                        accountIdTextField,                                        org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,                                        org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,                                        org.jdesktop.layout.GroupLayout.PREFERRED_SIZE).add(                                        accountOpenButton).add(accountIdLabel)).addPreferredGap(                                org.jdesktop.layout.LayoutStyle.RELATED).add(                                accountInfoPanelLayout.createParallelGroup(                                        org.jdesktop.layout.GroupLayout.BASELINE).add(                                        accountDescriptionLabel).add(                                        accountDescriptionTextField,                                        org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,                                        org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,                                        org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)).addPreferredGap(                                org.jdesktop.layout.LayoutStyle.RELATED).add(                                accountInfoPanelLayout.createParallelGroup(                                        org.jdesktop.layout.GroupLayout.BASELINE).add(                                        accountTypeComboBox,                                        org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,                                        org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,                                        org.jdesktop.layout.GroupLayout.PREFERRED_SIZE).add(                                        accountTypeLabel)).addPreferredGap(                                org.jdesktop.layout.LayoutStyle.RELATED).add(                                accountInfoPanelLayout.createParallelGroup(                                        org.jdesktop.layout.GroupLayout.BASELINE).add(                                        balanceTextField,                                        org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,                                        org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,                                        org.jdesktop.layout.GroupLayout.PREFERRED_SIZE).add(                                        balanceLabel)).addPreferredGap(                                org.jdesktop.layout.LayoutStyle.RELATED).add(                                accountInfoPanelLayout.createParallelGroup(                                        org.jdesktop.layout.GroupLayout.BASELINE).add(                                        creditTextField,                                        org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,                                        org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,                                        org.jdesktop.layout.GroupLayout.PREFERRED_SIZE).add(                                        creditLabel)).addPreferredGap(                                org.jdesktop.layout.LayoutStyle.RELATED).add(                                accountInfoPanelLayout.createParallelGroup(                                        org.jdesktop.layout.GroupLayout.BASELINE).add(                                        beginningBalanceTextField,                                        org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,                                        org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,                                        org.jdesktop.layout.GroupLayout.PREFERRED_SIZE).add(                                        beginningBalanceLabel)).addPreferredGap(                                org.jdesktop.layout.LayoutStyle.RELATED).add(                                accountInfoPanelLayout.createParallelGroup(                                        org.jdesktop.layout.GroupLayout.BASELINE).add(                                        customersTextField,                                        org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,                                        org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,                                        org.jdesktop.layout.GroupLayout.PREFERRED_SIZE).add(                                        customersLabel)).addPreferredGap(                                org.jdesktop.layout.LayoutStyle.RELATED).add(                                accountInfoPanelLayout.createParallelGroup(                                        org.jdesktop.layout.GroupLayout.BASELINE).add(                                        timeTextField,                                        org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,                                        org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,                                        org.jdesktop.layout.GroupLayout.PREFERRED_SIZE).add(                                        timeLabel)).addPreferredGap(                                org.jdesktop.layout.LayoutStyle.RELATED).add(                                accountInfoPanelLayout.createParallelGroup(                                        org.jdesktop.layout.GroupLayout.BASELINE).add(                                        accountCancelButton).add(                                        accountCreateButton).add(                                        accountNewButton).add(                                        accountRemoveButton)).addPreferredGap(                                org.jdesktop.layout.LayoutStyle.RELATED).add(                                accountActionsPanel,                                org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,                                org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,                                org.jdesktop.layout.GroupLayout.PREFERRED_SIZE).addContainerGap(                                133,                                Short.MAX_VALUE)));        jTabbedPane1.addTab("AccountInfo", accountInfoPanel);        messagePanel.setBorder(                javax.swing.BorderFactory.createTitledBorder(                        javax.swing.BorderFactory.createEtchedBorder(),                        "Messages",                        javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION,                        javax.swing.border.TitledBorder.DEFAULT_POSITION,                        new java.awt.Font("Tahoma", 0, 11),                        new java.awt.Color(0, 0, 0)));        org.jdesktop.layout.GroupLayout messagePanelLayout = new org.jdesktop.layout.GroupLayout(                    messagePanel);        messagePanel.setLayout(messagePanelLayout);        messagePanelLayout.setHorizontalGroup(                messagePanelLayout.createParallelGroup(                        org.jdesktop.layout.GroupLayout.LEADING).add(                        messagePanelLayout.createSequentialGroup().add(                                messagePanelLayout.createParallelGroup(                                        org.jdesktop.layout.GroupLayout.LEADING).add(                                        messageLabel).add(                                        messagePanelLayout.createSequentialGroup().add(                                                10,                                                10,                                                10).add(                                                messageTextLabel,                                                org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,                                                509,                                                Short.MAX_VALUE))).addContainerGap()));        messagePanelLayout.setVerticalGroup(                messagePanelLayout.createParallelGroup(                        org.jdesktop.layout.GroupLayout.LEADING).add(                        messagePanelLayout.createSequentialGroup().add(                                messageLabel).add(14, 14, 14)).add(                        messagePanelLayout.createSequentialGroup().add(                                messageTextLabel,                                org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,                                23,                                Short.MAX_VALUE).addContainerGap()));        fileMenu.setText("File");        exitMenuItem.setText("Exit");        exitMenuItem.addActionListener(                new java.awt.event.ActionListener() {                    public void actionPerformed(java.awt.event.ActionEvent evt) {                        exitMenuItemActionPerformed(evt);                    }                });        fileMenu.add(exitMenuItem);        menuBar.add(fileMenu);        editMenu.setText("Edit");        cutMenuItem.setText("Cut");        editMenu.add(cutMenuItem);        copyMenuItem.setText("Copy");        editMenu.add(copyMenuItem);        pasteMenuItem.setText("Paste");        editMenu.add(pasteMenuItem);        deleteMenuItem.setText("Delete");        editMenu.add(deleteMenuItem);        menuBar.add(editMenu);        setJMenuBar(menuBar);        org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(                    getContentPane());        getContentPane()            .setLayout(layout);        layout.setHorizontalGroup(                layout.createParallelGroup(                        org.jdesktop.layout.GroupLayout.LEADING).add(                        jTabbedPane1,                        org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,                        541,                        Short.MAX_VALUE).add(                        messagePanel,                        org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,                        org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,                        Short.MAX_VALUE));        layout.setVerticalGroup(                layout.createParallelGroup(                        org.jdesktop.layout.GroupLayout.LEADING).add(                        layout.createSequentialGroup().add(                                jTabbedPane1,                                org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,                                org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,                                org.jdesktop.layout.GroupLayout.PREFERRED_SIZE).addPreferredGap(                                org.jdesktop.layout.LayoutStyle.RELATED,                                org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,                                Short.MAX_VALUE).add(                                messagePanel,                                org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,                                org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,                                org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)));        pack();    } // </editor-fold>//GEN-END:initComponents    private void removeCustomerFromAccountButtonMouseReleased(        java.awt.event.MouseEvent evt) { //GEN-FIRST:event_removeCustomerFromAccountButtonMouseReleased        if (this.accountIdTextField.getText() == null) {            this.messageTextLabel.setText("Enter an account ID.");        } else {            try {                accountController.removeCustomerFromAccount(                        new Long(this.addCustomerToAccountTextField.getText()),                        new Long(this.accountIdTextField.getText()));                List<Long> customerIds = accountController.getCustomerIds(                            new Long(this.accountIdTextField.getText()));                this.customersTextField.setText(customerIds.toString());            } catch (InvalidParameterException ex) {                this.messageTextLabel.setText("InvalidParameterException");            } catch (CustomerNotFoundException ex) {                this.messageTextLabel.setText("Customer not found.");            } catch (AccountNotFoundException ex) {                this.messageTextLabel.setText("Account not found.");            }        }    } //GEN-LAST:event_removeCustomerFromAccountButtonMouseReleased    private void addCustomerToAccountButtonMouseReleased(        java.awt.event.MouseEvent evt) { //GEN-FIRST:event_addCustomerToAccountButtonMouseReleased        if (this.accountIdTextField.getText() == null) {            this.messageTextLabel.setText("Enter an account ID.");        } else {            try {                accountController.addCust

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -