jdk/src/share/classes/sun/tools/jconsole/MemoryTab.java
changeset 19429 7de30a1db3b3
parent 14342 8435a30053c1
equal deleted inserted replaced
19428:83f87aff7b07 19429:7de30a1db3b3
     1 /*
     1 /*
     2  * Copyright (c) 2004, 2012, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2004, 2013, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
   226 
   226 
   227     public void itemStateChanged(ItemEvent ev) {
   227     public void itemStateChanged(ItemEvent ev) {
   228         if (ev.getStateChange() == ItemEvent.SELECTED) {
   228         if (ev.getStateChange() == ItemEvent.SELECTED) {
   229             Plotter plotter = (Plotter)plotterChoice.getSelectedItem();
   229             Plotter plotter = (Plotter)plotterChoice.getSelectedItem();
   230             plotterPanel.setPlotter(plotter);
   230             plotterPanel.setPlotter(plotter);
       
   231             plotterPanel.repaint();
   231         }
   232         }
   232     }
   233     }
   233 
   234 
   234     public void gc() {
   235     public void gc() {
   235         new Thread("MemoryPanel.gc") {
   236         new Thread("MemoryPanel.gc") {