Commit 6c1f3154 by Robbie Hott

Fixed Eclipse formatting errors

parent 8f62992f
...@@ -35,12 +35,12 @@ import javax.swing.filechooser.FileNameExtensionFilter; ...@@ -35,12 +35,12 @@ import javax.swing.filechooser.FileNameExtensionFilter;
* *
*/ */
public class CBWReconcileUI extends javax.swing.JFrame { public class CBWReconcileUI extends javax.swing.JFrame {
/** /**
* Serial ID * Serial ID
*/ */
private static final long serialVersionUID = -8115653654144568030L; private static final long serialVersionUID = -8115653654144568030L;
/** /**
* GUI Variables * GUI Variables
*/ */
...@@ -61,20 +61,20 @@ public class CBWReconcileUI extends javax.swing.JFrame { ...@@ -61,20 +61,20 @@ public class CBWReconcileUI extends javax.swing.JFrame {
private JLabel toCSVFileLabel; private JLabel toCSVFileLabel;
private JLabel toCSVFileLocationLabel; private JLabel toCSVFileLocationLabel;
private JButton toCSVFileButton; private JButton toCSVFileButton;
/** /**
* Reconciliation File Variables * Reconciliation File Variables
*/ */
private String fromCSVFile; private String fromCSVFile;
private String toCSVFile; private String toCSVFile;
{ {
//Set Look & Feel //Set Look & Feel
try { try {
javax.swing.UIManager.setLookAndFeel(javax.swing.UIManager.getSystemLookAndFeelClassName()); javax.swing.UIManager.setLookAndFeel(javax.swing.UIManager.getSystemLookAndFeelClassName());
} catch(Exception e) { } catch(Exception e) {
//e.printStackTrace(); // Silently ignoring errors
} }
} }
...@@ -89,7 +89,7 @@ public class CBWReconcileUI extends javax.swing.JFrame { ...@@ -89,7 +89,7 @@ public class CBWReconcileUI extends javax.swing.JFrame {
//Mac Niceness //Mac Niceness
System.setProperty("com.apple.mrj.application.apple.menu.about.name", "CBW-SNAC Reconciler"); System.setProperty("com.apple.mrj.application.apple.menu.about.name", "CBW-SNAC Reconciler");
SwingUtilities.invokeLater(new Runnable() { SwingUtilities.invokeLater(new Runnable() {
public void run() { public void run() {
CBWReconcileUI inst = new CBWReconcileUI(); CBWReconcileUI inst = new CBWReconcileUI();
...@@ -98,7 +98,7 @@ public class CBWReconcileUI extends javax.swing.JFrame { ...@@ -98,7 +98,7 @@ public class CBWReconcileUI extends javax.swing.JFrame {
} }
}); });
} }
/** /**
* Constructor * Constructor
* *
...@@ -108,7 +108,7 @@ public class CBWReconcileUI extends javax.swing.JFrame { ...@@ -108,7 +108,7 @@ public class CBWReconcileUI extends javax.swing.JFrame {
super(); super();
initGUI(); initGUI();
} }
/** /**
* Initialize GUI * Initialize GUI
* *
...@@ -116,7 +116,7 @@ public class CBWReconcileUI extends javax.swing.JFrame { ...@@ -116,7 +116,7 @@ public class CBWReconcileUI extends javax.swing.JFrame {
*/ */
private void initGUI() { private void initGUI() {
try { try {
BorderLayout thisLayout = new BorderLayout(); BorderLayout thisLayout = new BorderLayout();
getContentPane().setLayout(thisLayout); getContentPane().setLayout(thisLayout);
{ {
...@@ -139,7 +139,7 @@ public class CBWReconcileUI extends javax.swing.JFrame { ...@@ -139,7 +139,7 @@ public class CBWReconcileUI extends javax.swing.JFrame {
bodyPanel.add(reconcilePanel); bodyPanel.add(reconcilePanel);
reconcilePanel.setSize(700, 200); reconcilePanel.setSize(700, 200);
reconcilePanel.setPreferredSize(new java.awt.Dimension(700, 200)); reconcilePanel.setPreferredSize(new java.awt.Dimension(700, 200));
// lookup buttons // lookup buttons
{ {
fromCSVFileLabel = new JLabel(); fromCSVFileLabel = new JLabel();
...@@ -159,13 +159,13 @@ public class CBWReconcileUI extends javax.swing.JFrame { ...@@ -159,13 +159,13 @@ public class CBWReconcileUI extends javax.swing.JFrame {
public void actionPerformed(ActionEvent evt) { public void actionPerformed(ActionEvent evt) {
// Pop up a file chooser for the user to pick a CSV file // Pop up a file chooser for the user to pick a CSV file
JFileChooser chooser2 = new JFileChooser(); JFileChooser chooser2 = new JFileChooser();
chooser2.setDialogTitle("Choose a CSV File."); chooser2.setDialogTitle("Choose a CSV File.");
chooser2.setFileFilter(new FileNameExtensionFilter("CSV Files", "csv")); chooser2.setFileFilter(new FileNameExtensionFilter("CSV Files", "csv"));
int returnVal = chooser2.showOpenDialog(null); int returnVal = chooser2.showOpenDialog(null);
if(returnVal == JFileChooser.APPROVE_OPTION) { if(returnVal == JFileChooser.APPROVE_OPTION) {
fromCSVFile = chooser2.getSelectedFile().getAbsolutePath(); fromCSVFile = chooser2.getSelectedFile().getAbsolutePath();
fromCSVFileLocationLabel.setText(fromCSVFile); fromCSVFileLocationLabel.setText(fromCSVFile);
} }
} }
}); });
...@@ -194,18 +194,18 @@ public class CBWReconcileUI extends javax.swing.JFrame { ...@@ -194,18 +194,18 @@ public class CBWReconcileUI extends javax.swing.JFrame {
// Pop up a file chooser for the user to find a directory and // Pop up a file chooser for the user to find a directory and
// enter a filename for the destination CSV. // enter a filename for the destination CSV.
JFileChooser chooser2 = new JFileChooser(); JFileChooser chooser2 = new JFileChooser();
chooser2.setDialogTitle("Choose a Destination CSV File."); chooser2.setDialogTitle("Choose a Destination CSV File.");
chooser2.setFileFilter(new FileNameExtensionFilter("CSV Files","csv")); chooser2.setFileFilter(new FileNameExtensionFilter("CSV Files","csv"));
int returnVal = chooser2.showOpenDialog(null); int returnVal = chooser2.showOpenDialog(null);
if(returnVal == JFileChooser.APPROVE_OPTION) { if(returnVal == JFileChooser.APPROVE_OPTION) {
toCSVFile = chooser2.getSelectedFile().getAbsolutePath(); toCSVFile = chooser2.getSelectedFile().getAbsolutePath();
toCSVFileLocationLabel.setText(toCSVFile); toCSVFileLocationLabel.setText(toCSVFile);
} }
} }
}); });
} }
{ {
jSeparator2 = new JSeparator(); jSeparator2 = new JSeparator();
reconcilePanel.add(jSeparator2); reconcilePanel.add(jSeparator2);
...@@ -230,14 +230,14 @@ public class CBWReconcileUI extends javax.swing.JFrame { ...@@ -230,14 +230,14 @@ public class CBWReconcileUI extends javax.swing.JFrame {
@Override @Override
public void propertyChange( public void propertyChange(
PropertyChangeEvent evt) { PropertyChangeEvent evt) {
if ("progress" == evt.getPropertyName()) { if ("progress" == evt.getPropertyName()) {
int progress = (Integer) evt.getNewValue(); int progress = (Integer) evt.getNewValue();
reconcileProgressBar.setValue(progress); reconcileProgressBar.setValue(progress);
reconcileProgressLabel.setText(rw.getProgressText()); reconcileProgressLabel.setText(rw.getProgressText());
} }
} }
}); });
rw.execute(); rw.execute();
} catch (Exception e) { } catch (Exception e) {
// Silently ignoring errors // Silently ignoring errors
} }
...@@ -267,7 +267,7 @@ public class CBWReconcileUI extends javax.swing.JFrame { ...@@ -267,7 +267,7 @@ public class CBWReconcileUI extends javax.swing.JFrame {
reconcilePanel.add(reconcileProgressLabel); reconcilePanel.add(reconcileProgressLabel);
} }
} }
this.setSize(700, 400); this.setSize(700, 400);
this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
...@@ -275,8 +275,8 @@ public class CBWReconcileUI extends javax.swing.JFrame { ...@@ -275,8 +275,8 @@ public class CBWReconcileUI extends javax.swing.JFrame {
// Silently ignoring errors // Silently ignoring errors
} }
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment