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

📄 changediagnose.java

📁 宠物医院管理系统 包含宠物的注册 管理 收费 诊断等一系列过程控制 还包含配应的数据库 Jar包
💻 JAVA
字号:
package yd.pethospital.diagnoseregister.view;

import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import yd.pethospital.diagnose.jdbc.ChangeDiagnoseGet;

public class ChangeDiagnose extends JFrame{
	
	JLabel LNum,LDate,LProblem,LResult,LWays,LMan;          //标签:编号 就诊日期 症状 结果 措施 诊断人
	public static JTextField  TNum,TDate,TProblem,TResult,TWays,TMan;   //文本框:编号 就诊日期 症状 结果 措施 诊断人
	JButton BSure,BCancel;

	public ChangeDiagnose(){
		
		this.setTitle("修改诊断");                        //设置窗体标题、不可改变大小、位置、大小、空布局
	    this.setResizable(false);
	    this.setBounds(400, 150, 360, 360);
	    this.setLayout(null);
	    this.validate();
	    
	    LNum=new JLabel("宠物编号");                      //设置编号标签的 名称、位置大小、字体
	    LNum.setBounds(30,15,70,50);
	    LNum.setFont(new Font(null,Font.BOLD,15));
	    this.add(LNum);
	    
	    LDate=new JLabel("就诊日期");                     //设置就诊日期标签的 名称、位置大小、字体
	    LDate.setBounds(30,50,70,50);
	    LDate.setFont(new Font(null,Font.BOLD,15));
	    this.add(LDate);
	    
	    LProblem=new JLabel("症        状");              //设置症状标签的 名称、位置大小、字体
	    LProblem.setBounds(30,85,70,50);
	    LProblem.setFont(new Font(null,Font.BOLD,15));
	    this.add(LProblem);
	    
	    LResult=new JLabel("诊断结果");                   //设置结果标签的 名称、位置大小、字体
	    LResult.setBounds(30,120,70,50);
	    LResult.setFont(new Font(null,Font.BOLD,15));
	    this.add(LResult);
	    
	    LWays=new JLabel("处理措施");                     //设置措施标签的 名称、位置大小、字体
	    LWays.setBounds(30,155,70,50);
	    LWays.setFont(new Font(null,Font.BOLD,15));
	    this.add(LWays);
	    
	    LMan=new JLabel("诊  断  人");                    //设置诊断人标签的 名称、位置大小、字体
	    LMan.setBounds(30,190,70,50);
	    LMan.setFont(new Font(null,Font.BOLD,15));
	    this.add(LMan);
	    
	      TNum=new JTextField(20);                       //设置编号文本的位置大小、不可编辑性
	      TNum.setBounds(115,25,110,25);
	      TNum.setEditable(false);
	      this.add(TNum);
	      
	      TDate=new JTextField(50);                      //设置日期文本的位置大小
	      TDate.setBounds(115,60,230,25);
	      this.add(TDate);
	      
	      TProblem=new JTextField(50);                   //设置症状文本的位置大小
	      TProblem.setBounds(115,95,230,25);
	      this.add(TProblem);
	      
	      TResult=new JTextField(50);                    //设置结果文本的位置大小
	      TResult.setBounds(115,130,230,25);
	      this.add(TResult);
	      
	      TWays=new JTextField(50);                      //设置措施文本的位置大小
	      TWays.setBounds(115,165,230,25);
	      this.add(TWays);
	      
	      TMan=new JTextField(30);                       //设置诊断人文本的位置大小
	      TMan.setBounds(115,200,110,25);
	      this.add(TMan);
	      
		    BSure=new JButton("确定");                  //设置确定按钮
		    BSure.setBounds(50,260,70,25);
		    this.add(BSure);
	     
		    BSure.addActionListener(new ActionListener(){           //添加事件监听器

				   public void actionPerformed(ActionEvent e) {
					 
					   new ChangeDiagnoseGet(ChangeDiagnose.this);
				   } 
		    });
			        
		   BCancel=new JButton("取消");                 //设置取消按钮
		   BCancel.setBounds(200,260,70,25);
		   this.add(BCancel);
		   
		   BCancel.addActionListener(new ActionListener(){         //添加事件监听器

			   public void actionPerformed(ActionEvent e) {
				 
				   ChangeDiagnose.this.dispose();
				   new DiagnoseRegister();
			   }
		   });
		   
		  this.setVisible(true);                         //设置窗体可视化
	}
	
}

⌨️ 快捷键说明

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