Mercurial > hg > release > thermostat-0.4
changeset 593:8b76cd6f56b6
Table bottom border in Dolphin laf
review-thread: http://icedtea.classpath.org/pipermail/thermostat/2012-September/003091.html
reviewed-by: jerboaa
author | Mario Torre <neugens.limasoftware@gmail.com> |
---|---|
date | Mon, 10 Sep 2012 10:52:54 +0200 |
parents | 136dfbad25fb |
children | 2f032228d157 |
files | dolphin/src/main/java/com/redhat/swing/laf/dolphin/tab/DolphinTabbedPaneUI.java thread/client-common/src/main/java/com/redhat/thermostat/thread/client/common/ThreadDetailsView.java |
diffstat | 2 files changed, 7 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/dolphin/src/main/java/com/redhat/swing/laf/dolphin/tab/DolphinTabbedPaneUI.java Fri Sep 07 16:35:21 2012 -0400 +++ b/dolphin/src/main/java/com/redhat/swing/laf/dolphin/tab/DolphinTabbedPaneUI.java Mon Sep 10 10:52:54 2012 +0200 @@ -154,7 +154,6 @@ int w, int h) { if (tabPlacement == LEFT) { - System.err.println("LEFT"); super.paintContentBorderLeftEdge(g, tabPlacement, selectedIndex, x, y, w, h); } @@ -183,6 +182,11 @@ if (tabPlacement == BOTTOM) { super.paintContentBorderBottomEdge(g, tabPlacement, selectedIndex, x, y, w, h); + } else { + Graphics2D graphics = (Graphics2D) g.create(); + DolphinTheme theme = DolphinThemeUtils.getCurrentTheme(); + graphics.setColor(theme.getTabBottomHedgeColor()); + graphics.drawLine(x, y + h - 1, x + w - 1, y + h - 1); } }
--- a/thread/client-common/src/main/java/com/redhat/thermostat/thread/client/common/ThreadDetailsView.java Fri Sep 07 16:35:21 2012 -0400 +++ b/thread/client-common/src/main/java/com/redhat/thermostat/thread/client/common/ThreadDetailsView.java Mon Sep 10 10:52:54 2012 +0200 @@ -49,7 +49,8 @@ public IconDescriptor getEmptyDetailsIcon() { try { - return IconDescriptor.createFromClassloader(ClassLoader.getSystemClassLoader(), "com/redhat/thermostat/thread/client/common/monitor.png"); + return IconDescriptor.createFromClassloader(ClassLoader.getSystemClassLoader(), + "com/redhat/thermostat/thread/client/common/monitor.png"); } catch (IOException e) { logger.log(Level.WARNING, "Can't load emptyDetailsIcon", e); }