@ -121,7 +121,7 @@ diff -Naur JavaViewer.orig/ButtonPanel.java JavaViewer/ButtonPanel.java
}
}
diff -Naur JavaViewer.orig/FTPFrame.java JavaViewer/FTPFrame.java
diff -Naur JavaViewer.orig/FTPFrame.java JavaViewer/FTPFrame.java
--- JavaViewer.orig/FTPFrame.java 2005-03-15 23:53:14.000000000 -0500
--- JavaViewer.orig/FTPFrame.java 2005-03-15 23:53:14.000000000 -0500
+++ JavaViewer/FTPFrame.java 2009-01-1 1 12:10:06 .000000000 -0500
+++ JavaViewer/FTPFrame.java 2009-01-1 3 09:48:30 .000000000 -0500
@@ -24,8 +24,17 @@
@@ -24,8 +24,17 @@
import java.io.*;
import java.io.*;
import java.util.ArrayList;
import java.util.ArrayList;
@ -244,7 +244,7 @@ diff -Naur JavaViewer.orig/FTPFrame.java JavaViewer/FTPFrame.java
// Loop through the string to create a String[]
// Loop through the string to create a String[]
for (int i = 0; i < size; i = i + 3) {
for (int i = 0; i < size; i = i + 3) {
@@ -150,26 +231,6 2 @@
@@ -150,26 +231,6 8 @@
driveType = str.substring(i + 2, i + 3);
driveType = str.substring(i + 2, i + 3);
if (driveType.compareTo("f") == 0)
if (driveType.compareTo("f") == 0)
drive[i / 3] += "\\ Floppy";
drive[i / 3] += "\\ Floppy";
@ -272,7 +272,13 @@ diff -Naur JavaViewer.orig/FTPFrame.java JavaViewer/FTPFrame.java
+ String[] dd = viewer.ftpDropDown.split("\\.");
+ String[] dd = viewer.ftpDropDown.split("\\.");
+ for (int i=0; i < dd.length; i++) {
+ for (int i=0; i < dd.length; i++) {
+ if (!dd[i].equals("")) {
+ if (!dd[i].equals("")) {
+ remoteDrivesComboBox.addItem(" [" + dd[i] + "]");
+ String s = dd[i];
+ if (s.startsWith("TOP_")) {
+ s = s.substring(4);
+ remoteDrivesComboBox.insertItemAt(" [" + s + "]", 0);
+ } else {
+ remoteDrivesComboBox.addItem(" [" + s + "]");
+ }
+ }
+ }
+ }
+ }
+ } else {
+ } else {
@ -313,7 +319,7 @@ diff -Naur JavaViewer.orig/FTPFrame.java JavaViewer/FTPFrame.java
updateDriveList = false;
updateDriveList = false;
return drive;
return drive;
}
}
@@ -185,6 +30 2 ,8 @@
@@ -185,6 +30 8 ,8 @@
stopButton.setVisible(true);
stopButton.setVisible(true);
stopButton.setEnabled(true);
stopButton.setEnabled(true);
receiveButton.setEnabled(false);
receiveButton.setEnabled(false);
@ -322,7 +328,7 @@ diff -Naur JavaViewer.orig/FTPFrame.java JavaViewer/FTPFrame.java
remoteTopButton.setEnabled(false);
remoteTopButton.setEnabled(false);
sendButton.setEnabled(false);
sendButton.setEnabled(false);
remoteFileTable.setEnabled(false);
remoteFileTable.setEnabled(false);
@@ -207,6 +3 26 ,8 @@
@@ -207,6 +3 3 2,8 @@
stopButton.setVisible(false);
stopButton.setVisible(false);
stopButton.setEnabled(false);
stopButton.setEnabled(false);
receiveButton.setEnabled(true);
receiveButton.setEnabled(true);
@ -331,7 +337,7 @@ diff -Naur JavaViewer.orig/FTPFrame.java JavaViewer/FTPFrame.java
remoteTopButton.setEnabled(true);
remoteTopButton.setEnabled(true);
sendButton.setEnabled(true);
sendButton.setEnabled(true);
remoteFileTable.setEnabled(true);
remoteFileTable.setEnabled(true);
@@ -221,10 +34 2 ,11 @@
@@ -221,10 +34 8 ,11 @@
/*
/*
* Print Directory prints out all the contents of a directory
* Print Directory prints out all the contents of a directory
*/
*/
@ -344,7 +350,7 @@ diff -Naur JavaViewer.orig/FTPFrame.java JavaViewer/FTPFrame.java
}
}
remoteFileTable.setListData(remoteList);
remoteFileTable.setListData(remoteList);
}
}
@@ -235,10 +3 57 ,12 @@
@@ -235,10 +3 63 ,12 @@
* @return void
* @return void
*/
*/
private void initialize() {
private void initialize() {
@ -358,7 +364,7 @@ diff -Naur JavaViewer.orig/FTPFrame.java JavaViewer/FTPFrame.java
/**
/**
* This method initializes jContentPane. This is the main content pane
* This method initializes jContentPane. This is the main content pane
*
*
@@ -253,6 +3 77 ,33 @@
@@ -253,6 +3 83 ,33 @@
jContentPane.add(getRemotePanel(), java.awt.BorderLayout.EAST);
jContentPane.add(getRemotePanel(), java.awt.BorderLayout.EAST);
jContentPane.add(getLocalPanel(), java.awt.BorderLayout.WEST);
jContentPane.add(getLocalPanel(), java.awt.BorderLayout.WEST);
jContentPane.add(getButtonPanel(), java.awt.BorderLayout.CENTER);
jContentPane.add(getButtonPanel(), java.awt.BorderLayout.CENTER);
@ -392,7 +398,7 @@ diff -Naur JavaViewer.orig/FTPFrame.java JavaViewer/FTPFrame.java
}
}
return jContentPane;
return jContentPane;
}
}
@@ -270,6 +42 1 ,7 @@
@@ -270,6 +42 7 ,7 @@
topPanelLocal.add(getLocalMachineLabel(), java.awt.BorderLayout.CENTER);
topPanelLocal.add(getLocalMachineLabel(), java.awt.BorderLayout.CENTER);
topPanelLocal.add(getLocalTopButton(), java.awt.BorderLayout.EAST);
topPanelLocal.add(getLocalTopButton(), java.awt.BorderLayout.EAST);
topPanelLocal.setBackground(java.awt.Color.lightGray);
topPanelLocal.setBackground(java.awt.Color.lightGray);
@ -400,7 +406,7 @@ diff -Naur JavaViewer.orig/FTPFrame.java JavaViewer/FTPFrame.java
}
}
return topPanelLocal;
return topPanelLocal;
}
}
@@ -288,6 +44 0 ,7 @@
@@ -288,6 +44 6 ,7 @@
topPanelRemote.add(getRemoteMachineLabel(), java.awt.BorderLayout.CENTER);
topPanelRemote.add(getRemoteMachineLabel(), java.awt.BorderLayout.CENTER);
topPanelRemote.add(getRemoteTopButton(), java.awt.BorderLayout.EAST);
topPanelRemote.add(getRemoteTopButton(), java.awt.BorderLayout.EAST);
topPanelRemote.setBackground(java.awt.Color.lightGray);
topPanelRemote.setBackground(java.awt.Color.lightGray);
@ -408,7 +414,7 @@ diff -Naur JavaViewer.orig/FTPFrame.java JavaViewer/FTPFrame.java
}
}
return topPanelRemote;
return topPanelRemote;
}
}
@@ -301,6 +4 54 ,7 @@
@@ -301,6 +4 60 ,7 @@
if (topPanelCenter == null) {
if (topPanelCenter == null) {
topPanelCenter = new javax.swing.JPanel();
topPanelCenter = new javax.swing.JPanel();
topPanelCenter.add(getDummyButton(), null);
topPanelCenter.add(getDummyButton(), null);
@ -416,7 +422,7 @@ diff -Naur JavaViewer.orig/FTPFrame.java JavaViewer/FTPFrame.java
}
}
return topPanelCenter;
return topPanelCenter;
}
}
@@ -328,6 +48 2 ,7 @@
@@ -328,6 +48 8 ,7 @@
topPanel.add(getRemoteTopButton(), null);
topPanel.add(getRemoteTopButton(), null);
topPanel.setBackground(java.awt.Color.lightGray);
topPanel.setBackground(java.awt.Color.lightGray);
*/
*/
@ -424,7 +430,7 @@ diff -Naur JavaViewer.orig/FTPFrame.java JavaViewer/FTPFrame.java
}
}
return topPanel;
return topPanel;
}
}
@@ -348,6 +50 3 ,7 @@
@@ -348,6 +50 9 ,7 @@
statusPanel.add(getJProgressBar(), null);
statusPanel.add(getJProgressBar(), null);
statusPanel.add(getConnectionStatus(), null);
statusPanel.add(getConnectionStatus(), null);
statusPanel.setBackground(java.awt.Color.lightGray);
statusPanel.setBackground(java.awt.Color.lightGray);
@ -432,7 +438,7 @@ diff -Naur JavaViewer.orig/FTPFrame.java JavaViewer/FTPFrame.java
}
}
return statusPanel;
return statusPanel;
@@ -368,6 +5 24 ,7 @@
@@ -368,6 +5 30 ,7 @@
remotePanel.add(getRemoteScrollPane(), null);
remotePanel.add(getRemoteScrollPane(), null);
remotePanel.add(getRemoteStatus(), null);
remotePanel.add(getRemoteStatus(), null);
remotePanel.setBackground(java.awt.Color.lightGray);
remotePanel.setBackground(java.awt.Color.lightGray);
@ -440,7 +446,7 @@ diff -Naur JavaViewer.orig/FTPFrame.java JavaViewer/FTPFrame.java
}
}
return remotePanel;
return remotePanel;
}
}
@@ -390,6 +5 47 ,7 @@
@@ -390,6 +5 53 ,7 @@
localPanel.setComponentOrientation(
localPanel.setComponentOrientation(
java.awt.ComponentOrientation.UNKNOWN);
java.awt.ComponentOrientation.UNKNOWN);
localPanel.setName("localPanel");
localPanel.setName("localPanel");
@ -448,7 +454,7 @@ diff -Naur JavaViewer.orig/FTPFrame.java JavaViewer/FTPFrame.java
}
}
return localPanel;
return localPanel;
}
}
@@ -405,12 +56 3 ,15 @@
@@ -405,12 +56 9 ,15 @@
buttonPanel = new javax.swing.JPanel();
buttonPanel = new javax.swing.JPanel();
buttonPanel.setLayout(null);
buttonPanel.setLayout(null);
buttonPanel.add(getReceiveButton(), null);
buttonPanel.add(getReceiveButton(), null);
@ -464,7 +470,7 @@ diff -Naur JavaViewer.orig/FTPFrame.java JavaViewer/FTPFrame.java
}
}
return buttonPanel;
return buttonPanel;
}
}
@@ -422,10 +58 3 ,11 @@
@@ -422,10 +58 9 ,11 @@
private javax.swing.JButton getSendButton() {
private javax.swing.JButton getSendButton() {
if (sendButton == null) {
if (sendButton == null) {
sendButton = new javax.swing.JButton();
sendButton = new javax.swing.JButton();
@ -477,7 +483,7 @@ diff -Naur JavaViewer.orig/FTPFrame.java JavaViewer/FTPFrame.java
}
}
return sendButton;
return sendButton;
@@ -438,7 +60 0 ,7 @@
@@ -438,7 +60 6 ,7 @@
private javax.swing.JButton getReceiveButton() {
private javax.swing.JButton getReceiveButton() {
if (receiveButton == null) {
if (receiveButton == null) {
receiveButton = new javax.swing.JButton();
receiveButton = new javax.swing.JButton();
@ -486,7 +492,7 @@ diff -Naur JavaViewer.orig/FTPFrame.java JavaViewer/FTPFrame.java
receiveButton.setText("<< Receive");
receiveButton.setText("<< Receive");
receiveButton.setName("receiveButton");
receiveButton.setName("receiveButton");
receiveButton.addActionListener(this);
receiveButton.addActionListener(this);
@@ -453,7 +6 15 ,7 @@
@@ -453,7 +6 2 1,7 @@
private javax.swing.JButton getDeleteButton() {
private javax.swing.JButton getDeleteButton() {
if (deleteButton == null) {
if (deleteButton == null) {
deleteButton = new javax.swing.JButton();
deleteButton = new javax.swing.JButton();
@ -495,7 +501,7 @@ diff -Naur JavaViewer.orig/FTPFrame.java JavaViewer/FTPFrame.java
deleteButton.setText("Delete File");
deleteButton.setText("Delete File");
deleteButton.setName("deleteButton");
deleteButton.setName("deleteButton");
deleteButton.addActionListener(this);
deleteButton.addActionListener(this);
@@ -468,7 +63 0 ,7 @@
@@ -468,7 +63 6 ,7 @@
private javax.swing.JButton getNewFolderButton() {
private javax.swing.JButton getNewFolderButton() {
if (newFolderButton == null) {
if (newFolderButton == null) {
newFolderButton = new javax.swing.JButton();
newFolderButton = new javax.swing.JButton();
@ -504,7 +510,7 @@ diff -Naur JavaViewer.orig/FTPFrame.java JavaViewer/FTPFrame.java
newFolderButton.setText("New Folder");
newFolderButton.setText("New Folder");
newFolderButton.setName("newFolderButton");
newFolderButton.setName("newFolderButton");
newFolderButton.addActionListener(this);
newFolderButton.addActionListener(this);
@@ -476,6 +6 38 ,39 @@
@@ -476,6 +6 44 ,39 @@
return newFolderButton;
return newFolderButton;
}
}
@ -544,7 +550,7 @@ diff -Naur JavaViewer.orig/FTPFrame.java JavaViewer/FTPFrame.java
/**
/**
* This method initializes stopButton
* This method initializes stopButton
*
*
@@ -486,7 +68 1 ,7 @@
@@ -486,7 +68 7 ,7 @@
if (stopButton == null)
if (stopButton == null)
{
{
stopButton = new javax.swing.JButton();
stopButton = new javax.swing.JButton();
@ -553,7 +559,7 @@ diff -Naur JavaViewer.orig/FTPFrame.java JavaViewer/FTPFrame.java
stopButton.setText("Stop");
stopButton.setText("Stop");
stopButton.setName("stopButton");
stopButton.setName("stopButton");
stopButton.addActionListener(this);
stopButton.addActionListener(this);
@@ -503,8 + 698 ,12 @@
@@ -503,8 + 704 ,12 @@
private javax.swing.JButton getCloseButton() {
private javax.swing.JButton getCloseButton() {
if (closeButton == null) {
if (closeButton == null) {
closeButton = new javax.swing.JButton();
closeButton = new javax.swing.JButton();
@ -568,7 +574,7 @@ diff -Naur JavaViewer.orig/FTPFrame.java JavaViewer/FTPFrame.java
closeButton.setName("closeButton");
closeButton.setName("closeButton");
closeButton.addActionListener(this);
closeButton.addActionListener(this);
}
}
@@ -551,6 +75 0 ,7 @@
@@ -551,6 +75 6 ,7 @@
//Select the second entry (e.g. C:\)
//Select the second entry (e.g. C:\)
// localDrivesComboBox.setSelectedIndex(1);
// localDrivesComboBox.setSelectedIndex(1);
localDrivesComboBox.addActionListener(this);
localDrivesComboBox.addActionListener(this);
@ -576,7 +582,7 @@ diff -Naur JavaViewer.orig/FTPFrame.java JavaViewer/FTPFrame.java
}
}
updateDriveList = false;
updateDriveList = false;
return localDrivesComboBox;
return localDrivesComboBox;
@@ -567,6 +7 6 7,7 @@
@@ -567,6 +7 73 ,7 @@
remoteDrivesComboBox.setFont(
remoteDrivesComboBox.setFont(
new java.awt.Font("Dialog", java.awt.Font.PLAIN, 10));
new java.awt.Font("Dialog", java.awt.Font.PLAIN, 10));
remoteDrivesComboBox.addActionListener(this);
remoteDrivesComboBox.addActionListener(this);
@ -584,7 +590,7 @@ diff -Naur JavaViewer.orig/FTPFrame.java JavaViewer/FTPFrame.java
}
}
return remoteDrivesComboBox;
return remoteDrivesComboBox;
@@ -587,6 +7 88 ,7 @@
@@ -587,6 +7 94 ,7 @@
localMachineLabel.setFont(
localMachineLabel.setFont(
new java.awt.Font("Dialog", java.awt.Font.BOLD, 11));
new java.awt.Font("Dialog", java.awt.Font.BOLD, 11));
localMachineLabel.setEditable(false);
localMachineLabel.setEditable(false);
@ -592,7 +598,7 @@ diff -Naur JavaViewer.orig/FTPFrame.java JavaViewer/FTPFrame.java
}
}
return localMachineLabel;
return localMachineLabel;
}
}
@@ -622,6 +8 24 ,7 @@
@@ -622,6 +8 30 ,7 @@
localTopButton.setFont(
localTopButton.setFont(
new java.awt.Font("Dialog", java.awt.Font.BOLD, 10));
new java.awt.Font("Dialog", java.awt.Font.BOLD, 10));
localTopButton.addActionListener(this);
localTopButton.addActionListener(this);
@ -600,7 +606,7 @@ diff -Naur JavaViewer.orig/FTPFrame.java JavaViewer/FTPFrame.java
}
}
return localTopButton;
return localTopButton;
}
}
@@ -638,6 +84 1 ,7 @@
@@ -638,6 +84 7 ,7 @@
remoteTopButton.setFont(
remoteTopButton.setFont(
new java.awt.Font("Dialog", java.awt.Font.BOLD, 10));
new java.awt.Font("Dialog", java.awt.Font.BOLD, 10));
remoteTopButton.addActionListener(this);
remoteTopButton.addActionListener(this);
@ -608,7 +614,7 @@ diff -Naur JavaViewer.orig/FTPFrame.java JavaViewer/FTPFrame.java
}
}
return remoteTopButton;
return remoteTopButton;
}
}
@@ -650,9 +8 54 ,24 @@
@@ -650,9 +8 60 ,24 @@
private javax.swing.JList getLocalFileTable() {
private javax.swing.JList getLocalFileTable() {
if (localFileTable == null) {
if (localFileTable == null) {
localList = new Vector(0);
localList = new Vector(0);
@ -633,7 +639,7 @@ diff -Naur JavaViewer.orig/FTPFrame.java JavaViewer/FTPFrame.java
}
}
return localFileTable;
return localFileTable;
}
}
@@ -669,6 +8 88 ,7 @@
@@ -669,6 +8 94 ,7 @@
localScrollPane.setFont(
localScrollPane.setFont(
new java.awt.Font("Dialog", java.awt.Font.PLAIN, 10));
new java.awt.Font("Dialog", java.awt.Font.PLAIN, 10));
localScrollPane.setName("localFileList");
localScrollPane.setName("localFileList");
@ -641,7 +647,7 @@ diff -Naur JavaViewer.orig/FTPFrame.java JavaViewer/FTPFrame.java
}
}
return localScrollPane;
return localScrollPane;
}
}
@@ -680,10 +90 0 ,25 @@
@@ -680,10 +90 6 ,25 @@
private javax.swing.JList getRemoteFileTable() {
private javax.swing.JList getRemoteFileTable() {
if (remoteFileTable == null) {
if (remoteFileTable == null) {
remoteList = new Vector(0);
remoteList = new Vector(0);
@ -667,7 +673,7 @@ diff -Naur JavaViewer.orig/FTPFrame.java JavaViewer/FTPFrame.java
}
}
return remoteFileTable;
return remoteFileTable;
@@ -698,6 +93 3 ,7 @@
@@ -698,6 +93 9 ,7 @@
remoteScrollPane = new javax.swing.JScrollPane();
remoteScrollPane = new javax.swing.JScrollPane();
remoteScrollPane.setViewportView(getRemoteFileTable());
remoteScrollPane.setViewportView(getRemoteFileTable());
remoteScrollPane.setPreferredSize(new java.awt.Dimension(325, 418));
remoteScrollPane.setPreferredSize(new java.awt.Dimension(325, 418));
@ -675,7 +681,7 @@ diff -Naur JavaViewer.orig/FTPFrame.java JavaViewer/FTPFrame.java
}
}
return remoteScrollPane;
return remoteScrollPane;
}
}
@@ -716,6 +95 2 ,7 @@
@@ -716,6 +95 8 ,7 @@
remoteLocation.setBackground(new Color(255,255,238));
remoteLocation.setBackground(new Color(255,255,238));
remoteLocation.setFont(
remoteLocation.setFont(
new java.awt.Font("Dialog", java.awt.Font.PLAIN, 10));
new java.awt.Font("Dialog", java.awt.Font.PLAIN, 10));
@ -683,7 +689,7 @@ diff -Naur JavaViewer.orig/FTPFrame.java JavaViewer/FTPFrame.java
}
}
return remoteLocation;
return remoteLocation;
}
}
@@ -732,6 +9 69 ,7 @@
@@ -732,6 +9 75 ,7 @@
localLocation.setBackground( new Color(255,255,238));
localLocation.setBackground( new Color(255,255,238));
localLocation.setFont(
localLocation.setFont(
new java.awt.Font("Dialog", java.awt.Font.PLAIN, 10));
new java.awt.Font("Dialog", java.awt.Font.PLAIN, 10));
@ -691,7 +697,7 @@ diff -Naur JavaViewer.orig/FTPFrame.java JavaViewer/FTPFrame.java
}
}
return localLocation;
return localLocation;
}
}
@@ -748,6 +9 86 ,7 @@
@@ -748,6 +9 92 ,7 @@
localStatus.setFont(
localStatus.setFont(
new java.awt.Font("Dialog", java.awt.Font.PLAIN, 10));
new java.awt.Font("Dialog", java.awt.Font.PLAIN, 10));
localStatus.setEditable(false);
localStatus.setEditable(false);
@ -699,7 +705,7 @@ diff -Naur JavaViewer.orig/FTPFrame.java JavaViewer/FTPFrame.java
}
}
return localStatus;
return localStatus;
}
}
@@ -764,6 +100 3 ,7 @@
@@ -764,6 +100 9 ,7 @@
remoteStatus.setFont(
remoteStatus.setFont(
new java.awt.Font("Dialog", java.awt.Font.PLAIN, 10));
new java.awt.Font("Dialog", java.awt.Font.PLAIN, 10));
remoteStatus.setEditable(false);
remoteStatus.setEditable(false);
@ -707,7 +713,7 @@ diff -Naur JavaViewer.orig/FTPFrame.java JavaViewer/FTPFrame.java
}
}
return remoteStatus;
return remoteStatus;
}
}
@@ -777,9 +10 17 ,10 @@
@@ -777,9 +10 23 ,10 @@
historyComboBox = new javax.swing.JComboBox();
historyComboBox = new javax.swing.JComboBox();
historyComboBox.setFont(
historyComboBox.setFont(
new java.awt.Font("Dialog", java.awt.Font.BOLD, 10));
new java.awt.Font("Dialog", java.awt.Font.BOLD, 10));
@ -719,7 +725,7 @@ diff -Naur JavaViewer.orig/FTPFrame.java JavaViewer/FTPFrame.java
}
}
return historyComboBox;
return historyComboBox;
}
}
@@ -791,6 +103 2 ,7 @@
@@ -791,6 +103 8 ,7 @@
private javax.swing.JProgressBar getJProgressBar() {
private javax.swing.JProgressBar getJProgressBar() {
if (jProgressBar == null) {
if (jProgressBar == null) {
jProgressBar = new javax.swing.JProgressBar();
jProgressBar = new javax.swing.JProgressBar();
@ -727,7 +733,7 @@ diff -Naur JavaViewer.orig/FTPFrame.java JavaViewer/FTPFrame.java
}
}
return jProgressBar;
return jProgressBar;
}
}
@@ -806,6 +10 48 ,7 @@
@@ -806,6 +10 5 4,7 @@
connectionStatus.setBackground(java.awt.Color.lightGray);
connectionStatus.setBackground(java.awt.Color.lightGray);
connectionStatus.setFont(
connectionStatus.setFont(
new java.awt.Font("Dialog", java.awt.Font.PLAIN, 10));
new java.awt.Font("Dialog", java.awt.Font.PLAIN, 10));
@ -735,7 +741,7 @@ diff -Naur JavaViewer.orig/FTPFrame.java JavaViewer/FTPFrame.java
}
}
connectionStatus.setEditable(false);
connectionStatus.setEditable(false);
return connectionStatus;
return connectionStatus;
@@ -815,7 +10 58 ,12 @@
@@ -815,7 +10 64 ,12 @@
* Implements Action listener.
* Implements Action listener.
*/
*/
public void actionPerformed(ActionEvent evt) {
public void actionPerformed(ActionEvent evt) {
@ -749,7 +755,7 @@ diff -Naur JavaViewer.orig/FTPFrame.java JavaViewer/FTPFrame.java
if (evt.getSource() == closeButton)
if (evt.getSource() == closeButton)
{ // Close Button
{ // Close Button
@@ -829,15 +10 77 ,27 @@
@@ -829,15 +10 83 ,27 @@
{
{
doReceive();
doReceive();
}
}
@ -779,7 +785,7 @@ diff -Naur JavaViewer.orig/FTPFrame.java JavaViewer/FTPFrame.java
}
}
else if (evt.getSource() == localTopButton)
else if (evt.getSource() == localTopButton)
{
{
@@ -845,12 +11 05 ,17 @@
@@ -845,12 +11 11 ,17 @@
}
}
else if (evt.getSource() == remoteTopButton)
else if (evt.getSource() == remoteTopButton)
{
{
@ -797,7 +803,7 @@ diff -Naur JavaViewer.orig/FTPFrame.java JavaViewer/FTPFrame.java
else if(evt.getSource()==newFolderButton)
else if(evt.getSource()==newFolderButton)
{
{
doNewFolder();
doNewFolder();
@@ -864,7 +11 29 ,7 @@
@@ -864,7 +11 35 ,7 @@
private void doNewFolder()
private void doNewFolder()
{
{
@ -806,7 +812,7 @@ diff -Naur JavaViewer.orig/FTPFrame.java JavaViewer/FTPFrame.java
if(selectedTable.equals("remote"))
if(selectedTable.equals("remote"))
{
{
name = remoteLocation.getText()+name;
name = remoteLocation.getText()+name;
@@ -880,34 +11 4 5,106 @@
@@ -880,34 +11 51 ,106 @@
historyComboBox.setSelectedIndex(0);
historyComboBox.setSelectedIndex(0);
}
}
}
}
@ -923,7 +929,7 @@ diff -Naur JavaViewer.orig/FTPFrame.java JavaViewer/FTPFrame.java
return;
return;
}
}
@@ -916,7 +125 3 ,7 @@
@@ -916,7 +125 9 ,7 @@
// sf@2004 - Delete prompt
// sf@2004 - Delete prompt
if (remoteList.contains(sFileName))
if (remoteList.contains(sFileName))
{
{
@ -932,7 +938,7 @@ diff -Naur JavaViewer.orig/FTPFrame.java JavaViewer/FTPFrame.java
if (r == JOptionPane.NO_OPTION)
if (r == JOptionPane.NO_OPTION)
return;
return;
}
}
@@ -926,18 +126 3 ,22 @@
@@ -926,18 +126 9 ,22 @@
}
}
else
else
{
{
@ -958,7 +964,7 @@ diff -Naur JavaViewer.orig/FTPFrame.java JavaViewer/FTPFrame.java
if (r == JOptionPane.NO_OPTION)
if (r == JOptionPane.NO_OPTION)
return;
return;
}
}
@@ -952,21 +129 3 ,25 @@
@@ -952,21 +129 9 ,25 @@
private void doReceive()
private void doReceive()
{
{
@ -988,7 +994,7 @@ diff -Naur JavaViewer.orig/FTPFrame.java JavaViewer/FTPFrame.java
if (r == JOptionPane.NO_OPTION)
if (r == JOptionPane.NO_OPTION)
return;
return;
}
}
@@ -979,23 +13 24 ,101 @@
@@ -979,23 +13 30 ,101 @@
viewer.rfb.requestRemoteFile(remoteFileName,localDestinationPath);
viewer.rfb.requestRemoteFile(remoteFileName,localDestinationPath);
}
}
@ -1094,7 +1100,7 @@ diff -Naur JavaViewer.orig/FTPFrame.java JavaViewer/FTPFrame.java
if (r == JOptionPane.NO_OPTION)
if (r == JOptionPane.NO_OPTION)
return;
return;
}
}
@@ -1013,6 +14 36 ,7 @@
@@ -1013,6 +14 42 ,7 @@
//
//
private void doStop()
private void doStop()
{
{
@ -1102,7 +1108,7 @@ diff -Naur JavaViewer.orig/FTPFrame.java JavaViewer/FTPFrame.java
viewer.rfb.fAbort = true;
viewer.rfb.fAbort = true;
}
}
/**
/**
@@ -1024,6 +14 48 ,14 @@
@@ -1024,6 +14 5 4,14 @@
System.out.println("History: " + message);
System.out.println("History: " + message);
historyComboBox.insertItemAt(new String(message), 0);
historyComboBox.insertItemAt(new String(message), 0);
}
}
@ -1117,7 +1123,7 @@ diff -Naur JavaViewer.orig/FTPFrame.java JavaViewer/FTPFrame.java
/**
/**
* This method updates the file table to the current selection of the remoteComboBox
* This method updates the file table to the current selection of the remoteComboBox
@@ -1034,11 +14 66 ,44 @@
@@ -1034,11 +14 72 ,44 @@
remoteSelection = null;
remoteSelection = null;
if (!updateDriveList) {
if (!updateDriveList) {
@ -1165,7 +1171,7 @@ diff -Naur JavaViewer.orig/FTPFrame.java JavaViewer/FTPFrame.java
remoteFileTable.setListData(remoteList);
remoteFileTable.setListData(remoteList);
}
}
/**
/**
@@ -1048,6 +151 3 ,7 @@
@@ -1048,6 +151 9 ,7 @@
private void changeLocalDrive()
private void changeLocalDrive()
{
{
File currentDrive = new File(localDrivesComboBox.getSelectedItem().toString());
File currentDrive = new File(localDrivesComboBox.getSelectedItem().toString());
@ -1173,7 +1179,7 @@ diff -Naur JavaViewer.orig/FTPFrame.java JavaViewer/FTPFrame.java
if(currentDrive.canRead())
if(currentDrive.canRead())
{
{
localSelection = null;
localSelection = null;
@@ -1057,9 +152 3 ,11 @@
@@ -1057,9 +152 9 ,11 @@
else
else
{
{
localList.clear();
localList.clear();
@ -1185,7 +1191,7 @@ diff -Naur JavaViewer.orig/FTPFrame.java JavaViewer/FTPFrame.java
}
}
/**
/**
* Determines which FileTable was double-clicked and updates the table
* Determines which FileTable was double-clicked and updates the table
@@ -1098,10 +15 66 ,18 @@
@@ -1098,10 +15 72 ,18 @@
selectedTable = "remote";
selectedTable = "remote";
localFileTable.setBackground(new Color(238, 238, 238));
localFileTable.setBackground(new Color(238, 238, 238));
remoteFileTable.setBackground(new Color(255, 255, 255));
remoteFileTable.setBackground(new Color(255, 255, 255));
@ -1206,7 +1212,7 @@ diff -Naur JavaViewer.orig/FTPFrame.java JavaViewer/FTPFrame.java
}
}
/*
/*
@@ -1115,10 +159 1 ,38 @@
@@ -1115,10 +159 7 ,38 @@
localFileTable.setBackground(new Color(255, 255, 255));
localFileTable.setBackground(new Color(255, 255, 255));
File currentSelection = new File(currentLocalDirectory, getTrimmedSelection());
File currentSelection = new File(currentLocalDirectory, getTrimmedSelection());
@ -1246,7 +1252,7 @@ diff -Naur JavaViewer.orig/FTPFrame.java JavaViewer/FTPFrame.java
/**
/**
* Updates the Remote File Table based on selection. Called from mouseClicked handler
* Updates the Remote File Table based on selection. Called from mouseClicked handler
*/
*/
@@ -1126,20 +163 0 ,29 @@
@@ -1126,20 +163 6 ,29 @@
String name = null;
String name = null;
String action = null;
String action = null;
String drive = null;
String drive = null;
@ -1278,7 +1284,7 @@ diff -Naur JavaViewer.orig/FTPFrame.java JavaViewer/FTPFrame.java
remoteFileTable.setListData(remoteList);
remoteFileTable.setListData(remoteList);
}
}
else if (!name.substring(0, 2).equals(" [") && !name.substring((name.length() - 1), name.length()).equals("]"))
else if (!name.substring(0, 2).equals(" [") && !name.substring((name.length() - 1), name.length()).equals("]"))
@@ -1149,6 +166 2 ,7 @@
@@ -1149,6 +166 8 ,7 @@
remoteSelection = remoteLocation.getText() + name.substring(0, name.length());
remoteSelection = remoteLocation.getText() + name.substring(0, name.length());
drive = remoteLocation.getText();
drive = remoteLocation.getText();
// ??
// ??
@ -1286,7 +1292,7 @@ diff -Naur JavaViewer.orig/FTPFrame.java JavaViewer/FTPFrame.java
}
}
else
else
{
{
@@ -1159,10 +167 3 ,12 @@
@@ -1159,10 +167 9 ,12 @@
remoteLocation.setText(drive);
remoteLocation.setText(drive);
viewer.rfb.readServerDirectory(drive);
viewer.rfb.readServerDirectory(drive);
remoteList.clear();
remoteList.clear();
@ -1299,7 +1305,7 @@ diff -Naur JavaViewer.orig/FTPFrame.java JavaViewer/FTPFrame.java
/**
/**
* Updates the Local File Table based on selection. Called from MouseClicked handler
* Updates the Local File Table based on selection. Called from MouseClicked handler
*/
*/
@@ -1188,6 +17 04 ,7 @@
@@ -1188,6 +17 1 0,7 @@
else if (currentSelection.isFile())
else if (currentSelection.isFile())
{
{
localSelection = currentSelection.getAbsoluteFile();
localSelection = currentSelection.getAbsoluteFile();
@ -1307,7 +1313,7 @@ diff -Naur JavaViewer.orig/FTPFrame.java JavaViewer/FTPFrame.java
}
}
else if (currentSelection.isDirectory())
else if (currentSelection.isDirectory())
{
{
@@ -1201,13 +17 18 ,22 @@
@@ -1201,13 +17 24 ,22 @@
*
*
*/
*/
private String getTrimmedSelection(){
private String getTrimmedSelection(){
@ -1337,7 +1343,7 @@ diff -Naur JavaViewer.orig/FTPFrame.java JavaViewer/FTPFrame.java
}
}
/*
/*
@@ -1241,36 +17 6 7,148 @@
@@ -1241,36 +17 73 ,148 @@
return null;
return null;
}
}
@ -1494,7 +1500,7 @@ diff -Naur JavaViewer.orig/FTPFrame.java JavaViewer/FTPFrame.java
FilesList.clear();
FilesList.clear();
DirsList.clear();
DirsList.clear();
@@ -1296,3 +19 3 4,147 @@
@@ -1296,3 +19 40 ,147 @@
}
}
} // @jve:visual-info decl-index=0 visual-constraint="10,10"
} // @jve:visual-info decl-index=0 visual-constraint="10,10"