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

📄 delmajorinfo.java

📁 在本系统中
💻 JAVA
字号:

package jin.internalFrame;

import java.awt.*;
import javax.swing.*;


import jin.handler.*;
import jin.view.ButtonsPanel;
 
//输入课程编号、课程名称、专业编号、状态     (表的字段:课程编号、课程名称、专业编号)
public class DelMajorInfo extends JInternalFrame 
{
	private JLabel label;
	private JComboBox comboBox;
	private ButtonsPanel buttonsPanel;
	
	
	private JFrame frame;
	private JDesktopPane desktopPane;
	
	private JPanel panel;
	
	public DelMajorInfo(JFrame frame,JDesktopPane desktopPane)
	{
		super("",true,true,true,true);
		this.frame=frame;
		this.desktopPane=desktopPane;
		
		label=new JLabel("选择要删除的专业编号");
		comboBox=new JComboBox();
		panel=new JPanel();
	
		buttonsPanel=new ButtonsPanel(1);
		
		String title="确定";
		buttonsPanel.setTitle(0,title);
		panel.add(label);
		panel.add(comboBox);
		panel.add(buttonsPanel);
		
		add(panel);
		
		desktopPane.add(this);
		frame.add(desktopPane);	
		
		DelMajorInfoHandler handler=new DelMajorInfoHandler(this);
		
		this.setSize(350,150);
		this.setVisible(true);
	}	
	
	
	public static void main(String args[])
	{
		JFrame frame=new JFrame();
	    JDesktopPane desktopPane=new JDesktopPane();
	    DelMajorInfo app=new DelMajorInfo(frame,desktopPane);
	    
	    frame.setSize(500,500);
	    frame.setVisible(true);	    
	}
	
	
	public JComboBox getComboBox()
	{
		return comboBox;
	}
	
	
	public ButtonsPanel getButtonsPanel()
	{
		return buttonsPanel;
	}	
}

⌨️ 快捷键说明

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