6417702: Graph in Memory tab is not redrawn immediately if changed via 'Chart' combo box

Reviewed-by: alanb, jbachorik, sjiang
This commit is contained in:
Erik Gahlin 2013-08-16 17:02:12 +02:00
parent b42c6fb241
commit 06e0c4e161

View File

@ -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 @@ class MemoryTab extends Tab implements ActionListener, ItemListener {
if (ev.getStateChange() == ItemEvent.SELECTED) {
Plotter plotter = (Plotter)plotterChoice.getSelectedItem();
plotterPanel.setPlotter(plotter);
plotterPanel.repaint();
}
}