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

📄 myshowallagent.java

📁 一套基于JAVA开发的完整版航空订票系统,代码简洁,适合JAVA初学者研究
💻 JAVA
字号:
package com.tarena.abs.server;import java.awt.*;import java.util.*;import javax.swing.*;import com.tarena.abs.model.Agent;public class MyShowAllAgent extends JDialog{	private static final long serialVersionUID = 3361555988457861806L;	private JTextArea jta;	private JScrollPane jsp;	public MyShowAllAgent(JFrame frame){		super(frame,"注册代理商:");		jta=new JTextArea(30,40);		HashSet set = (HashSet) ServerMainClass.agentDao.getAllAgent();		Iterator it = set.iterator();		int i = 0;		while(it.hasNext()){			Agent agent = (Agent)it.next();			jta.append((++i)+".\n代理商: "+agent.getName()+"\nEmail: "+agent.getEmail()+"\n积分: "+agent.getScore()+"\n");		}		jsp = new JScrollPane(jta);		this.add(jsp,BorderLayout.CENTER);		showMe();	}	private void showMe(){		this.setSize(500,600);		this.setVisible(true);		this.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);//?	}}

⌨️ 快捷键说明

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