/[svn]/jsampler/trunk/src/org/jsampler/view/classic/InstrumentChooser.java
ViewVC logotype

Diff of /jsampler/trunk/src/org/jsampler/view/classic/InstrumentChooser.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 841 by iliev, Mon Oct 10 16:03:12 2005 UTC revision 842 by iliev, Thu Mar 16 18:08:34 2006 UTC
# Line 112  public class InstrumentChooser extends O Line 112  public class InstrumentChooser extends O
112                          public void                          public void
113                          actionPerformed(ActionEvent e) { onBrowse(); }                          actionPerformed(ActionEvent e) { onBrowse(); }
114                  });                  });
115                    
116                    btnBrowse.requestFocusInWindow();
117          }          }
118                    
119          protected void          protected void
# Line 138  public class InstrumentChooser extends O Line 140  public class InstrumentChooser extends O
140                  int result = fc.showOpenDialog(this);                  int result = fc.showOpenDialog(this);
141                  if(result == JFileChooser.APPROVE_OPTION) {                  if(result == JFileChooser.APPROVE_OPTION) {
142                          tfFilename.setText(fc.getSelectedFile().getPath());                          tfFilename.setText(fc.getSelectedFile().getPath());
143                            btnOk.requestFocusInWindow();
144                  }                  }
145          }          }
146                    
# Line 148  public class InstrumentChooser extends O Line 151  public class InstrumentChooser extends O
151          public String          public String
152          getFileName() { return tfFilename.getText(); }          getFileName() { return tfFilename.getText(); }
153                    
154            /**
155             * Gets the index of the instrument in the instrument file.
156             * @return The index of the instrument in the instrument file.
157             */
158          public int          public int
159          getInstrumentIndex() { return Integer.parseInt(spinnerIndex.getValue().toString()); }          getInstrumentIndex() { return Integer.parseInt(spinnerIndex.getValue().toString()); }
160  }  }

Legend:
Removed from v.841  
changed lines
  Added in v.842

  ViewVC Help
Powered by ViewVC