changeset 653:cc4111663730

Remove grey boxes from the host UI Make a few non-transparent JPanels transparent. This removes a number of grey boxes that are visible in the host information tabs. The 'background' should be consistently white now in all of the host information tabs. Reviewed-by: jerboaa Review-thread: http://icedtea.classpath.org/pipermail/thermostat/2012-September/003416.html
author Omair Majid <omajid@redhat.com>
date Fri, 28 Sep 2012 12:45:39 -0400
parents 2e6cfb3cf5d1
children 87579a4f901b
files client/core/src/main/java/com/redhat/thermostat/client/ui/HostCpuPanel.java client/core/src/main/java/com/redhat/thermostat/client/ui/HostMemoryPanel.java client/core/src/main/java/com/redhat/thermostat/client/ui/RecentTimeSeriesChartPanel.java
diffstat 3 files changed, 10 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/client/core/src/main/java/com/redhat/thermostat/client/ui/HostCpuPanel.java	Fri Sep 28 12:29:34 2012 -0400
+++ b/client/core/src/main/java/com/redhat/thermostat/client/ui/HostCpuPanel.java	Fri Sep 28 12:45:39 2012 -0400
@@ -217,6 +217,7 @@
         chart.getPlot().setOutlinePaint(new Color(0,0,0,0));
 
         JPanel chartPanel = new RecentTimeSeriesChartPanel(new RecentTimeSeriesChartController(chart));
+        chartPanel.setOpaque(false);
 
         legendPanel = new JPanel(new WrapLayout(FlowLayout.LEADING));
         legendPanel.setOpaque(false);
--- a/client/core/src/main/java/com/redhat/thermostat/client/ui/HostMemoryPanel.java	Fri Sep 28 12:29:34 2012 -0400
+++ b/client/core/src/main/java/com/redhat/thermostat/client/ui/HostMemoryPanel.java	Fri Sep 28 12:45:39 2012 -0400
@@ -133,6 +133,7 @@
                 newCheckBox.setActionCommand(tag);
                 newCheckBox.setSelected(true);
                 newCheckBox.addActionListener(memoryCheckboxListener);
+                newCheckBox.setOpaque(false);
                 checkBoxes.put(tag, newCheckBox);
                 memoryCheckBoxPanel.add(newCheckBox);
 
@@ -241,15 +242,19 @@
 
     private void initializePanel() {
         visiblePanel = new JPanel();
+        visiblePanel.setOpaque(false);
 
         chart = createMemoryChart();
 
         JPanel chartPanel = new RecentTimeSeriesChartPanel(new RecentTimeSeriesChartController(chart));
+        chartPanel.setOpaque(false);
 
         JLabel lblMemory = Components.header(localize(LocaleResources.HOST_MEMORY_SECTION_OVERVIEW));
 
         JLabel totalMemoryLabel = Components.label(localize(LocaleResources.HOST_INFO_MEMORY_TOTAL));
 
+        memoryCheckBoxPanel.setOpaque(false);
+
         GroupLayout groupLayout = new GroupLayout(visiblePanel);
         groupLayout.setHorizontalGroup(
             groupLayout.createParallelGroup(Alignment.LEADING)
--- a/client/core/src/main/java/com/redhat/thermostat/client/ui/RecentTimeSeriesChartPanel.java	Fri Sep 28 12:29:34 2012 -0400
+++ b/client/core/src/main/java/com/redhat/thermostat/client/ui/RecentTimeSeriesChartPanel.java	Fri Sep 28 12:45:39 2012 -0400
@@ -101,6 +101,7 @@
 
     private Component getControlsAndAdditionalDisplay() {
         JPanel container = new JPanel();
+        container.setOpaque(false);
 
         container.setLayout(new BorderLayout());
 
@@ -112,6 +113,7 @@
 
     private Component getChartControls() {
         JPanel container = new JPanel();
+        container.setOpaque(false);
 
         final JTextField durationSelector = new JTextField(5);
         final JComboBox<TimeUnit> unitSelector = new JComboBox<>();
@@ -137,7 +139,9 @@
 
     private Component getAdditionalDataDisplay() {
         JPanel panel = new JPanel(new GridBagLayout());
+        panel.setOpaque(false);
         labelContainer = new JPanel();
+        labelContainer.setOpaque(false);
         GridBagConstraints constraints = new GridBagConstraints();
         constraints.fill = GridBagConstraints.BOTH;
         constraints.anchor = GridBagConstraints.CENTER;