6417702: Graph in Memory tab is not redrawn immediately if changed via 'Chart' combo box
authoregahlin
Fri, 16 Aug 2013 17:02:12 +0200
changeset 19429 7de30a1db3b3
parent 19428 83f87aff7b07
child 19430 4f0314c65ab9
6417702: Graph in Memory tab is not redrawn immediately if changed via 'Chart' combo box Reviewed-by: alanb, jbachorik, sjiang
jdk/src/share/classes/sun/tools/jconsole/MemoryTab.java
--- a/jdk/src/share/classes/sun/tools/jconsole/MemoryTab.java	Tue Aug 06 14:26:34 2013 +0100
+++ b/jdk/src/share/classes/sun/tools/jconsole/MemoryTab.java	Fri Aug 16 17:02:12 2013 +0200
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2004, 2012, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2004, 2013, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -228,6 +228,7 @@
         if (ev.getStateChange() == ItemEvent.SELECTED) {
             Plotter plotter = (Plotter)plotterChoice.getSelectedItem();
             plotterPanel.setPlotter(plotter);
+            plotterPanel.repaint();
         }
     }