📄 newcar.java~53~
字号:
public void yingdate_focusLost(FocusEvent e) {
if (yingdate.getText().trim().equals(""))
JOptionPane.showMessageDialog(null, "营审日期不能为空!");
else {
String s = yingdate.getText().trim() + "!";
char date[] = new char[20];
int i;
date = s.toCharArray();
for (i = 0; date[i] != '!'; i++)
if ((date[i] >= '0' && date[i] <= '9') || date[i] == '.')
;
else {
JOptionPane.showMessageDialog(null,
"您输入的日期非法或您输入的日期格式不正确,请以“.”为分隔符!");
yingdate.setText("");
yingdate.setFocusable(true);
break;
}
}
}
public void nextyingdate_focusLost(FocusEvent e) {
if (nextyingdate.getText() .trim().equals(""))
JOptionPane.showMessageDialog(null, "次营审日期不能为空!");
else
{
String s=nextyingdate.getText().trim()+"!";
char date[]=new char[20];
int i;
date=s.toCharArray() ;
for(i=0;date[i]!='!';i++)
if((date[i]>='0'&&date[i]<='9')||date[i]=='.'||date[i]=='/'||date[i]=='-');
else
{
JOptionPane.showMessageDialog(null, "您输入的日期非法或您输入的日期格式不正确,请以“.”、“/”或“-”为分隔符!");
nextyingdate.setText("") ;
nextyingdate.setFocusable(true) ;
break;
}
}
}
public void yeardate_focusLost(FocusEvent e) {
if (yeardate.getText() .trim().equals(""))
JOptionPane.showMessageDialog(null, "年审日期不能为空!");
else {
String s = yeardate.getText().trim() + "!";
char date[] = new char[20];
int i;
date = s.toCharArray();
for (i = 0; date[i] != '!'; i++)
if ((date[i] >= '0' && date[i] <= '9') || date[i] == '.' ||
date[i] == '/' || date[i] == '-')
;
else {
JOptionPane.showMessageDialog(null,
"您输入的日期非法或您输入的日期格式不正确,请以“.”、“/”或“-”为分隔符!");
yeardate.setText("");
yeardate.setFocusable(true);
break;
}
}
}
public void nextyeardate_focusLost(FocusEvent e) {
if (nextyeardate.getText() .trim().equals(""))
JOptionPane.showMessageDialog(null, "下次年审不能为空!");
else {
String s = nextyeardate.getText().trim() + "!";
char date[] = new char[20];
int i;
date = s.toCharArray();
for (i = 0; date[i] != '!'; i++)
if ((date[i] >= '0' && date[i] <= '9') || date[i] == '.' ||
date[i] == '/' || date[i] == '-')
;
else {
JOptionPane.showMessageDialog(null,
"您输入的日期非法或您输入的日期格式不正确,请以“.”、“/”或“-”为分隔符!");
nextyeardate.setText("");
nextyeardate.setFocusable(true);
break;
}
}
}
public void toudate_focusLost(FocusEvent e) {
if (toudate.getText() .trim().equals(""))
JOptionPane.showMessageDialog(null, "投保日期不能为空!");
else {
String s = toudate.getText().trim() + "!";
char date[] = new char[20];
int i;
date = s.toCharArray();
for (i = 0; date[i] != '!'; i++)
if ((date[i] >= '0' && date[i] <= '9') || date[i] == '.' ||
date[i] == '/' || date[i] == '-')
;
else {
JOptionPane.showMessageDialog(null,
"您输入的日期非法或您输入的日期格式不正确,请以“.”、“/”或“-”为分隔符!");
toudate.setText("");
toudate.setFocusable(true);
break;
}
}
}
}
class NewCar_protecthour_t_focusAdapter extends FocusAdapter {
private NewCar adaptee;
NewCar_protecthour_t_focusAdapter(NewCar adaptee) {
this.adaptee = adaptee;
}
public void focusLost(FocusEvent e) {
adaptee.protecthour_t_focusLost(e);
}
}
class NewCar_driveid_t_focusAdapter extends FocusAdapter {
private NewCar adaptee;
NewCar_driveid_t_focusAdapter(NewCar adaptee) {
this.adaptee = adaptee;
}
public void focusLost(FocusEvent e) {
adaptee.driveid_t_focusLost(e);
}
}
class NewCar_drivername_t_focusAdapter extends FocusAdapter {
private NewCar adaptee;
NewCar_drivername_t_focusAdapter(NewCar adaptee) {
this.adaptee = adaptee;
}
public void focusLost(FocusEvent e) {
adaptee.drivername_t_focusLost(e);
}
}
class NewCar_businessid_t_focusAdapter extends FocusAdapter {
private NewCar adaptee;
NewCar_businessid_t_focusAdapter(NewCar adaptee) {
this.adaptee = adaptee;
}
public void focusLost(FocusEvent e) {
adaptee.businessid_t_focusLost(e);
}
}
class NewCar_under_t_focusAdapter extends FocusAdapter {
private NewCar adaptee;
NewCar_under_t_focusAdapter(NewCar adaptee) {
this.adaptee = adaptee;
}
public void focusLost(FocusEvent e) {
adaptee.under_t_focusLost(e);
}
}
class NewCar_actionid_t_focusAdapter extends FocusAdapter {
private NewCar adaptee;
NewCar_actionid_t_focusAdapter(NewCar adaptee) {
this.adaptee = adaptee;
}
public void focusLost(FocusEvent e) {
adaptee.actionid_t_focusLost(e);
}
}
class NewCar_factory_t_focusAdapter extends FocusAdapter {
private NewCar adaptee;
NewCar_factory_t_focusAdapter(NewCar adaptee) {
this.adaptee = adaptee;
}
public void focusLost(FocusEvent e) {
adaptee.factory_t_focusLost(e);
}
}
class NewCar_carid_t_focusAdapter extends FocusAdapter {
private NewCar adaptee;
NewCar_carid_t_focusAdapter(NewCar adaptee) {
this.adaptee = adaptee;
}
public void focusLost(FocusEvent e) {
adaptee.carid_t_focusLost(e);
}
}
class NewCar_jButton3_actionAdapter implements ActionListener {
private NewCar adaptee;
NewCar_jButton3_actionAdapter(NewCar adaptee) {
this.adaptee = adaptee;
}
public void actionPerformed(ActionEvent e) {
adaptee.jButton3_actionPerformed(e);
}
}
class NewCar_jButton2_actionAdapter implements ActionListener {
private NewCar adaptee;
NewCar_jButton2_actionAdapter(NewCar adaptee) {
this.adaptee = adaptee;
}
public void actionPerformed(ActionEvent e) {
adaptee.jButton2_actionPerformed(e);
}
}
class NewCar_jButton1_actionAdapter implements ActionListener {
private NewCar adaptee;
NewCar_jButton1_actionAdapter(NewCar adaptee) {
this.adaptee = adaptee;
}
public void actionPerformed(ActionEvent e) {
adaptee.jButton1_actionPerformed(e);
}
}
class NewCar_jTextField6_actionAdapter implements ActionListener {
private NewCar adaptee;
NewCar_jTextField6_actionAdapter(NewCar adaptee) {
this.adaptee = adaptee;
}
public void actionPerformed(ActionEvent e) {
adaptee.jTextField6_actionPerformed(e);
}
}
class NewCar_countmoney_t_focusAdapter extends FocusAdapter {
private NewCar adaptee;
NewCar_countmoney_t_focusAdapter(NewCar adaptee) {
this.adaptee = adaptee;
}
public void focusLost(FocusEvent e) {
adaptee.countmoney_t_focusLost(e);
}
}
class NewCar_lightid_t_focusAdapter extends FocusAdapter {
private NewCar adaptee;
NewCar_lightid_t_focusAdapter(NewCar adaptee) {
this.adaptee = adaptee;
}
public void focusLost(FocusEvent e) {
adaptee.lightid_t_focusLost(e);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -