Revision 7732 trunk/libraries/libJCRS/src/org/gvsig/crs/gui/panels/EPSGpanel.java
EPSGpanel.java | ||
---|---|---|
63 | 63 |
9811, 9812, 9813, 9814, 9815, 9816, 9817, 9602, 9659}; |
64 | 64 |
boolean select = false; |
65 | 65 |
|
66 |
String[] soported_crs = {"projected","geographic 2D","geographic 3D", "geocentric", "compound"};
|
|
67 |
String[] not_soported_crs = {"engineering", "vertical"}; |
|
66 |
String[] soported_crs = {"projected","geographic 2D","geographic 3D", "geocentric"}; |
|
67 |
String[] not_soported_crs = {"engineering", "vertical", "compound"};
|
|
68 | 68 |
|
69 | 69 |
private JRadioButton codeRadioButton = null; |
70 | 70 |
private JRadioButton nameRadioButton = null; |
... | ... | |
197 | 197 |
} |
198 | 198 |
|
199 | 199 |
private void searchButton_actionPerformed(ActionEvent e) { |
200 |
boolean not_valid = false; |
|
200 | 201 |
searchTextField.setBackground(Color.white); |
201 | 202 |
|
202 | 203 |
if (searchTextField.getText().equals("")) { |
... | ... | |
325 | 326 |
dtm.addRow(data); |
326 | 327 |
} |
327 | 328 |
if (notValid(crs_kind)){ |
328 |
JOptionPane.showMessageDialog(this, "CRS no soportado por la aplicacion.", "Warning...", |
|
329 |
JOptionPane.WARNING_MESSAGE); |
|
329 |
not_valid = true; |
|
330 | 330 |
} |
331 | 331 |
} |
332 | 332 |
} |
... | ... | |
336 | 336 |
} |
337 | 337 |
} |
338 | 338 |
int numr = dtm.getRowCount(); |
339 |
if (numr == 0 ){ |
|
339 |
if (not_valid){ |
|
340 |
JOptionPane.showMessageDialog(this, "Algunos CRS no son v?lidos, no ser?n mostrados.", "Warning...", |
|
341 |
JOptionPane.WARNING_MESSAGE); |
|
342 |
not_valid = false; |
|
343 |
} |
|
344 |
else if (numr == 0 ){ |
|
340 | 345 |
JOptionPane.showMessageDialog(this, "Not Results found.", "Warning...", |
341 | 346 |
JOptionPane.WARNING_MESSAGE); |
342 | 347 |
} |
... | ... | |
471 | 476 |
if (jTable == null) { |
472 | 477 |
String[] columnNames= {"Code of CRS","Name of CRS","Type of CRS","Name of Area","Description of Area"}; |
473 | 478 |
Object[][]data = {}; |
474 |
dtm = new DefaultTableModel(data, columnNames); |
|
479 |
dtm = new DefaultTableModel(data, columnNames) |
|
480 |
{ |
|
481 |
public boolean isCellEditable(int row, int column) { |
|
482 |
return false; |
|
483 |
} |
|
484 |
}; |
|
475 | 485 |
TableSorter sorter = new TableSorter(dtm); |
476 | 486 |
|
477 | 487 |
jTable = new JTable(sorter); |
... | ... | |
491 | 501 |
else { |
492 | 502 |
column.setPreferredWidth(160); |
493 | 503 |
} |
494 |
} |
|
495 |
jTable.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); |
|
504 |
} |
|
496 | 505 |
} |
497 | 506 |
return jTable; |
498 | 507 |
|
Also available in: Unified diff