UpdateReservationWindow.java 文件源码

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

项目:Hotel-Properties-Management-System 作者:
public ActionListener addRoomActionListener() {
    ActionListener acl = (ActionEvent e) -> {
        final String roomNumber = roomNumCmbBox.getSelectedItem().toString();
        final String roomType = roomTypeCmbBox.getSelectedItem().toString();
        final String currency = currencyCmbBox.getSelectedItem().toString();
        final int personCount = (int) personCountSpinner.getValue();
        final String val = priceField.getValue().toString();
        priceValue = Double.valueOf(val);

        Object[] row = new Object[] { roomNumber, roomType, personCount, val, currency };
        roomCountModel.addRow(row);

        for (int i = 0; i < personCount; i++) {
            model.addRow(new Object[] { roomNumber, roomType });
        }
    };
    return acl;
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号