📄 roominfomodifyjdialog.java
字号:
package view.SystemSetting;
import javax.swing.JDialog;
import javax.swing.JPanel;
import java.awt.BorderLayout;
import javax.swing.JLabel;
import javax.swing.JTextField;
import javax.swing.JCheckBox;
import javax.swing.JComboBox;
import javax.swing.JButton;
public class RoomInfoModifyJDialog {
private JDialog jDialog = null;
private JPanel jContentPane = null;
private JLabel RoomTypejLabel = null;
private JLabel CapacityjLabel = null;
private JLabel MinConsumejLabel = null;
private JTextField RoomTypejTextField = null;
private JTextField MinConsumejTextField = null;
private JTextField CapacityjTextField = null;
private JCheckBox StandardChargejCheckBox = null;
private JCheckBox Common1ChargejCheckBox = null;
private JCheckBox Common2ChargejCheckBox = null;
private JCheckBox SpecialChargejCheckBox = null;
private JComboBox StandardChargejComboBox = null;
private JComboBox Common1ChargejComboBox = null;
private JComboBox Common2ChargejComboBox = null;
private JComboBox SpecialChargejComboBox = null;
private JButton SavejButton = null;
private JButton ClosejButton = null;
/**
* This method initializes jDialog
*
* @return javax.swing.JDialog
*/
private JDialog getJDialog() {
if (jDialog == null) {
jDialog = new JDialog();
jDialog.setSize(new java.awt.Dimension(380, 282));
jDialog.setContentPane(getJContentPane());
}
return jDialog;
}
/**
* This method initializes jContentPane
*
* @return javax.swing.JPanel
*/
private JPanel getJContentPane() {
if (jContentPane == null) {
MinConsumejLabel = new JLabel();
MinConsumejLabel.setBounds(new java.awt.Rectangle(15, 45, 60, 16));
MinConsumejLabel.setText("最低消费");
CapacityjLabel = new JLabel();
CapacityjLabel.setBounds(new java.awt.Rectangle(15, 75, 61, 16));
CapacityjLabel.setText("容纳人数");
RoomTypejLabel = new JLabel();
RoomTypejLabel.setBounds(new java.awt.Rectangle(16, 15, 61, 16));
RoomTypejLabel.setText("包房类型");
jContentPane = new JPanel();
jContentPane.setLayout(null);
jContentPane.add(RoomTypejLabel, null);
jContentPane.add(CapacityjLabel, null);
jContentPane.add(MinConsumejLabel, null);
jContentPane.add(getRoomTypejTextField(), null);
jContentPane.add(getMinConsumejTextField(), null);
jContentPane.add(getCapacityjTextField(), null);
jContentPane.add(getStandardChargejCheckBox(), null);
jContentPane.add(getCommon1ChargejCheckBox(), null);
jContentPane.add(getCommon2ChargejCheckBox(), null);
jContentPane.add(getSpecialChargejCheckBox(), null);
jContentPane.add(getStandardChargejComboBox(), null);
jContentPane.add(getCommon1ChargejComboBox(), null);
jContentPane.add(getCommon2ChargejComboBox(), null);
jContentPane.add(getSpecialChargejComboBox(), null);
jContentPane.add(getSavejButton(), null);
jContentPane.add(getClosejButton(), null);
}
return jContentPane;
}
/**
* This method initializes RoomTypejTextField
*
* @return javax.swing.JTextField
*/
private JTextField getRoomTypejTextField() {
if (RoomTypejTextField == null) {
RoomTypejTextField = new JTextField();
RoomTypejTextField
.setBounds(new java.awt.Rectangle(90, 14, 107, 19));
}
return RoomTypejTextField;
}
/**
* This method initializes MinConsumejTextField
*
* @return javax.swing.JTextField
*/
private JTextField getMinConsumejTextField() {
if (MinConsumejTextField == null) {
MinConsumejTextField = new JTextField();
MinConsumejTextField.setBounds(new java.awt.Rectangle(91, 44, 106,
18));
}
return MinConsumejTextField;
}
/**
* This method initializes CapacityjTextField
*
* @return javax.swing.JTextField
*/
private JTextField getCapacityjTextField() {
if (CapacityjTextField == null) {
CapacityjTextField = new JTextField();
CapacityjTextField
.setBounds(new java.awt.Rectangle(90, 75, 107, 17));
}
return CapacityjTextField;
}
/**
* This method initializes StandardChargejCheckBox
*
* @return javax.swing.JCheckBox
*/
private JCheckBox getStandardChargejCheckBox() {
if (StandardChargejCheckBox == null) {
StandardChargejCheckBox = new JCheckBox();
StandardChargejCheckBox.setBounds(new java.awt.Rectangle(15, 120,
180, 17));
StandardChargejCheckBox.setText("按照标准计费方式计费:");
}
return StandardChargejCheckBox;
}
/**
* This method initializes Common1ChargejCheckBox
*
* @return javax.swing.JCheckBox
*/
private JCheckBox getCommon1ChargejCheckBox() {
if (Common1ChargejCheckBox == null) {
Common1ChargejCheckBox = new JCheckBox();
Common1ChargejCheckBox.setBounds(new java.awt.Rectangle(14, 150,
181, 16));
Common1ChargejCheckBox.setText("按照普通节假日1收费:");
}
return Common1ChargejCheckBox;
}
/**
* This method initializes Common2ChargejCheckBox
*
* @return javax.swing.JCheckBox
*/
private JCheckBox getCommon2ChargejCheckBox() {
if (Common2ChargejCheckBox == null) {
Common2ChargejCheckBox = new JCheckBox();
Common2ChargejCheckBox.setBounds(new java.awt.Rectangle(15, 180,
180, 16));
Common2ChargejCheckBox.setText("按照普通节假日2收费:");
}
return Common2ChargejCheckBox;
}
/**
* This method initializes SpecialChargejCheckBox
*
* @return javax.swing.JCheckBox
*/
private JCheckBox getSpecialChargejCheckBox() {
if (SpecialChargejCheckBox == null) {
SpecialChargejCheckBox = new JCheckBox();
SpecialChargejCheckBox.setBounds(new java.awt.Rectangle(15, 210,
181, 17));
SpecialChargejCheckBox.setText("按照特殊节假日收费");
}
return SpecialChargejCheckBox;
}
/**
* This method initializes StandardChargejComboBox
*
* @return javax.swing.JComboBox
*/
private JComboBox getStandardChargejComboBox() {
if (StandardChargejComboBox == null) {
StandardChargejComboBox = new JComboBox();
StandardChargejComboBox.setBounds(new java.awt.Rectangle(195, 119,
164, 16));
}
return StandardChargejComboBox;
}
/**
* This method initializes Common1ChargejComboBox
*
* @return javax.swing.JComboBox
*/
private JComboBox getCommon1ChargejComboBox() {
if (Common1ChargejComboBox == null) {
Common1ChargejComboBox = new JComboBox();
Common1ChargejComboBox.setBounds(new java.awt.Rectangle(196, 150,
164, 17));
}
return Common1ChargejComboBox;
}
/**
* This method initializes Common2ChargejComboBox
*
* @return javax.swing.JComboBox
*/
private JComboBox getCommon2ChargejComboBox() {
if (Common2ChargejComboBox == null) {
Common2ChargejComboBox = new JComboBox();
Common2ChargejComboBox.setBounds(new java.awt.Rectangle(196, 180,
165, 17));
}
return Common2ChargejComboBox;
}
/**
* This method initializes SpecialChargejComboBox
*
* @return javax.swing.JComboBox
*/
private JComboBox getSpecialChargejComboBox() {
if (SpecialChargejComboBox == null) {
SpecialChargejComboBox = new JComboBox();
SpecialChargejComboBox.setBounds(new java.awt.Rectangle(196, 209,
164, 18));
}
return SpecialChargejComboBox;
}
/**
* This method initializes SavejButton
*
* @return javax.swing.JButton
*/
private JButton getSavejButton() {
if (SavejButton == null) {
SavejButton = new JButton();
SavejButton.setBounds(new java.awt.Rectangle(241, 16, 75, 30));
SavejButton.setText("保存");
}
return SavejButton;
}
/**
* This method initializes ClosejButton
*
* @return javax.swing.JButton
*/
private JButton getClosejButton() {
if (ClosejButton == null) {
ClosejButton = new JButton();
ClosejButton.setBounds(new java.awt.Rectangle(240, 60, 76, 31));
ClosejButton.setText("关闭");
}
return ClosejButton;
}
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -