mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
add tooltip support for icon tag
This commit is contained in:
+5
@@ -290,6 +290,11 @@ public class DocumentationComponent extends JPanel implements Disposable, DataPr
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getToolTipText(float x, float y, Shape allocation) {
|
||||
return (String)getElement().getAttributes().getAttribute(HTML.Attribute.ALT);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void paint(Graphics g, Shape allocation) {
|
||||
viewIcon.paintIcon(null, g, allocation.getBounds().x, allocation.getBounds().y - 4);
|
||||
|
||||
Reference in New Issue
Block a user