mirror of
https://github.com/bancika/diy-layout-creator
synced 2026-11-10 09:12:09 +10:00
Tooltip doesn't cover buttons in the right side of the status bar
This commit is contained in:
@@ -133,7 +133,15 @@ public class StatusBar extends JPanel implements IPlugIn {
|
|||||||
|
|
||||||
private UpdateLabel getUpdateLabel() {
|
private UpdateLabel getUpdateLabel() {
|
||||||
if (updateLabel == null) {
|
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(
|
// updateLabel.setBorder(BorderFactory.createCompoundBorder(
|
||||||
// BorderFactory.createEtchedBorder(), BorderFactory
|
// BorderFactory.createEtchedBorder(), BorderFactory
|
||||||
// .createEmptyBorder(2, 4, 2, 4)));
|
// .createEmptyBorder(2, 4, 2, 4)));
|
||||||
@@ -144,7 +152,15 @@ public class StatusBar extends JPanel implements IPlugIn {
|
|||||||
|
|
||||||
public JLabel getAnnouncementLabel() {
|
public JLabel getAnnouncementLabel() {
|
||||||
if (announcementLabel == null) {
|
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.setToolTipText("Click to fetch the most recent public announcement");
|
||||||
announcementLabel.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));
|
announcementLabel.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));
|
||||||
announcementLabel.addMouseListener(new MouseAdapter() {
|
announcementLabel.addMouseListener(new MouseAdapter() {
|
||||||
@@ -183,7 +199,15 @@ public class StatusBar extends JPanel implements IPlugIn {
|
|||||||
|
|
||||||
private MemoryBar getMemoryPanel() {
|
private MemoryBar getMemoryPanel() {
|
||||||
if (memoryPanel == null) {
|
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;
|
return memoryPanel;
|
||||||
}
|
}
|
||||||
@@ -198,7 +222,15 @@ public class StatusBar extends JPanel implements IPlugIn {
|
|||||||
|
|
||||||
public JLabel getSizeLabel() {
|
public JLabel getSizeLabel() {
|
||||||
if (sizeLabel == null) {
|
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.setFocusable(true);
|
||||||
sizeLabel.setToolTipText("Click to calculate selection size");
|
sizeLabel.setToolTipText("Click to calculate selection size");
|
||||||
sizeLabel.addMouseListener(new MouseAdapter() {
|
sizeLabel.addMouseListener(new MouseAdapter() {
|
||||||
|
|||||||
@@ -1676,7 +1676,11 @@
|
|||||||
</org.diylc.appframework.update.Change>
|
</org.diylc.appframework.update.Change>
|
||||||
<org.diylc.appframework.update.Change>
|
<org.diylc.appframework.update.Change>
|
||||||
<changeType>IMPROVEMENT</changeType>
|
<changeType>IMPROVEMENT</changeType>
|
||||||
<description>Ability to edit color of copper trace, curved trace and solder pad at the same time</description>
|
<description>Ability to edit color of copper traces, curved traces and solder pads at the same time when they are all selected</description>
|
||||||
|
</org.diylc.appframework.update.Change>
|
||||||
|
<org.diylc.appframework.update.Change>
|
||||||
|
<changeType>IMPROVEMENT</changeType>
|
||||||
|
<description>Tooltip doesn't cover buttons in the right side of the status bar</description>
|
||||||
</org.diylc.appframework.update.Change>
|
</org.diylc.appframework.update.Change>
|
||||||
<org.diylc.appframework.update.Change>
|
<org.diylc.appframework.update.Change>
|
||||||
<changeType>BUG_FIX</changeType>
|
<changeType>BUG_FIX</changeType>
|
||||||
|
|||||||
Reference in New Issue
Block a user