Mercurial > hg > release > thermostat-0.4
changeset 594:2f032228d157
Draw full size header in header pane
review-thread: http://icedtea.classpath.org/pipermail/thermostat/2012-September/003092.html
reviewed-by: jerboaa
author | Mario Torre <neugens.limasoftware@gmail.com> |
---|---|
date | Mon, 10 Sep 2012 10:52:54 +0200 |
parents | 8b76cd6f56b6 |
children | 4554ecf92e41 |
files | client/swing-components/src/main/java/com/redhat/thermostat/swing/HeaderPanel.java thread/client-swing/src/main/java/com/redhat/thermostat/thread/client/swing/impl/SwingThreadView.java |
diffstat | 2 files changed, 1 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/client/swing-components/src/main/java/com/redhat/thermostat/swing/HeaderPanel.java Mon Sep 10 10:52:54 2012 +0200 +++ b/client/swing-components/src/main/java/com/redhat/thermostat/swing/HeaderPanel.java Mon Sep 10 10:52:54 2012 +0200 @@ -125,7 +125,7 @@ Paint gradient = new GradientPaint(0, 0, Color.WHITE, 0, getHeight(), getBackground()); graphics.setPaint(gradient); - graphics.fillRect(0, 0, getWidth() - 1, getHeight() - 1); + graphics.fillRect(0, 0, getWidth(), getHeight()); if (header != null) { int currentHeight = getHeight(); @@ -134,7 +134,6 @@ int height = graphicsUtils.getFontMetrics(this, font).getAscent()/2 + currentHeight/2 - 1; graphicsUtils.drawStringWithShadow(this, graphics, header, getForeground(), 6, height); } - graphics.dispose(); } }
--- a/thread/client-swing/src/main/java/com/redhat/thermostat/thread/client/swing/impl/SwingThreadView.java Mon Sep 10 10:52:54 2012 +0200 +++ b/thread/client-swing/src/main/java/com/redhat/thermostat/thread/client/swing/impl/SwingThreadView.java Mon Sep 10 10:52:54 2012 +0200 @@ -54,7 +54,6 @@ import com.redhat.thermostat.client.ui.SwingComponent; import com.redhat.thermostat.common.locale.Translate; import com.redhat.thermostat.swing.ChartPanel; -import com.redhat.thermostat.thread.client.common.ThreadDetailsView; import com.redhat.thermostat.thread.client.common.ThreadTableBean; import com.redhat.thermostat.thread.client.common.ThreadTableView; import com.redhat.thermostat.thread.client.common.ThreadView;