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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? ftpframe.java

?? 一個(gè)遠(yuǎn)程登陸器的原代碼
?? JAVA
?? 第 1 頁 / 共 3 頁
字號:
// Copyright (C) 2002-2005 Ultr@VNC Team.  All Rights Reserved.
// Copyright (C) 2004 Kenn Min Chong, John Witchel.  All Rights Reserved.
//
//This 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 software 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 software; if not, write to the Free Software
//Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307,
//USA.
//


import javax.swing.JFrame;
import java.awt.*;
import java.awt.event.*;
import java.io.*;
import java.util.ArrayList;
import java.util.Vector;
import javax.swing.*;


/*
 * Created on Feb 25, 2004
 *
 */

/**
 * @author John Witchel, Kenn Min Chong
 *
 */
public class FTPFrame extends JFrame implements ActionListener, MouseListener {
	VncViewer viewer;

	private javax.swing.JPanel jContentPane = null;
	private javax.swing.JPanel topPanel = null;
	private javax.swing.JPanel topPanelLocal = null;
	private javax.swing.JPanel topPanelRemote = null;
	private javax.swing.JPanel topPanelCenter = null;
	private javax.swing.JPanel statusPanel = null;
	private javax.swing.JPanel remotePanel = null;
	private javax.swing.JPanel localPanel = null;
	private javax.swing.JPanel buttonPanel = null;
	private javax.swing.JButton sendButton = null;
	private javax.swing.JButton receiveButton = null;
	private javax.swing.JButton deleteButton = null;
	private javax.swing.JButton newFolderButton = null;
	private javax.swing.JButton stopButton = null;
	private javax.swing.JButton closeButton = null;
	private javax.swing.JButton dummyButton = null;
	private javax.swing.JComboBox localDrivesComboBox = null;
	private javax.swing.JComboBox remoteDrivesComboBox = null;
	private javax.swing.JTextField localMachineLabel = null;
	private javax.swing.JTextField remoteMachineLabel = null;
	private javax.swing.JButton localTopButton = null;
	private javax.swing.JButton remoteTopButton = null;
	private javax.swing.JScrollPane localScrollPane = null;
	private javax.swing.JList localFileTable = null;
	private javax.swing.JScrollPane remoteScrollPane = null;
	private javax.swing.JList remoteFileTable = null;
	private javax.swing.JTextField remoteLocation = null;
	private javax.swing.JTextField localLocation = null;
	private javax.swing.JTextField localStatus = null;
	public javax.swing.JTextField remoteStatus = null;
	public javax.swing.JComboBox historyComboBox = null;
	public javax.swing.JProgressBar jProgressBar = null;
	public javax.swing.JTextField connectionStatus = null;
	public boolean updateDriveList;
	private Vector remoteList = null;
	private Vector localList = null;
	private File currentLocalDirectory = null;	// Holds the current local Directory
	private File currentRemoteDirectory = null;	// Holds the current remote Directory
	private File localSelection = null;		// Holds the currently selected local file  
	private String remoteSelection = null;	// Holds the currently selected remote file
	public String selectedTable = null;
	
//	 sf@2004 - Separate directories and files for better lisibility
	private ArrayList DirsList;
	private ArrayList FilesList;	

	public static void main(String[] args) {
	}
	/**
	 * This is the default constructor
	 
	public FTPFrame() {
		super();
		initialize();
	}
	*/

	/**
	 * This is Kenn's Constructor
	 *
	 */
	FTPFrame(VncViewer v) {
		super("Ultr@VNC File Transfer");
		viewer = v;
		// this.setUndecorated(true); // sf@2004
		this.setResizable(false);  // sf@2004
		setSize(320, 240);
		
		// sf@2004
		DirsList = new ArrayList();
		FilesList = new ArrayList();
		
		initialize();
	}
	
	 /* Refreshing local and remote directory lists
	  * after an operation has been performed
	 */
	 void refreshLocalLocation()
	 {
	 	File f = new File(localLocation.getText());
	 	this.changeLocalDirectory(f);
	 }
	 
	 void refreshRemoteLocation()
	 {
		remoteList.clear();
		remoteFileTable.setListData(remoteList);	
		viewer.rfb.readServerDirectory(remoteLocation.getText());
	 }
	 
	/*
	 * Prints the list of drives on the remote directory and returns a String[].  
	 * str takes as string like A:fC:lD:lE:lF:lG:cH:c
	 * in the form Drive Letter:Drive Type where 
	 * f = floppy, l = local drive, c=CD-ROM, n = network
	 */
	String[] printDrives(String str) {
		System.out.println(str);
		updateDriveList = true;
		remoteDrivesComboBox.removeAllItems();
		int size = str.length();
		String driveType = null;
		String[] drive = new String[str.length() / 3];

		// Loop through the string to create a String[]
		for (int i = 0; i < size; i = i + 3) {
			drive[i / 3] = str.substring(i, i + 2);
			driveType = str.substring(i + 2, i + 3);
			if (driveType.compareTo("f") == 0)
				drive[i / 3] += "\\ Floppy";
			if (driveType.compareTo("l") == 0)
				drive[i / 3] += "\\ Local Disk";
			if (driveType.compareTo("c") == 0)
				drive[i / 3] += "\\ CD-ROM";
			if (driveType.compareTo("n") == 0)
				drive[i / 3] += "\\ Network";

			remoteDrivesComboBox.addItem(drive[i / 3]);
		}
		//sf@ - Select Drive C:as default if possible
		boolean bFound = false;
		for(int i = 0; i < remoteDrivesComboBox.getItemCount() ; i++)
		{
			if(remoteDrivesComboBox.getItemAt(i).toString().substring(0,1).toUpperCase().equals("C"))
			{
				remoteDrivesComboBox.setSelectedIndex(i);
				bFound = true;
			}
		}
		if (!bFound) remoteDrivesComboBox.setSelectedIndex(0);
		updateDriveList = false;
		return drive;
	}
	
	/*Disable buttons/lists while file transfer is in progress*/
	
	public void disableButtons()
	{
		closeButton.setEnabled(false);
		deleteButton.setEnabled(false);
		localTopButton.setEnabled(false);
		newFolderButton.setEnabled(false);
		stopButton.setVisible(true);
		stopButton.setEnabled(true);
		receiveButton.setEnabled(false);
		remoteTopButton.setEnabled(false);
		sendButton.setEnabled(false);
		remoteFileTable.setEnabled(false);
		localFileTable.setEnabled(false);	
		localLocation.setEnabled(false);
		remoteLocation.setEnabled(false);	
		remoteDrivesComboBox.setEnabled(false);
		localDrivesComboBox.setEnabled(false);
		setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE); // sf@2004
		
	}
	/*Enable buttons/lists after file transfer is done*/
	
	public void enableButtons()
	{
		closeButton.setEnabled(true);
		deleteButton.setEnabled(true);
		localTopButton.setEnabled(true);
		newFolderButton.setEnabled(true);
		stopButton.setVisible(false);
		stopButton.setEnabled(false);
		receiveButton.setEnabled(true);
		remoteTopButton.setEnabled(true);
		sendButton.setEnabled(true);
		remoteFileTable.setEnabled(true);
		localFileTable.setEnabled(true);
		localLocation.setEnabled(true);		
		remoteLocation.setEnabled(true);
		remoteDrivesComboBox.setEnabled(true);
		localDrivesComboBox.setEnabled(true);
		// setDefaultCloseOperation(JFrame.HIDE_ON_CLOSE); // sf@2004
	}

	/*
	 * Print Directory prints out all the contents of a directory
	 */
	void printDirectory(ArrayList a) {

		for (int i = 0; i < a.size(); i++) {
			remoteList.addElement(a.get(i));
		}
		remoteFileTable.setListData(remoteList);
	}

	/**
	 * This method initializes this
	 * 
	 * @return void
	 */
	private void initialize() {
		this.setSize(794, 500);
		this.setContentPane(getJContentPane());
		updateDriveList = true;
		}
	/**
	 * This method initializes jContentPane.  This is the main content pane
	 * 
	 * @return javax.swing.JPanel
	 */
	private javax.swing.JPanel getJContentPane() {
		if (jContentPane == null) {
			jContentPane = new javax.swing.JPanel();
			jContentPane.setLayout(new java.awt.BorderLayout());
			jContentPane.add(getTopPanel(), java.awt.BorderLayout.NORTH);
			jContentPane.add(getStatusPanel(), java.awt.BorderLayout.SOUTH);
			jContentPane.add(getRemotePanel(), java.awt.BorderLayout.EAST);
			jContentPane.add(getLocalPanel(), java.awt.BorderLayout.WEST);
			jContentPane.add(getButtonPanel(), java.awt.BorderLayout.CENTER);
		}
		return jContentPane;
	}
	/**
	 * This method initializes topPanel
	 * 
	 * @return javax.swing.JPanel
	 */
	private javax.swing.JPanel getTopPanelLocal() {
		if (topPanelLocal == null) {
			topPanelLocal = new javax.swing.JPanel();
			topPanelLocal.setLayout(new java.awt.BorderLayout());
			topPanelLocal.setPreferredSize(new java.awt.Dimension(325, 22));
			topPanelLocal.add(getLocalDrivesComboBox(), java.awt.BorderLayout.WEST);
			topPanelLocal.add(getLocalMachineLabel(), java.awt.BorderLayout.CENTER);
			topPanelLocal.add(getLocalTopButton(), java.awt.BorderLayout.EAST);
			topPanelLocal.setBackground(java.awt.Color.lightGray);
		}
		return topPanelLocal;
	}
	
	/**
	 * This method initializes topPanelRemote
	 * 
	 * @return javax.swing.JPanel
	 */
	private javax.swing.JPanel getTopPanelRemote() {
		if (topPanelRemote == null) {
			topPanelRemote = new javax.swing.JPanel();
			topPanelRemote.setLayout(new java.awt.BorderLayout());
			topPanelRemote.setPreferredSize(new java.awt.Dimension(325, 20));
			topPanelRemote.add(getRemoteDrivesComboBox(), java.awt.BorderLayout.WEST);
			topPanelRemote.add(getRemoteMachineLabel(), java.awt.BorderLayout.CENTER);
			topPanelRemote.add(getRemoteTopButton(), java.awt.BorderLayout.EAST);
			topPanelRemote.setBackground(java.awt.Color.lightGray);
		}
		return topPanelRemote;
	}

	/**
	 * This method initializes topPanelRemote
	 * 
	 * @return javax.swing.JPanel
	 */
	private javax.swing.JPanel getTopPanelCenter() {
		if (topPanelCenter == null) {
			topPanelCenter = new javax.swing.JPanel();
			topPanelCenter.add(getDummyButton(), null);
		}
		return topPanelCenter;
	}
	
	/**
	 * This method initializes topPanel
	 * 
	 * @return javax.swing.JPanel
	 */
	private javax.swing.JPanel getTopPanel() {
		if (topPanel == null) {
			topPanel = new javax.swing.JPanel();
			topPanel.setLayout(new java.awt.BorderLayout());
			//sf@2004 - We manage 2 top panels
			topPanel.add(getTopPanelLocal(), java.awt.BorderLayout.WEST);
			// topPanel.add(getTopPanelCenter(), java.awt.BorderLayout.CENTER);
			topPanel.add(getTopPanelRemote(), java.awt.BorderLayout.EAST);
						
			/*
			topPanel.add(getLocalDrivesComboBox(), null);
			topPanel.add(getLocalMachineLabel(), null);
			topPanel.add(getLocalTopButton(), null);
			topPanel.add(getRemoteDrivesComboBox(), null);
			topPanel.add(getRemoteMachineLabel(), null);
			topPanel.add(getRemoteTopButton(), null);
			topPanel.setBackground(java.awt.Color.lightGray);
			*/
		}
		return topPanel;
	}

	/**
	 * This method initializes statusPanel
	 * 
	 * @return javax.swing.JPanel
	 */
	private javax.swing.JPanel getStatusPanel() {
		if (statusPanel == null) {
			statusPanel = new javax.swing.JPanel();
			statusPanel.setLayout(
				new javax.swing.BoxLayout(
					statusPanel,
					javax.swing.BoxLayout.Y_AXIS));
			statusPanel.add(getHistoryComboBox(), null);
			statusPanel.add(getJProgressBar(), null);
			statusPanel.add(getConnectionStatus(), null);
			statusPanel.setBackground(java.awt.Color.lightGray);
			
		}
		return statusPanel;
	}
	/**
	 * This method initializes remotePanel
	 * 
	 * @return javax.swing.JPanel
	 */
	private javax.swing.JPanel getRemotePanel() {
		if (remotePanel == null) {
			remotePanel = new javax.swing.JPanel();
			remotePanel.setLayout(
				new javax.swing.BoxLayout(
					remotePanel,
					javax.swing.BoxLayout.Y_AXIS));
			remotePanel.add(getRemoteLocation(), null);
			remotePanel.add(getRemoteScrollPane(), null);
			remotePanel.add(getRemoteStatus(), null);
			remotePanel.setBackground(java.awt.Color.lightGray);
		}
		return remotePanel;
	}
	/**
	 * This method initializes localPanel
	 * 
	 * @return javax.swing.JPanel
	 */
	private javax.swing.JPanel getLocalPanel() {
		if (localPanel == null) {
			localPanel = new javax.swing.JPanel();
			localPanel.setLayout(
				new javax.swing.BoxLayout(
					localPanel,
					javax.swing.BoxLayout.Y_AXIS));
			localPanel.add(getLocalLocation(), null);
			localPanel.add(getLocalScrollPane(), null);
			localPanel.add(getLocalStatus(), null);
			localPanel.setBackground(java.awt.Color.lightGray);
			localPanel.setComponentOrientation(
				java.awt.ComponentOrientation.UNKNOWN);
			localPanel.setName("localPanel");
		}
		return localPanel;
	}
	/**
	 * This method initializes buttonPanel
	 * 
	 * @return javax.swing.JPanel
	 */
	private javax.swing.JPanel getButtonPanel()
	{
		if (buttonPanel == null)
		{
			buttonPanel = new javax.swing.JPanel();
			buttonPanel.setLayout(null);
			buttonPanel.add(getReceiveButton(), null);
			buttonPanel.add(getNewFolderButton(), null);
			buttonPanel.add(getCloseButton(), null);
			buttonPanel.add(getDeleteButton(), null);
			buttonPanel.add(getSendButton(), null);
			buttonPanel.add(getStopButton(), null);
			buttonPanel.setBackground(java.awt.Color.lightGray);
		}
		return buttonPanel;
	}
	/**
	 * This method initializes sendButton
	 * 
	 * @return javax.swing.JButton
	 */
	private javax.swing.JButton getSendButton() {
		if (sendButton == null) {
			sendButton = new javax.swing.JButton();
			sendButton.setBounds(20, 30, 97, 25);
			sendButton.setText("Send >>");
			sendButton.setName("sendButton");
			sendButton.addActionListener(this);

		}
		return sendButton;
	}
	/**

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
成人精品免费看| 欧美美女一区二区三区| 日韩精彩视频在线观看| 国产精品久久久久久久久快鸭| 欧美日韩免费高清一区色橹橹| 国产成a人亚洲精| 麻豆国产一区二区| 亚洲午夜视频在线观看| 一区免费观看视频| 日韩精品一区二区三区四区视频| 91国产免费观看| 成人av在线影院| 国产成人自拍高清视频在线免费播放| 亚洲电影一级片| 亚洲欧美一区二区久久| 中文字幕国产一区二区| 久久久亚洲精品一区二区三区| 欧美电影在线免费观看| 日本韩国一区二区三区| av在线播放成人| 成人中文字幕电影| 国产成人在线视频免费播放| 激情五月婷婷综合| 乱一区二区av| 久久99这里只有精品| 美女久久久精品| 老司机精品视频线观看86| 日韩精品电影在线观看| 麻豆91免费观看| 免费观看一级欧美片| 午夜精品久久久久久久久久| 亚洲自拍偷拍图区| 亚洲第一久久影院| 日韩黄色小视频| 青青草91视频| 日本怡春院一区二区| 日韩高清一区在线| 日本 国产 欧美色综合| 美女尤物国产一区| 激情综合亚洲精品| 国产很黄免费观看久久| 成人精品免费看| 91免费观看视频在线| 日本韩国欧美国产| 欧美在线免费观看亚洲| 欧美三级电影网| 日韩欧美国产小视频| 精品久久久久一区二区国产| 久久品道一品道久久精品| 国产午夜三级一区二区三| 国产欧美精品一区| 亚洲色欲色欲www| 亚洲最大的成人av| 日本欧美韩国一区三区| 经典一区二区三区| 成人18视频在线播放| 欧美性色综合网| 日韩丝袜情趣美女图片| 国产日产亚洲精品系列| 亚洲欧美一区二区在线观看| 亚洲激情综合网| 六月丁香婷婷色狠狠久久| 成人理论电影网| 精品视频一区二区三区免费| 欧美一级专区免费大片| 国产香蕉久久精品综合网| 亚洲欧洲一区二区在线播放| 亚洲高清不卡在线观看| 老司机免费视频一区二区| 丁香婷婷综合激情五月色| 99这里只有精品| 欧美日韩高清在线| 国产亚洲精品久| 一区二区三区精品在线| 蜜臀久久99精品久久久久宅男 | 欧美日韩aaa| 欧美大片一区二区三区| 国产精品国产三级国产a | 午夜免费久久看| 美美哒免费高清在线观看视频一区二区| 国产资源在线一区| 日韩一区二区免费视频| 亚洲va欧美va人人爽午夜| 99精品视频中文字幕| 久久久久国产一区二区三区四区| 欧美aaa在线| 欧美一二三区在线观看| 日日欢夜夜爽一区| 欧美视频一区在线观看| 亚洲综合在线电影| 91网站黄www| 亚洲人成精品久久久久久| 大白屁股一区二区视频| 欧美国产精品一区二区三区| 国产福利一区在线| 国产精品天美传媒| 成人免费不卡视频| 国产精品免费aⅴ片在线观看| 国产电影精品久久禁18| 久久久久久久久久久久电影| 韩国一区二区视频| 久久久精品一品道一区| 国产.精品.日韩.另类.中文.在线.播放 | 91久久一区二区| 亚洲欧美成人一区二区三区| 91麻豆免费看| 亚洲国产日韩av| 51午夜精品国产| 日本一区中文字幕| 日韩精品一区二区三区视频| 久久99久久99| 久久精品综合网| 99久久er热在这里只有精品66| 国产精品久久久久久福利一牛影视| 成人av在线一区二区| 亚洲欧美日韩国产综合| 日本高清免费不卡视频| 五月婷婷久久丁香| 欧美成人r级一区二区三区| 国产精品亚洲一区二区三区在线| 中日韩免费视频中文字幕| 91亚洲国产成人精品一区二区三| 亚洲在线一区二区三区| 欧美一区二区三区四区在线观看 | 成人黄动漫网站免费app| 亚洲人成电影网站色mp4| 欧美体内she精视频| 久久精品国产免费| 国产精品你懂的在线| 欧美日韩免费观看一区二区三区| 日本成人在线不卡视频| 日本一区二区三级电影在线观看| 色播五月激情综合网| 美女视频黄a大片欧美| 国产精品免费人成网站| 欧美日韩国产电影| 国产九九视频一区二区三区| 亚洲激情综合网| 精品av久久707| 欧洲一区二区三区在线| 精品一区二区三区不卡| 自拍偷拍国产亚洲| 日韩欧美中文字幕一区| 99精品1区2区| 蜜臀av性久久久久蜜臀aⅴ流畅| 国产精品久久久久永久免费观看| 欧美日韩国产片| 成人亚洲精品久久久久软件| 午夜久久电影网| 国产亚洲精品aa| 欧美高清dvd| 99久久综合99久久综合网站| 日韩国产在线观看| 亚洲三级电影全部在线观看高清| 日韩三级中文字幕| 91久久一区二区| 国产二区国产一区在线观看| 亚洲成人av一区二区| 国产精品美女www爽爽爽| 7777精品伊人久久久大香线蕉最新版| 成人免费黄色大片| 美女网站在线免费欧美精品| 一区二区在线电影| 欧美激情资源网| 日韩亚洲欧美综合| 欧美亚洲高清一区二区三区不卡| 国产精品一区二区久久不卡| 肉肉av福利一精品导航| 亚洲欧美另类图片小说| 久久综合久久鬼色| 这里只有精品视频在线观看| 懂色av一区二区三区蜜臀 | 91热门视频在线观看| 国产精品99久| 免费黄网站欧美| 亚洲国产成人porn| 国产精品免费观看视频| 2024国产精品视频| 日韩三级高清在线| 在线不卡中文字幕| 欧洲一区在线电影| 91浏览器在线视频| 99v久久综合狠狠综合久久| 国产成人av一区二区三区在线观看| 麻豆免费看一区二区三区| 精品国产凹凸成av人导航| 欧美肥妇bbw| 欧美精品免费视频| 欧美日韩精品是欧美日韩精品| 91在线视频免费91| 99久久99久久综合| 99re成人精品视频| 97se亚洲国产综合自在线| 国产成人精品一区二| 国产乱码精品一区二区三区av | 老司机精品视频导航| 七七婷婷婷婷精品国产| 日本大胆欧美人术艺术动态 | 精品视频一区二区三区免费| 欧洲中文字幕精品|