mirror of
https://github.com/processing/processing4.git
synced 2026-02-04 06:09:17 +01:00
show hover text when the mouse is over the 'debug' button
This commit is contained in:
@@ -27,6 +27,7 @@ import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import javax.swing.Box;
|
||||
import javax.swing.JLabel;
|
||||
|
||||
import processing.app.Language;
|
||||
import processing.app.ui.Editor;
|
||||
@@ -109,7 +110,8 @@ public class JavaToolbar extends EditorToolbar {
|
||||
}
|
||||
|
||||
|
||||
public void addModeButtons(Box box) {
|
||||
@Override
|
||||
public void addModeButtons(Box box, JLabel label) {
|
||||
EditorButton debugButton = new EditorButton(mode, "/lib/toolbar/debug",
|
||||
Language.text("toolbar.debug")) {
|
||||
|
||||
@@ -122,6 +124,7 @@ public class JavaToolbar extends EditorToolbar {
|
||||
if (((JavaEditor) editor).isDebuggerEnabled()) {
|
||||
debugButton.setSelected(true);
|
||||
}
|
||||
debugButton.setRolloverLabel(label);
|
||||
box.add(debugButton);
|
||||
addGap(box);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user