亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? servergui.java

?? RemoteWAP is a Remote Administration Tool for any Operating System that can support the Java Virtual
?? JAVA
?? 第 1 頁 / 共 2 頁
字號:
/* *  ServerGUI.java * *  Copyright (C) 2004 Jay Scott * *  This program is free software; you can redistribute it and/or modify *  it under the terms of the GNU General Public License as published by *  the Free Software Foundation; either version 2 of the License, or *  (at your option) any later version. * *  This program is distributed in the hope that it will be useful, *  but WITHOUT ANY WARRANTY; without even the implied warranty of *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the *  GNU General Public License for more details. * *  You should have received a copy of the GNU General Public License *  along with this program (gpl.txt); if not, write to the Free Software *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA */package ui;import java.awt.Dimension;import java.awt.FlowLayout;import java.awt.event.ActionEvent;import java.awt.event.ActionListener;import java.awt.event.KeyEvent;import java.io.File;import java.io.IOException;import java.net.MalformedURLException;import java.net.URL;import java.text.Format;import java.text.SimpleDateFormat;import java.util.Date;import javax.swing.BorderFactory;import javax.swing.ImageIcon;import javax.swing.JButton;import javax.swing.JComponent;import javax.swing.JEditorPane;import javax.swing.JFileChooser;import javax.swing.JLabel;import javax.swing.JOptionPane;import javax.swing.JPanel;import javax.swing.JScrollPane;import javax.swing.JTabbedPane;import javax.swing.JTextArea;import javax.swing.JTextField;import javax.swing.JViewport;import javax.swing.UIManager;import javax.swing.border.Border;import javax.swing.border.EtchedBorder;import javax.swing.border.TitledBorder;import com.birosoft.liquid.*;import viewer.LogManager;import server.ServerManager;import config.ConfigManager;/** * This is the main GUI class. *  * @author Jay Scott * @created July 21, 2004 * @version 0.4 */public class ServerGUI extends JPanel implements ActionListener {	/**	 * Status text area to append to and keep the user informed of what is	 * happening with the server.	 */	public static JTextArea StatusText = new JTextArea();	/**	 * Label to show current server status online or offline	 */	public static JLabel lblCurrent = new JLabel();	/* Global variables */	String SelectedFile = null;	String writeLog = null;	/* Miscellaneous objects */	FlowLayout MainLayout = new FlowLayout();	TitledBorder mainTitleBorder;	Border LoweredEtched;	Format TimeFormat;	/* Objects for the Server panel */	JButton btnStartServer = new JButton();	JButton btnRestartServer = new JButton();	JButton btnStopServer = new JButton();	/* Objects for the Log Viewer panel */	JButton btnViewLog = new JButton();	JButton btnDeleteLog = new JButton();	JButton btnSelectFile = new JButton();	JTextField txtFile = new JTextField(35);	JTextArea fileViewer = new JTextArea();	/* Objects for the Configure panel */	JButton btnUpdate = new JButton();	JTextField configPort = new JTextField(10);	JTextField configPasscode = new JTextField(10);	JTextField configLogPath = new JTextField(12);	/* Our own objects */	LogManager log = new LogManager();	ConfigManager cfg = new ConfigManager();	ServerManager server = new ServerManager();	/**	 * Constructor for the ServerGUI object	 */	public ServerGUI() {				/* Set look and feel */		try {			UIManager.setLookAndFeel(new LiquidLookAndFeel());			}		catch (Exception e) {}						JTabbedPane ServerTabbedPane = new JTabbedPane();		Date date = new Date();		TimeFormat = new SimpleDateFormat("hh:mm:ss a");		/* Assign the images to a ImageIcon then display them in the tabs */		ImageIcon WelcomeIcon = createImageIcon("home.gif");		ImageIcon ServerIcon = createImageIcon("server.gif");		ImageIcon LogIcon = createImageIcon("logs.gif");		ImageIcon ConfigIcon = createImageIcon("config.gif");		ImageIcon HelpIcon = createImageIcon("help.gif");		/* Set properties of the border */		LoweredEtched = BorderFactory.createEtchedBorder(EtchedBorder.LOWERED);		/* 		 * Here we build the welcome tab. We call on the makeWelcome function		 * which returns a panel which we then add to the welcome tab.		 */		JComponent WelcomePanel = makeWelcome();		ServerTabbedPane.addTab("  Welcome", WelcomeIcon, WelcomePanel,				"Welcome to RemoteWAP");		WelcomePanel.setPreferredSize(new Dimension(680, 400));		ServerTabbedPane.setMnemonicAt(0, KeyEvent.VK_1);		/* Create the Server tab with the same extras as above */		JComponent ServerPanel = makeServer();		ServerPanel.setPreferredSize(new Dimension(680, 400));		ServerTabbedPane.addTab("  Server", ServerIcon, ServerPanel,				"Server Manager");		ServerTabbedPane.setMnemonicAt(1, KeyEvent.VK_2);		/* Create the Logs tab with the same extras as above */		JComponent LogPanel = makeLogs();		LogPanel.setPreferredSize(new Dimension(680, 400));		ServerTabbedPane.addTab("  Logs", LogIcon, LogPanel, "Log Manager");		ServerTabbedPane.setMnemonicAt(2, KeyEvent.VK_3);		/* Create the Configure tab with the same extras as above */		JComponent ConfigPanel = makeConfig();		ConfigPanel.setPreferredSize(new Dimension(680, 400));		ServerTabbedPane.addTab("  Configure", ConfigIcon, ConfigPanel,				"Config Manager");		ServerTabbedPane.setMnemonicAt(3, KeyEvent.VK_4);		/* Create the Help tab with the same extras as above */		JComponent HelpPanel = makeHelp();		HelpPanel.setPreferredSize(new Dimension(680, 400));		ServerTabbedPane				.addTab("  Help", HelpIcon, HelpPanel, "RemoteWAP Help");		ServerTabbedPane.setMnemonicAt(4, KeyEvent.VK_5);		/* Now add the newly created tabs to the main tab frame */		add(ServerTabbedPane);	}	/**	 * Builds the Welcome pane to add into the tab frame.	 * 	 * @return JPane with the welcome page objects	 */	private JComponent makeWelcome() {		ImageIcon MainLogo = new ImageIcon("images" + File.separatorChar				+ "phones.gif");		JPanel WelcomePanel = new JPanel(false);		JPanel AboutPanel = new JPanel(false);		JLabel lblInfo = new JLabel();		JLabel WelcomeLogo = new JLabel();		MainLayout.setAlignment(FlowLayout.CENTER);		lblInfo				.setText("<html><html><font size='2'><center><br>"						+ "RemoteWAP is a Remote Administration Tool for the linux Operating System "						+ "that runs<br>on the Java Virtual Machine. It has been designed for "						+ "anyone who wishes to have complete control<br> of their OS anywhere by using "						+ "a WAP enabled Mobile Phone. RemoteWAP is developed using<br> Java and WML for "						+ "the client front-end pages. RemoteWAP has a Java Swing-GUI for easy "						+ "control" + "</font></html></center>");		/* Setup the border properties and the title */		mainTitleBorder = BorderFactory.createTitledBorder(LoweredEtched,				"RemoteWAP Project");		AboutPanel.setBorder(mainTitleBorder);		/* Set the properties of the About panel */		AboutPanel.setPreferredSize(new Dimension(670, 120));		AboutPanel.add(lblInfo);		/* Add everything to the main panel and all in the right order */		WelcomeLogo.setIcon(MainLogo);		WelcomePanel.setLayout(MainLayout);		WelcomePanel.add(WelcomeLogo);		WelcomePanel.add(AboutPanel);		/* Return the welcome panel */		return WelcomePanel;	}	/**	 * This builds the Server pane tab	 * 	 * @return JPane with the server tab objects.	 */	public JComponent makeServer() {		FlowLayout StatusLayout = new FlowLayout();		JPanel CurrentPane = new JPanel();		JPanel ServerPanel = new JPanel(false);		JPanel OptionsPane = new JPanel();		JScrollPane StatusPane = new JScrollPane();		String currentTime = getTime();		StatusLayout.setAlignment(FlowLayout.RIGHT);		lblCurrent.setText("<html><font color='red' size='2'>"				+ "SERVER OFFLINE</font></html>");		/* Build the Status Pane panel and scroll text box and set a few properties */		StatusPane.setWheelScrollingEnabled(true);		StatusPane.setViewportView(StatusText);		StatusPane.setPreferredSize(new Dimension(670, 270));		StatusText.setBackground(UIManager.getColor("Panel.background"));		StatusText.setEditable(false);		StatusText.setLineWrap(true);		OptionsPane.setPreferredSize(new Dimension(270, 60));		/* Create and then add the buttons to the Options Pane panel */		btnStartServer.addActionListener(this);		btnStopServer.addActionListener(this);		btnRestartServer.addActionListener(this);		/* Set the properties of the border and the title */		LoweredEtched = BorderFactory.createEtchedBorder(EtchedBorder.LOWERED);		mainTitleBorder = BorderFactory.createTitledBorder(LoweredEtched,				"Server Options");		OptionsPane.setBorder(mainTitleBorder);		/* Give the buttons names */		btnStartServer.setText("Start");		btnStopServer.setText("Stop");		btnRestartServer.setText("Restart");		/* Get the current server settings */		int tmpPortNumber = cfg.getPortNumber();		String tmpLogPath = cfg.getLogPath();		/* Set a few messages and write to the log */		StatusText.append('[' + currentTime + ']'				+ " - Loading Config File...\n");		StatusText.append('[' + currentTime + ']' + " - Listening on port "				+ tmpPortNumber + '\n');		StatusText.append('[' + currentTime + ']' + " - Saving log files to "				+ tmpLogPath + " Directory\n");		log.writeLogFile(StatusText.getText(), tmpLogPath);		/* Now set the size of the buttons */		btnStartServer.setPreferredSize(new java.awt.Dimension(80, 20));		btnStopServer.setPreferredSize(new java.awt.Dimension(80, 20));		btnRestartServer.setPreferredSize(new java.awt.Dimension(80, 20));		// Add the buttons to the Options Pane */		OptionsPane.add(btnStartServer);		OptionsPane.add(btnStopServer);		OptionsPane.add(btnRestartServer);		OptionsPane.setLayout(StatusLayout);		// Create the Current Pane */ 		CurrentPane.add(lblCurrent);		// Now added it all to the main Server Pane and then return it */		ServerPanel.setLayout(MainLayout);		ServerPanel.add(OptionsPane);		ServerPanel.add(StatusPane);		ServerPanel.add(CurrentPane);		return ServerPanel;	}	/**	 * This builds the Log tab pane	 * 	 * @return JPane of the log pane for the tab frame	 */	private JComponent makeLogs() {		JPanel LogPanel = new JPanel(false);		JPanel SelectPane = new JPanel();		JScrollPane LogViewer = new JScrollPane();		JLabel lblSelect = new JLabel();		TitledBorder ConfigTitle;		MainLayout.setAlignment(FlowLayout.CENTER);		/* Set the border properties */		ConfigTitle = BorderFactory.createTitledBorder(LoweredEtched,				"Select File");		SelectPane.setBorder(ConfigTitle);		/* Set some panel properties */		LogViewer.setViewportView(fileViewer);		LogViewer.setPreferredSize(new Dimension(650, 280));		SelectPane.setPreferredSize(new Dimension(620, 80));		/* Set some properties of the log viewer */		fileViewer.setBackground(UIManager.getColor("Panel.background"));		fileViewer.setEditable(false);		fileViewer.setLineWrap(true);		/* Set the text of some objects */

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产自产v一区二区三区c| 亚洲欧美色综合| 中文字幕亚洲成人| 日本不卡视频在线观看| 播五月开心婷婷综合| 91精品国产综合久久久久久漫画 | 黄色成人免费在线| 欧洲激情一区二区| 欧美国产丝袜视频| 久久99国内精品| 67194成人在线观看| 亚洲第一福利视频在线| 国产成人免费9x9x人网站视频| 欧美日韩国产免费| 亚洲精品欧美专区| 成人av网站在线观看| 日韩欧美一级二级三级| 亚洲电影在线播放| 色综合一个色综合亚洲| 国产精品网站在线播放| 国产最新精品免费| 欧美成人性福生活免费看| 午夜精品久久久| 欧美日韩一区二区电影| 一区二区三区在线观看视频 | 日韩国产一二三区| 欧美色视频一区| 亚洲综合视频网| 色呦呦国产精品| 亚洲精品v日韩精品| www.综合网.com| 中文字幕一区在线观看| 成人污视频在线观看| 日本一区二区三区国色天香 | 99久久精品免费精品国产| 欧美经典一区二区| 成人一区二区三区视频| 国产日产欧美一区| 99久久er热在这里只有精品15| 中文欧美字幕免费| 91一区二区在线| 亚洲素人一区二区| 欧美日韩一区精品| 日本va欧美va欧美va精品| 欧美一区二区免费| 国产精品自拍一区| 中文字幕一区二区三区蜜月| 成人福利在线看| 亚洲自拍偷拍图区| 欧美一区二区免费视频| 国产精品一二三| 亚洲欧美在线视频观看| 欧美色涩在线第一页| 免费观看日韩电影| 国产精品综合视频| 国产福利一区二区三区在线视频| 国产精品正在播放| 中文字幕在线观看不卡| 色噜噜狠狠色综合中国| 日韩电影在线一区二区三区| 日韩午夜激情av| 成人一级视频在线观看| 亚洲一区二区在线观看视频| 91麻豆精品国产91久久久 | 国产精品久久久久久久久快鸭 | 美女高潮久久久| 国产日产欧美一区二区视频| 91美女在线视频| 久久国产精品72免费观看| 欧美国产精品中文字幕| 欧美在线免费观看视频| 久久99精品国产91久久来源| 精品一区精品二区高清| 久久久99久久| 欧美视频一区二| 国产成人精品一区二区三区四区 | 欧美日韩国产成人在线91| 国内精品伊人久久久久av影院 | 日韩在线播放一区二区| 中文字幕二三区不卡| 欧美精品成人一区二区三区四区| 懂色一区二区三区免费观看| 中文字幕巨乱亚洲| 在线观看国产91| 高清日韩电视剧大全免费| 亚洲大片精品永久免费| 国产精品电影一区二区| 欧美大片顶级少妇| 欧美三级日韩在线| 97久久人人超碰| 国产激情视频一区二区在线观看| 午夜激情一区二区三区| 亚洲精品视频一区| 中文字幕的久久| 精品国产乱码久久久久久老虎| 欧亚一区二区三区| 99久久国产免费看| 成人av免费在线观看| 久久97超碰国产精品超碰| 亚洲一区二区三区四区在线免费观看 | 色噜噜久久综合| 成人av网址在线| 国产99久久久国产精品免费看| 男男成人高潮片免费网站| 亚洲一区在线视频| 亚洲欧洲精品天堂一级| 日本一区二区在线不卡| 久久久久久久精| 欧美精品一区二区三| 欧美成人猛片aaaaaaa| 日韩精品专区在线影院重磅| 欧美电影影音先锋| 宅男噜噜噜66一区二区66| 欧美日韩成人激情| 91精品国模一区二区三区| 欧美一区二区三区人| 这里只有精品电影| 欧美变态tickle挠乳网站| 精品日韩在线观看| 久久久久久97三级| 国产女主播视频一区二区| 国产精品热久久久久夜色精品三区| 国产婷婷色一区二区三区在线| 国产亚洲欧洲一区高清在线观看| 久久久久97国产精华液好用吗| 精品99一区二区| 国产精品污www在线观看| 亚洲人成伊人成综合网小说| 亚洲激情av在线| 日av在线不卡| 国产一区 二区| 91同城在线观看| 欧美日韩你懂的| 久久久一区二区| 一区二区三区中文字幕在线观看| 尤物视频一区二区| 琪琪久久久久日韩精品| 国产一区三区三区| 91香蕉视频mp4| 欧美一区二区在线播放| 2023国产精品视频| 亚洲天堂中文字幕| 日韩电影一区二区三区| 国产福利一区二区三区视频| 97久久久精品综合88久久| 欧美老肥妇做.爰bbww视频| 精品国产91亚洲一区二区三区婷婷| 亚洲国产精品成人综合色在线婷婷 | 亚洲精品一二三区| 日韩二区在线观看| 成人av网站在线观看| 欧美图区在线视频| 国产视频一区二区在线| 亚洲制服欧美中文字幕中文字幕| 久久99九九99精品| 色呦呦一区二区三区| 精品国产一区二区三区av性色| 国产精品狼人久久影院观看方式| 日本午夜一区二区| 99久久婷婷国产综合精品| 日韩视频国产视频| 亚洲免费观看高清完整版在线 | 亚洲精品国产高清久久伦理二区| 日韩国产欧美在线播放| 成人黄色免费短视频| 在线不卡一区二区| 国产精品久久综合| 久久不见久久见免费视频1| 91美女片黄在线| 久久精品人人做人人综合| 亚洲v中文字幕| jlzzjlzz欧美大全| 26uuu国产电影一区二区| 偷拍一区二区三区| 色综合av在线| 国产精品白丝在线| 国产精品99久久久久久似苏梦涵 | 日本欧美在线看| 在线中文字幕一区二区| 国产精品你懂的| 黄色成人免费在线| 日韩欧美一区在线| 日韩精品国产欧美| 在线精品国精品国产尤物884a| 国产精品青草久久| 国产成人自拍在线| 久久麻豆一区二区| 国产一区二区不卡老阿姨| 欧美一二三四区在线| 午夜精品一区二区三区三上悠亚| 91在线精品一区二区三区| 国产精品无人区| 成人免费看黄yyy456| 国产日韩一级二级三级| 国产一区二区三区在线观看免费 | 人人狠狠综合久久亚洲| 欧美日韩高清一区二区| 亚洲www啪成人一区二区麻豆| 日本韩国一区二区| 亚洲影院久久精品|