ListSelectionModel rowSM = table.getSelectionModel();
rowSM.addListSelectionListener(new ListSelectionListener()
{
ListSelectionModel rowSM = table.getSelectionModel();
rowSM.addListSelectionListener(new ListSelectionListener()
{
public void valueChanged(ListSelectionEvent e)
{
ListSelectionModel lsm = (ListSelectionModel) e.getSource();
public void valueChanged(ListSelectionEvent e)
{
ListSelectionModel lsm = (ListSelectionModel) e.getSource();
public void refresh_actionPerformed(ActionEvent e)
{
saveProperties(jalview.bin.Cache.applicationProperties);
public void refresh_actionPerformed(ActionEvent e)
{
saveProperties(jalview.bin.Cache.applicationProperties);
public void amendLocal(boolean newSource)
{
String url = "http://localhost:8080/", nickname = "";
public void amendLocal(boolean newSource)
{
String url = "http://localhost:8080/", nickname = "";
seqs.setSelected(seqsrc);
JPanel panel = new JPanel(new BorderLayout());
JPanel pane12 = new JPanel(new BorderLayout());
seqs.setSelected(seqsrc);
JPanel panel = new JPanel(new BorderLayout());
JPanel pane12 = new JPanel(new BorderLayout());
BorderLayout.CENTER);
pane12.add(nametf, BorderLayout.EAST);
panel.add(pane12, BorderLayout.NORTH);
BorderLayout.CENTER);
pane12.add(nametf, BorderLayout.EAST);
panel.add(pane12, BorderLayout.NORTH);
int choice = JOptionPane.showInternalOptionDialog(Desktop.desktop,
"Do you want to edit or remove " + nickname + "?",
"Edit / Remove Local DAS Source",
int choice = JOptionPane.showInternalOptionDialog(Desktop.desktop,
"Do you want to edit or remove " + nickname + "?",
"Edit / Remove Local DAS Source",
// The features filter is not visible, but we must still
// filter the das source list here.
// July 2006 - only 6 sources fo not serve features
// The features filter is not visible, but we must still
// filter the das source list here.
// July 2006 - only 6 sources fo not serve features
- if (selectedInList(filter1.getSelectedValues(), new String[]
- { coords.get(j).getAuthority() })
+ if (selectedInList(filter1.getSelectedValues(),
+ new String[] { coords.get(j).getAuthority() })
&& selectedInList(filter2.getSelectedValues(), new String[]
{ coords.get(j).getSource() }))
{
&& selectedInList(filter2.getSelectedValues(), new String[]
{ coords.get(j).getSource() }))
{
public void reset_actionPerformed(ActionEvent e)
{
registryURL.setText(sourceRegistry.getDasRegistryURL());
public void reset_actionPerformed(ActionEvent e)
{
registryURL.setText(sourceRegistry.getDasRegistryURL());
- private String[] columnNames = new String[]
- { MessageManager.getString("label.nickname"), MessageManager.getString("label.use_source") };
+ private String[] columnNames = new String[] {
+ MessageManager.getString("label.nickname"),
+ MessageManager.getString("label.use_source") };
* each cell. If we didn't implement this method, then the last column would
* contain text ("true"/"false"), rather than a check box.
*/
* each cell. If we didn't implement this method, then the last column would
* contain text ("true"/"false"), rather than a check box.
*/
public Class getColumnClass(int c)
{
return getValueAt(0, c).getClass();
public Class getColumnClass(int c)
{
return getValueAt(0, c).getClass();
public boolean isCellEditable(int row, int col)
{
// Note that the data/cell address is constant,
public boolean isCellEditable(int row, int col)
{
// Note that the data/cell address is constant,