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

📄 stepgeneralpanel.java

📁 一个用于监控WEB服务器和数据库服务器的客户端程序。
💻 JAVA
字号:
package com.jobcn.ui;

import java.awt.Font;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.ItemEvent;
import java.awt.event.ItemListener;
import java.util.HashMap;

import javax.swing.JComboBox;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTextArea;
import javax.swing.JTextField;

import com.jobcn.control.Constant;

/**
 * <p>
 * Title: 卓博营运支撑系统
 * </p>
 * 
 * <p>
 * Description: 为本企业内部运作提供支撑,为企业資源的E化管理提供解決方案
 * </p>
 * 
 * <p>
 * Copyright: Copyright (c) 2006
 * </p>
 * 
 * <p>
 * Company: 卓博信息科技有限公司
 * </p>
 * 
 * @author Henry
 * @version 1.0
 */
public class StepGeneralPanel extends JPanel {

	private JTextField stepPath;

	private JComboBox procPack;

	private JComboBox stepType;

	private JTextArea describe;

	private JTextField stepName;

	/**
	 * Create the panel
	 */
	public StepGeneralPanel() {
		super();
		setLayout(null);
		final JLabel label = new JLabel();
		label.setFont(new Font("", Font.PLAIN, 12));
		label.setBounds(55, 13, 60, 26);
		label.setText("步骤名");
		add(label);

		final JLabel label_1 = new JLabel();
		label_1.setFont(new Font("", Font.PLAIN, 12));
		label_1.setBounds(55, 46, 60, 25);
		label_1.setText("类别");
		add(label_1);

		final JLabel label_2 = new JLabel();
		label_2.setFont(new Font("", Font.PLAIN, 12));
		label_2.setBounds(55, 78, 60, 23);
		label_2.setText("别名");
		add(label_2);

		final JLabel label_3 = new JLabel();
		label_3.setFont(new Font("", Font.PLAIN, 12));
		label_3.setBounds(56, 139, 60, 23);
		label_3.setText("描述");
		add(label_3);

		stepName = new JTextField();
		stepName.setFont(new Font("", Font.PLAIN, 12));
		stepName.setBounds(142, 16, 282, 21);
		add(stepName);

		describe = new JTextArea();
		describe.setFont(new Font("", Font.PLAIN, 12));
		describe.setBounds(143, 139, 282, 89);
		add(describe);

		stepType = new JComboBox(Constant.stepType);
		stepType.setFont(new Font("", Font.PLAIN, 12));
		stepType.setBounds(142, 44, 282, 23);
		add(stepType);

		procPack = new JComboBox(Constant.stepPack);
		procPack.setFont(new Font("", Font.PLAIN, 12));
		procPack.setBounds(142, 76, 282, 23);
		add(procPack);
		procPack.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				stepPath.setText((Constant.packMap.get(procPack.getSelectedIndex())[1]));
			}
		});

		final JLabel label_4 = new JLabel();
		label_4.setFont(new Font("", Font.PLAIN, 12));
		label_4.setText("路径");
		label_4.setBounds(56, 105, 60, 26);
		add(label_4);

		stepPath = new JTextField(Constant.stepPath[0]);
		stepPath.setFont(new Font("", Font.PLAIN, 12));
		stepPath.setBounds(141, 110, 282, 21);
		add(stepPath);
	


	}

	public JTextArea getDescribe() {
		return describe;
	}

	public void setDescribe(JTextArea describe) {
		this.describe = describe;
	}

	public JComboBox getProcPack() {
		return procPack;
	}

	public void setProcPack(JComboBox procPack) {
		this.procPack = procPack;
	}

	public JTextField getStepName() {
		return stepName;
	}

	public void setStepName(JTextField stepName) {
		this.stepName = stepName;
	}

	public JComboBox getStepType() {
		return stepType;
	}

	public void setStepType(JComboBox stepType) {
		this.stepType = stepType;
	}


	public JTextField getStepPath() {
		return stepPath;
	}

	public void setStepPath(JTextField stepPath) {
		this.stepPath = stepPath;
	}
}

⌨️ 快捷键说明

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