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

📄 generalpanel.java

📁 create the email in the server
💻 JAVA
字号:
package za.co.halo.SecureCommunications.gui.client2;
import java.awt.BorderLayout;
import java.awt.Color;

import java.awt.Dimension;

import javax.swing.ImageIcon;
import javax.swing.WindowConstants;
import javax.swing.JFrame;
import javax.swing.JPanel;

import za.co.halo.SecureCommunications.util.ImagePane;

/**
* This code was generated using CloudGarden's Jigloo
* SWT/Swing GUI Builder, which is free for non-commercial
* use. If Jigloo is being used commercially (ie, by a corporation,
* company or business for any purpose whatever) then you
* should purchase a license for each developer using Jigloo.
* Please visit www.cloudgarden.com for details.
* Use of Jigloo implies acceptance of these licensing terms.
* *************************************
* A COMMERCIAL LICENSE HAS NOT BEEN PURCHASED
* for this machine, so Jigloo or this code cannot be used legally
* for any corporate or commercial purpose.
* *************************************
*/
public class GeneralPanel extends javax.swing.JPanel {


	enum Images
	{
		NEW_EMAIL,
		FORWARD,
		REPLY,
		ACCOUNT,
		ADDRESSBOOK,
		DOWNLOADRULES,
		JUNKMAIL,
		FOLDERMAILRULES,
		LANGUAGEFILTER,
		DAILERSETTINGS
	}
	
	
	private Images image;
	

	
	public GeneralPanel(Images i) {
		super();
		setImage(i);
		initGUI();
	}
	
	private void initGUI() {
		try {
			BorderLayout thisLayout = new BorderLayout();
			
			this.setLayout(thisLayout);
			setPreferredSize(new Dimension(400, 800));
			{
				
				ImagePane imagePane;
				if(image == Images.NEW_EMAIL )
				{
					ImageIcon icon = new ImageIcon("Banners/newEmailBanner.png");
					imagePane = new ImagePane(icon, icon.getIconWidth(),icon.getIconHeight());
					imagePane.setBackground(new Color(15,65,108));
					this.add(imagePane,BorderLayout.NORTH);
				}
				if(image == Images.LANGUAGEFILTER )
				{
					ImageIcon icon = new ImageIcon("Banners/LanguageFilterBanner.png");
					imagePane = new ImagePane(icon, icon.getIconWidth(),icon.getIconHeight());
					imagePane.setBackground(new Color(15,65,108));
					this.add(imagePane,BorderLayout.NORTH);
				}
				if(image == Images.FORWARD )
				{
					ImageIcon icon = new ImageIcon("Banners/forwardBanner.png");
					imagePane = new ImagePane(icon, icon.getIconWidth(),icon.getIconHeight());
					imagePane.setBackground(new Color(15,65,108));
					this.add(imagePane,BorderLayout.NORTH);
				}
				if(image == Images.DAILERSETTINGS )
				{
					ImageIcon icon = new ImageIcon("Banners/DailerBanner.png");
					imagePane = new ImagePane(icon, icon.getIconWidth(),icon.getIconHeight());
					imagePane.setBackground(new Color(15,65,108));
					this.add(imagePane,BorderLayout.NORTH);
				}
				if(image == Images.REPLY )
				{
					ImageIcon icon = new ImageIcon("Banners/replyBanner.png");
					imagePane = new ImagePane(icon, icon.getIconWidth(),icon.getIconHeight());
					imagePane.setBackground(new Color(15,65,108));
					this.add(imagePane,BorderLayout.NORTH);
				}
				if(image == Images.ACCOUNT)
				{
					setPreferredSize(new Dimension(600, 800));
					ImageIcon icon = new ImageIcon("Banners/accountsBanner.png");
					imagePane = new ImagePane(icon, icon.getIconWidth(),icon.getIconHeight());
					imagePane.setBackground(new Color(15,65,108));
					this.add(imagePane,BorderLayout.NORTH);
				}
				if(image == Images.ADDRESSBOOK)
				{
					setPreferredSize(new Dimension(600, 800));
					ImageIcon icon = new ImageIcon("Banners/addressBookBanner.png");
					imagePane = new ImagePane(icon, icon.getIconWidth(),icon.getIconHeight());
					imagePane.setBackground(new Color(15,65,108));
					this.add(imagePane,BorderLayout.NORTH);
				}
				if(image == Images.DOWNLOADRULES )
				{
					setPreferredSize(new Dimension(620, 800));
					ImageIcon icon = new ImageIcon("Banners/DownloadRulesBanner.png");
					imagePane = new ImagePane(icon, icon.getIconWidth(),icon.getIconHeight());
					imagePane.setBackground(new Color(15,65,108));
					this.add(imagePane,BorderLayout.NORTH);
				}
				if(image == Images.JUNKMAIL )
				{
					setPreferredSize(new Dimension(620, 800));
					ImageIcon icon = new ImageIcon("Banners/junkMail.png");
					imagePane = new ImagePane(icon, icon.getIconWidth(),icon.getIconHeight());
					imagePane.setBackground(new Color(15,65,108));
					this.add(imagePane,BorderLayout.NORTH);
				}
				if(image == Images.FOLDERMAILRULES )
				{
					setPreferredSize(new Dimension(620, 800));
					ImageIcon icon = new ImageIcon("Banners/folderRule.png");
					imagePane = new ImagePane(icon, icon.getIconWidth(),icon.getIconHeight());
					imagePane.setBackground(new Color(15,65,108));
					this.add(imagePane,BorderLayout.NORTH);
				}
			}
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
	
	public void setImage(Images i)
	{
		image = i;
	}

}

⌨️ 快捷键说明

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