changeset 9714:77a32e5df365

6359971: Threads tab: Simple text to explain that one can click on a thread to get stack trace Reviewed-by: alanb, jbachorik
author egahlin
date Wed, 21 Aug 2013 17:17:45 +0200
parents 7b6211cd8d76
children 223be1d3494f
files src/share/classes/sun/tools/jconsole/Messages.java src/share/classes/sun/tools/jconsole/ThreadTab.java src/share/classes/sun/tools/jconsole/resources/messages.properties
diffstat 3 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/sun/tools/jconsole/Messages.java	Wed Aug 21 17:15:44 2013 +0200
+++ b/src/share/classes/sun/tools/jconsole/Messages.java	Wed Aug 21 17:17:45 2013 +0200
@@ -271,6 +271,7 @@
     public static String THREADS;
     public static String THREAD_TAB_THREAD_INFO_ACCESSIBLE_NAME;
     public static String THREAD_TAB_THREAD_PLOTTER_ACCESSIBLE_NAME;
+    public static String THREAD_TAB_INITIAL_STACK_TRACE_MESSAGE;
     public static String THRESHOLD;
     public static String TILE;
     public static String TIME_RANGE_COLON;
--- a/src/share/classes/sun/tools/jconsole/ThreadTab.java	Wed Aug 21 17:15:44 2013 +0200
+++ b/src/share/classes/sun/tools/jconsole/ThreadTab.java	Wed Aug 21 17:17:45 2013 +0200
@@ -596,6 +596,7 @@
             setBorder(thinEmptyBorder);
 
             setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
+            textArea.setText(Messages.THREAD_TAB_INITIAL_STACK_TRACE_MESSAGE);
             addListSelectionListener(ThreadTab.this);
             setCellRenderer(new DefaultListCellRenderer() {
                 public Component getListCellRendererComponent(JList<?> list, Object value, int index,
--- a/src/share/classes/sun/tools/jconsole/resources/messages.properties	Wed Aug 21 17:15:44 2013 +0200
+++ b/src/share/classes/sun/tools/jconsole/resources/messages.properties	Wed Aug 21 17:17:45 2013 +0200
@@ -229,6 +229,7 @@
 THREADS=Threads
 THREAD_TAB_THREAD_INFO_ACCESSIBLE_NAME=Thread Information
 THREAD_TAB_THREAD_PLOTTER_ACCESSIBLE_NAME=Chart for number of threads.
+THREAD_TAB_INITIAL_STACK_TRACE_MESSAGE=[No thread selected]
 THRESHOLD=Threshold
 TILE=&Tile
 TIME_RANGE_COLON=&Time Range: