6359971: Threads tab: Simple text to explain that one can click on a thread to get stack trace
authoregahlin
Wed, 21 Aug 2013 17:17:45 +0200
changeset 19582 1cab3f8c48c7
parent 19581 f860aff6ed05
child 19583 828d85603705
6359971: Threads tab: Simple text to explain that one can click on a thread to get stack trace Reviewed-by: alanb, jbachorik
jdk/src/share/classes/sun/tools/jconsole/Messages.java
jdk/src/share/classes/sun/tools/jconsole/ThreadTab.java
jdk/src/share/classes/sun/tools/jconsole/resources/messages.properties
--- a/jdk/src/share/classes/sun/tools/jconsole/Messages.java	Wed Aug 21 17:15:44 2013 +0200
+++ b/jdk/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/jdk/src/share/classes/sun/tools/jconsole/ThreadTab.java	Wed Aug 21 17:15:44 2013 +0200
+++ b/jdk/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/jdk/src/share/classes/sun/tools/jconsole/resources/messages.properties	Wed Aug 21 17:15:44 2013 +0200
+++ b/jdk/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: