Changeset 1505 for trunk/applications/NXconvertpy/src/org/nexusformat/nxvalidate/NXLoadFilesDialog.java
- Timestamp:
- 17/08/10 15:17:39 (21 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/applications/NXconvertpy/src/org/nexusformat/nxvalidate/NXLoadFilesDialog.java
r1504 r1505 9 9 * Created on 16-Jun-2010, 11:56:31 10 10 */ 11 12 11 package org.nexusformat.nxvalidate; 13 12 … … 16 15 /** 17 16 * 18 * @author ser6517 * @author Stephen Rankin 19 18 */ 20 19 public class NXLoadFilesDialog extends javax.swing.JDialog { … … 23 22 private File nxdl = null; 24 23 private boolean OKButtonUsed = false; 24 25 25 /** Creates new form NXLoadFilesDialog */ 26 26 public NXLoadFilesDialog(java.awt.Frame parent, boolean modal) { … … 150 150 private void openButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_openButton1ActionPerformed 151 151 152 if (evt.getSource() == openButton1){152 if (evt.getSource() == openButton1) { 153 153 154 154 int returnVal = jFileChooser1.showOpenDialog(this); … … 167 167 private void openButton2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_openButton2ActionPerformed 168 168 169 if (evt.getSource() == openButton2){169 if (evt.getSource() == openButton2) { 170 170 171 171 int returnVal = jFileChooser1.showOpenDialog(this); … … 183 183 184 184 private void cancelButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_cancelButtonActionPerformed 185 if (evt.getSource() == cancelButton){185 if (evt.getSource() == cancelButton) { 186 186 OKButtonUsed = false; 187 187 this.setVisible(false); … … 190 190 191 191 private void OKButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_OKButtonActionPerformed 192 193 if(evt.getSource() == OKButton){ 192 if (evt.getSource() == OKButton) { 194 193 OKButtonUsed = true; 195 194 this.setVisible(false); … … 197 196 }//GEN-LAST:event_OKButtonActionPerformed 198 197 199 public File getNXSFile() {198 public File getNXSFile() { 200 199 return nxs; 201 200 } 202 public File getNXDLFile(){ 201 202 public File getNXDLFile() { 203 203 return nxdl; 204 204 } 205 205 206 public boolean OKButtonUsed() {206 public boolean OKButtonUsed() { 207 207 return OKButtonUsed; 208 208 } 209 209 210 210 /** 211 * @param args the command line arguments212 */211 * @param args the command line arguments 212 */ 213 213 public static void main(String args[]) { 214 214 java.awt.EventQueue.invokeLater(new Runnable() { 215 215 216 public void run() { 216 217 NXLoadFilesDialog dialog = new NXLoadFilesDialog(new javax.swing.JFrame(), true); 217 218 dialog.addWindowListener(new java.awt.event.WindowAdapter() { 219 218 220 public void windowClosing(java.awt.event.WindowEvent e) { 219 221 System.exit(0); … … 224 226 }); 225 227 } 226 227 228 // Variables declaration - do not modify//GEN-BEGIN:variables 228 229 private javax.swing.JButton OKButton; … … 237 238 private javax.swing.JButton openButton2; 238 239 // End of variables declaration//GEN-END:variables 239 240 240 }
Note: See TracChangeset
for help on using the changeset viewer.
