changeset 1571:62148e99bbd7

Make table in profiler tab non-editable Reviewed-by: jerboaa Review-thread: http://icedtea.classpath.org/pipermail/thermostat/2014-November/011736.html
author Omair Majid <omajid@redhat.com>
date Thu, 27 Nov 2014 18:35:57 -0500
parents 2891bfded59d
children c789ce56f99b
files vm-profiler/client-swing/src/main/java/com/redhat/thermostat/vm/profiler/client/swing/internal/SwingVmProfileView.java
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/vm-profiler/client-swing/src/main/java/com/redhat/thermostat/vm/profiler/client/swing/internal/SwingVmProfileView.java	Wed Nov 26 10:58:57 2014 -0500
+++ b/vm-profiler/client-swing/src/main/java/com/redhat/thermostat/vm/profiler/client/swing/internal/SwingVmProfileView.java	Thu Nov 27 18:35:57 2014 -0500
@@ -59,6 +59,7 @@
 import com.redhat.thermostat.client.swing.SwingComponent;
 import com.redhat.thermostat.client.swing.components.ActionToggleButton;
 import com.redhat.thermostat.client.swing.components.HeaderPanel;
+import com.redhat.thermostat.client.swing.components.ThermostatTable;
 import com.redhat.thermostat.client.swing.experimental.ComponentVisibilityNotifier;
 import com.redhat.thermostat.common.ActionEvent;
 import com.redhat.thermostat.common.ActionListener;
@@ -145,7 +146,7 @@
         columnNames.add(translator.localize(LocaleResources.PROFILER_RESULTS_TIME, "ms").getContents());
         tableModel = new DefaultTableModel(columnNames, 0);
 
-        JTable profileTable = new JTable(tableModel);
+        JTable profileTable = new ThermostatTable(tableModel);
         profileTable.setAutoCreateRowSorter(true);
 
         JScrollPane profileTablePane = new JScrollPane(profileTable);