src/jdk.jconsole/share/classes/sun/tools/jconsole/inspector/XPlottingViewer.java
author vlivanov
Thu, 18 Jan 2018 02:25:18 +0300
changeset 48596 860326263d1f
parent 47216 71c04702a3d5
permissions -rw-r--r--
8194963: SystemDictionary::link_method_handle_constant() can't link MethodHandle.invoke()/invokeExact() Reviewed-by: kvn, psandoz
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     1
/*
22584
eed64ee05369 8032733: Fix cast lint warnings in client libraries
darcy
parents: 14342
diff changeset
     2
 * Copyright (c) 2004, 2014, Oracle and/or its affiliates. All rights reserved.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
90ce3da70b43 Initial load
duke
parents:
diff changeset
     4
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
90ce3da70b43 Initial load
duke
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 1233
diff changeset
     7
 * published by the Free Software Foundation.  Oracle designates this
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     8
 * particular file as subject to the "Classpath" exception as provided
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 1233
diff changeset
     9
 * by Oracle in the LICENSE file that accompanied this code.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    10
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    11
 * This code is distributed in the hope that it will be useful, but WITHOUT
90ce3da70b43 Initial load
duke
parents:
diff changeset
    12
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
90ce3da70b43 Initial load
duke
parents:
diff changeset
    13
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
90ce3da70b43 Initial load
duke
parents:
diff changeset
    14
 * version 2 for more details (a copy is included in the LICENSE file that
90ce3da70b43 Initial load
duke
parents:
diff changeset
    15
 * accompanied this code).
90ce3da70b43 Initial load
duke
parents:
diff changeset
    16
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    17
 * You should have received a copy of the GNU General Public License version
90ce3da70b43 Initial load
duke
parents:
diff changeset
    18
 * 2 along with this work; if not, write to the Free Software Foundation,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    19
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    20
 *
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 1233
diff changeset
    21
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 1233
diff changeset
    22
 * or visit www.oracle.com if you need additional information or have any
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 1233
diff changeset
    23
 * questions.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    24
 */
55
5ecee29e98d8 6655515: MBeans tab: operation return values of type Component displayed as String
lmalvent
parents: 2
diff changeset
    25
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    26
package sun.tools.jconsole.inspector;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    27
90ce3da70b43 Initial load
duke
parents:
diff changeset
    28
import java.awt.*;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    29
import java.awt.event.*;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    30
import java.util.*;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    31
import java.util.Timer;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    32
90ce3da70b43 Initial load
duke
parents:
diff changeset
    33
import javax.swing.*;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    34
90ce3da70b43 Initial load
duke
parents:
diff changeset
    35
import sun.tools.jconsole.*;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    36
90ce3da70b43 Initial load
duke
parents:
diff changeset
    37
@SuppressWarnings("serial")
90ce3da70b43 Initial load
duke
parents:
diff changeset
    38
public class XPlottingViewer extends PlotterPanel implements ActionListener {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    39
    // TODO: Make number of decimal places customizable
90ce3da70b43 Initial load
duke
parents:
diff changeset
    40
    private static final int PLOTTER_DECIMALS = 4;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    41
90ce3da70b43 Initial load
duke
parents:
diff changeset
    42
    private JButton plotButton;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    43
    // The plotter cache holds Plotter instances for the various attributes
90ce3da70b43 Initial load
duke
parents:
diff changeset
    44
    private static HashMap<String, XPlottingViewer> plotterCache =
90ce3da70b43 Initial load
duke
parents:
diff changeset
    45
        new HashMap<String, XPlottingViewer>();
90ce3da70b43 Initial load
duke
parents:
diff changeset
    46
     private static HashMap<String, Timer> timerCache =
90ce3da70b43 Initial load
duke
parents:
diff changeset
    47
         new HashMap<String, Timer>();
90ce3da70b43 Initial load
duke
parents:
diff changeset
    48
    private MBeansTab tab;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    49
    private String attributeName;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    50
    private String key;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    51
    private JTable table;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    52
    private XPlottingViewer(String key,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    53
                            XMBean mbean,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    54
                            String attributeName,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    55
                            Object value,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    56
                            JTable table,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    57
                            MBeansTab tab) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    58
        super(null);
90ce3da70b43 Initial load
duke
parents:
diff changeset
    59
90ce3da70b43 Initial load
duke
parents:
diff changeset
    60
        this.tab = tab;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    61
        this.key = key;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    62
        this.table = table;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    63
        this.attributeName = attributeName;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    64
        Plotter plotter = createPlotter(mbean, attributeName, key, table);
90ce3da70b43 Initial load
duke
parents:
diff changeset
    65
        setupDisplay(plotter);
90ce3da70b43 Initial load
duke
parents:
diff changeset
    66
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
    67
90ce3da70b43 Initial load
duke
parents:
diff changeset
    68
    static void dispose(MBeansTab tab) {
12851
3334e1c781d0 7017818: NLS: JConsoleResources.java cannot be handled by translation team
egahlin
parents: 5506
diff changeset
    69
        Iterator<String> it = plotterCache.keySet().iterator();
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    70
        while(it.hasNext()) {
12851
3334e1c781d0 7017818: NLS: JConsoleResources.java cannot be handled by translation team
egahlin
parents: 5506
diff changeset
    71
            String key = it.next();
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    72
            if(key.startsWith(String.valueOf(tab.hashCode()))) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    73
                it.remove();
90ce3da70b43 Initial load
duke
parents:
diff changeset
    74
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
    75
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
    76
        //plotterCache.clear();
90ce3da70b43 Initial load
duke
parents:
diff changeset
    77
        it = timerCache.keySet().iterator();
90ce3da70b43 Initial load
duke
parents:
diff changeset
    78
        while(it.hasNext()) {
22584
eed64ee05369 8032733: Fix cast lint warnings in client libraries
darcy
parents: 14342
diff changeset
    79
            String key = it.next();
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    80
            if(key.startsWith(String.valueOf(tab.hashCode()))) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    81
                Timer t = timerCache.get(key);
90ce3da70b43 Initial load
duke
parents:
diff changeset
    82
                t.cancel();
90ce3da70b43 Initial load
duke
parents:
diff changeset
    83
                it.remove();
90ce3da70b43 Initial load
duke
parents:
diff changeset
    84
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
    85
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
    86
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
    87
90ce3da70b43 Initial load
duke
parents:
diff changeset
    88
    public static boolean isViewableValue(Object value) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    89
        return (value instanceof Number);
90ce3da70b43 Initial load
duke
parents:
diff changeset
    90
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
    91
90ce3da70b43 Initial load
duke
parents:
diff changeset
    92
    //Fired by dbl click
90ce3da70b43 Initial load
duke
parents:
diff changeset
    93
    public  static Component loadPlotting(XMBean mbean,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    94
                                          String attributeName,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    95
                                          Object value,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    96
                                          JTable table,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    97
                                          MBeansTab tab) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    98
        Component comp = null;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    99
        if(isViewableValue(value)) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   100
            String key = String.valueOf(tab.hashCode()) + " " + String.valueOf(mbean.hashCode()) + " " + mbean.getObjectName().getCanonicalName() + attributeName;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   101
            XPlottingViewer plotter = plotterCache.get(key);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   102
            if(plotter == null) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   103
                plotter = new XPlottingViewer(key,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   104
                                              mbean,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   105
                                              attributeName,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   106
                                              value,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   107
                                              table,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   108
                                              tab);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   109
                plotterCache.put(key, plotter);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   110
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   111
90ce3da70b43 Initial load
duke
parents:
diff changeset
   112
            comp = plotter;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   113
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   114
        return comp;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   115
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   116
90ce3da70b43 Initial load
duke
parents:
diff changeset
   117
    /*public void paintComponent(Graphics g) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   118
        super.paintComponent(g);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   119
        setBackground(g.getColor());
90ce3da70b43 Initial load
duke
parents:
diff changeset
   120
        plotter.paintComponent(g);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   121
        }*/
1233
3b08cf0cab53 6748745: JConsole: plotters don't resize well when the window is resized
dfuchs
parents: 715
diff changeset
   122
    @Override
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   123
    public void actionPerformed(ActionEvent evt) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   124
        plotterCache.remove(key);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   125
        Timer t = timerCache.remove(key);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   126
        t.cancel();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   127
        ((XMBeanAttributes) table).collapse(attributeName, this);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   128
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   129
90ce3da70b43 Initial load
duke
parents:
diff changeset
   130
    //Create plotter instance
90ce3da70b43 Initial load
duke
parents:
diff changeset
   131
    public Plotter createPlotter(final XMBean xmbean,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   132
                                 final String attributeName,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   133
                                 String key,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   134
                                 JTable table) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   135
        final Plotter plotter = new XPlotter(table, Plotter.Unit.NONE) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   136
                Dimension prefSize = new Dimension(400, 170);
1233
3b08cf0cab53 6748745: JConsole: plotters don't resize well when the window is resized
dfuchs
parents: 715
diff changeset
   137
            @Override
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   138
                public Dimension getPreferredSize() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   139
                    return prefSize;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   140
                }
1233
3b08cf0cab53 6748745: JConsole: plotters don't resize well when the window is resized
dfuchs
parents: 715
diff changeset
   141
            @Override
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   142
                public Dimension getMinimumSize() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   143
                    return prefSize;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   144
                }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   145
            };
90ce3da70b43 Initial load
duke
parents:
diff changeset
   146
90ce3da70b43 Initial load
duke
parents:
diff changeset
   147
        plotter.createSequence(attributeName, attributeName, null, true);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   148
90ce3da70b43 Initial load
duke
parents:
diff changeset
   149
        TimerTask timerTask = new TimerTask() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   150
                public void run() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   151
                    tab.workerAdd(new Runnable() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   152
                            public void run() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   153
                                try {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   154
                                    Number n =
699
afedf7cc9bfe 6714244: Plotters in MBeans tab should use SnapshotMBeanServerConnection too
lmalvent
parents: 55
diff changeset
   155
                                        (Number) xmbean.getSnapshotMBeanServerConnection().getAttribute(xmbean.getObjectName(), attributeName);
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   156
                                    long v;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   157
                                    if (n instanceof Float || n instanceof Double) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   158
                                        plotter.setDecimals(PLOTTER_DECIMALS);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   159
                                        double d = (n instanceof Float) ? (Float)n : (Double)n;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   160
                                        v = Math.round(d * Math.pow(10.0, PLOTTER_DECIMALS));
90ce3da70b43 Initial load
duke
parents:
diff changeset
   161
                                    } else {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   162
                                        v = n.longValue();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   163
                                    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   164
                                    plotter.addValues(System.currentTimeMillis(), v);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   165
                                } catch (Exception ex) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   166
                                    // Should have a trace logged with proper
90ce3da70b43 Initial load
duke
parents:
diff changeset
   167
                                    // trace mecchanism
90ce3da70b43 Initial load
duke
parents:
diff changeset
   168
                                }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   169
                            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   170
                        });
90ce3da70b43 Initial load
duke
parents:
diff changeset
   171
                }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   172
            };
90ce3da70b43 Initial load
duke
parents:
diff changeset
   173
90ce3da70b43 Initial load
duke
parents:
diff changeset
   174
        String timerName = "Timer-" + key;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   175
        Timer timer = new Timer(timerName, true);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   176
        timer.schedule(timerTask, 0, tab.getUpdateInterval());
90ce3da70b43 Initial load
duke
parents:
diff changeset
   177
        timerCache.put(key, timer);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   178
        return plotter;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   179
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   180
90ce3da70b43 Initial load
duke
parents:
diff changeset
   181
    private void setupDisplay(Plotter plotter) {
1233
3b08cf0cab53 6748745: JConsole: plotters don't resize well when the window is resized
dfuchs
parents: 715
diff changeset
   182
        final JPanel buttonPanel = new JPanel();
3b08cf0cab53 6748745: JConsole: plotters don't resize well when the window is resized
dfuchs
parents: 715
diff changeset
   183
        final GridBagLayout gbl = new GridBagLayout();
3b08cf0cab53 6748745: JConsole: plotters don't resize well when the window is resized
dfuchs
parents: 715
diff changeset
   184
        buttonPanel.setLayout(gbl);
3b08cf0cab53 6748745: JConsole: plotters don't resize well when the window is resized
dfuchs
parents: 715
diff changeset
   185
        setLayout(new BorderLayout());
12851
3334e1c781d0 7017818: NLS: JConsoleResources.java cannot be handled by translation team
egahlin
parents: 5506
diff changeset
   186
        plotButton = new JButton(Messages.DISCARD_CHART);
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   187
        plotButton.addActionListener(this);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   188
        plotButton.setEnabled(true);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   189
90ce3da70b43 Initial load
duke
parents:
diff changeset
   190
        GridBagConstraints buttonConstraints = new GridBagConstraints();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   191
        buttonConstraints.gridx = 0;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   192
        buttonConstraints.gridy = 0;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   193
        buttonConstraints.fill = GridBagConstraints.VERTICAL;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   194
        buttonConstraints.anchor = GridBagConstraints.CENTER;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   195
        gbl.setConstraints(plotButton, buttonConstraints);
1233
3b08cf0cab53 6748745: JConsole: plotters don't resize well when the window is resized
dfuchs
parents: 715
diff changeset
   196
        buttonPanel.add(plotButton);
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   197
1233
3b08cf0cab53 6748745: JConsole: plotters don't resize well when the window is resized
dfuchs
parents: 715
diff changeset
   198
        if (attributeName != null && attributeName.length()!=0) {
3b08cf0cab53 6748745: JConsole: plotters don't resize well when the window is resized
dfuchs
parents: 715
diff changeset
   199
            final JPanel plotterLabelPanel = new JPanel();
3b08cf0cab53 6748745: JConsole: plotters don't resize well when the window is resized
dfuchs
parents: 715
diff changeset
   200
            final JLabel label = new JLabel(attributeName);
3b08cf0cab53 6748745: JConsole: plotters don't resize well when the window is resized
dfuchs
parents: 715
diff changeset
   201
            final GridBagLayout gbl2 = new GridBagLayout();
3b08cf0cab53 6748745: JConsole: plotters don't resize well when the window is resized
dfuchs
parents: 715
diff changeset
   202
            plotterLabelPanel.setLayout(gbl2);
3b08cf0cab53 6748745: JConsole: plotters don't resize well when the window is resized
dfuchs
parents: 715
diff changeset
   203
            final GridBagConstraints labelConstraints = new GridBagConstraints();
3b08cf0cab53 6748745: JConsole: plotters don't resize well when the window is resized
dfuchs
parents: 715
diff changeset
   204
            labelConstraints.gridx = 0;
3b08cf0cab53 6748745: JConsole: plotters don't resize well when the window is resized
dfuchs
parents: 715
diff changeset
   205
            labelConstraints.gridy = 0;
3b08cf0cab53 6748745: JConsole: plotters don't resize well when the window is resized
dfuchs
parents: 715
diff changeset
   206
            labelConstraints.fill = GridBagConstraints.VERTICAL;
3b08cf0cab53 6748745: JConsole: plotters don't resize well when the window is resized
dfuchs
parents: 715
diff changeset
   207
            labelConstraints.anchor = GridBagConstraints.CENTER;
3b08cf0cab53 6748745: JConsole: plotters don't resize well when the window is resized
dfuchs
parents: 715
diff changeset
   208
            labelConstraints.ipady = 10;
3b08cf0cab53 6748745: JConsole: plotters don't resize well when the window is resized
dfuchs
parents: 715
diff changeset
   209
            gbl2.setConstraints(label, labelConstraints);
3b08cf0cab53 6748745: JConsole: plotters don't resize well when the window is resized
dfuchs
parents: 715
diff changeset
   210
            plotterLabelPanel.add(label);
3b08cf0cab53 6748745: JConsole: plotters don't resize well when the window is resized
dfuchs
parents: 715
diff changeset
   211
            add(plotterLabelPanel, BorderLayout.NORTH);
3b08cf0cab53 6748745: JConsole: plotters don't resize well when the window is resized
dfuchs
parents: 715
diff changeset
   212
        }
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   213
        setPlotter(plotter);
1233
3b08cf0cab53 6748745: JConsole: plotters don't resize well when the window is resized
dfuchs
parents: 715
diff changeset
   214
        add(buttonPanel, BorderLayout.SOUTH);
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   215
        repaint();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   216
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   217
90ce3da70b43 Initial load
duke
parents:
diff changeset
   218
}