Revision 31735 trunk/extensions/extGraph/src/org/gvsig/graph/gui/OdMatrixControlPanel.java
OdMatrixControlPanel.java | ||
---|---|---|
14 | 14 |
import javax.swing.DefaultComboBoxModel; |
15 | 15 |
import javax.swing.JFileChooser; |
16 | 16 |
import javax.swing.JFrame; |
17 |
import javax.swing.JOptionPane; |
|
17 | 18 |
import javax.swing.JPanel; |
18 | 19 |
import javax.swing.UIManager; |
19 | 20 |
import javax.swing.UnsupportedLookAndFeelException; |
... | ... | |
208 | 209 |
btnSelectFile.setBounds(new Rectangle(425, 90, 28, 21)); |
209 | 210 |
btnSelectFile.addActionListener(new java.awt.event.ActionListener() { |
210 | 211 |
public void actionPerformed(java.awt.event.ActionEvent e) { |
211 |
System.out.println("actionPerformed()"); // TODO |
|
212 |
// Auto-generated |
|
213 |
// Event stub |
|
214 |
// actionPerformed() |
|
215 |
} |
|
216 |
}); |
|
217 |
btnSelectFile.addActionListener(new java.awt.event.ActionListener() { |
|
218 |
public void actionPerformed(java.awt.event.ActionEvent e) { |
|
219 | 212 |
JFileChooser dlg = new JFileChooser(); |
220 | 213 |
if (dlg.showSaveDialog((Component) PluginServices.getMainFrame()) == JFileChooser.APPROVE_OPTION) |
221 | 214 |
{ |
... | ... | |
223 | 216 |
} |
224 | 217 |
} |
225 | 218 |
}); |
226 |
btnSelectFile.addActionListener(new java.awt.event.ActionListener() { |
|
227 |
public void actionPerformed(java.awt.event.ActionEvent e) { |
|
228 |
|
|
229 |
} |
|
230 |
}); |
|
231 | 219 |
btnOk.setText(_T("OK")); |
232 | 220 |
btnOk.setBounds(new Rectangle(107, 305, 136, 26)); |
233 | 221 |
btnOk.addActionListener(new java.awt.event.ActionListener() { |
... | ... | |
267 | 255 |
} |
268 | 256 |
|
269 | 257 |
private void btnOkActionPerformed(java.awt.event.ActionEvent evt) { |
258 |
if (getGeneratedFile().equalsIgnoreCase("")) |
|
259 |
{ |
|
260 |
JOptionPane.showMessageDialog((Component) PluginServices.getMDIManager().getActiveWindow(), |
|
261 |
PluginServices.getText(null, "Please_select_a_valid_file")); |
|
262 |
return; |
|
263 |
} |
|
264 |
|
|
270 | 265 |
okPressed = true; |
271 | 266 |
closeWindow(); |
272 | 267 |
} |
Also available in: Unified diff