JPanel panel; setTitle("Viewer");
JPanel panel; setTitle("Viewer");
@Override public void actionPerformed(ActionEvent evt) { ViewerDialog dialog; int result; dialog = new ViewerDialog(null); dialog.setTitle("Relational attribute Viewer - " + ((DataSortedTableModel) getModel()).getInstances() .attribute(m_ColumnIndex - 1).name()); result = dialog.showDialog(m_CurrentInst); if (result == ViewerDialog.APPROVE_OPTION) { m_CurrentInst = dialog.getInstances(); fireEditingStopped(); } else { fireEditingCanceled(); } } });
@Override public void actionPerformed(ActionEvent evt) { ViewerDialog dialog; int result; dialog = new ViewerDialog(null); dialog.setTitle("Relational attribute Viewer - " + ((DataSortedTableModel) getModel()).getInstances() .attribute(m_ColumnIndex - 1).name()); result = dialog.showDialog(m_CurrentInst); if (result == ViewerDialog.APPROVE_OPTION) { m_CurrentInst = dialog.getInstances(); fireEditingStopped(); } else { fireEditingCanceled(); } } });
@Override public void actionPerformed(ActionEvent evt) { ViewerDialog dialog; int result; dialog = new ViewerDialog(null); dialog.setTitle("Relational attribute Viewer - " + ((ArffSortedTableModel) getModel()).getInstances() .attribute(((ArffSortedTableModel)getModel()).getAttributeIndex(columnIndex)).name()); result = dialog.showDialog(m_CurrentInst); if (result == ViewerDialog.APPROVE_OPTION) { m_CurrentInst = dialog.getInstances(); fireEditingStopped(); } else { fireEditingCanceled(); } } });
@Override public void actionPerformed(ActionEvent evt) { ViewerDialog dialog; int result; dialog = new ViewerDialog(null); dialog.setTitle("Relational attribute Viewer - " + ((ArffSortedTableModel) getModel()).getInstances() .attribute(((ArffSortedTableModel)getModel()).getAttributeIndex(columnIndex)).name()); result = dialog.showDialog(m_CurrentInst); if (result == ViewerDialog.APPROVE_OPTION) { m_CurrentInst = dialog.getInstances(); fireEditingStopped(); } else { fireEditingCanceled(); } } });