diff --git a/diylc/diylc-swing/src/org/diylc/swing/plugins/statusbar/StatusBar.java b/diylc/diylc-swing/src/org/diylc/swing/plugins/statusbar/StatusBar.java index 01a11fc6..8966262f 100644 --- a/diylc/diylc-swing/src/org/diylc/swing/plugins/statusbar/StatusBar.java +++ b/diylc/diylc-swing/src/org/diylc/swing/plugins/statusbar/StatusBar.java @@ -133,7 +133,15 @@ public class StatusBar extends JPanel implements IPlugIn { private UpdateLabel getUpdateLabel() { if (updateLabel == null) { - updateLabel = new UpdateLabel(plugInPort.getCurrentVersionNumber(), UPDATE_URL); + updateLabel = new UpdateLabel(plugInPort.getCurrentVersionNumber(), UPDATE_URL) { + + private static final long serialVersionUID = 1L; + + @Override + public Point getToolTipLocation(MouseEvent event) { + return new Point(0, -16); + } + }; // updateLabel.setBorder(BorderFactory.createCompoundBorder( // BorderFactory.createEtchedBorder(), BorderFactory // .createEmptyBorder(2, 4, 2, 4))); @@ -144,7 +152,15 @@ public class StatusBar extends JPanel implements IPlugIn { public JLabel getAnnouncementLabel() { if (announcementLabel == null) { - announcementLabel = new JLabel(IconLoader.Megaphone.getIcon()); + announcementLabel = new JLabel(IconLoader.Megaphone.getIcon()) { + + private static final long serialVersionUID = 1L; + + @Override + public Point getToolTipLocation(MouseEvent event) { + return new Point(0, -16); + } + }; announcementLabel.setToolTipText("Click to fetch the most recent public announcement"); announcementLabel.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR)); announcementLabel.addMouseListener(new MouseAdapter() { @@ -183,7 +199,15 @@ public class StatusBar extends JPanel implements IPlugIn { private MemoryBar getMemoryPanel() { if (memoryPanel == null) { - memoryPanel = new MemoryBar(false); + memoryPanel = new MemoryBar(false) { + + private static final long serialVersionUID = 1L; + + @Override + public Point getToolTipLocation(MouseEvent event) { + return new Point(0, -52); + } + }; } return memoryPanel; } @@ -198,7 +222,15 @@ public class StatusBar extends JPanel implements IPlugIn { public JLabel getSizeLabel() { if (sizeLabel == null) { - sizeLabel = new JLabel(IconLoader.Size.getIcon()); + sizeLabel = new JLabel(IconLoader.Size.getIcon()) { + + private static final long serialVersionUID = 1L; + + @Override + public Point getToolTipLocation(MouseEvent event) { + return new Point(0, -16); + } + }; sizeLabel.setFocusable(true); sizeLabel.setToolTipText("Click to calculate selection size"); sizeLabel.addMouseListener(new MouseAdapter() { diff --git a/diylc/diylc-swing/update.xml b/diylc/diylc-swing/update.xml index 5f71da83..6ed442b9 100644 --- a/diylc/diylc-swing/update.xml +++ b/diylc/diylc-swing/update.xml @@ -1676,7 +1676,11 @@ IMPROVEMENT - Ability to edit color of copper trace, curved trace and solder pad at the same time + Ability to edit color of copper traces, curved traces and solder pads at the same time when they are all selected + + + IMPROVEMENT + Tooltip doesn't cover buttons in the right side of the status bar BUG_FIX