int x = 10; int y = 10;
Icon collapsedIcon = treeUI.getCollapsedIcon();
Icon expandeIcon = treeUI.getExpandedIcon(); int w = collapsedIcon.getIconWidth(); int h = collapsedIcon.getIconHeight();
collapsedIcon.paintIcon(this, g, x, y);
g.drawRect(x, y, w, h);
y += 10 + h;
w = expandeIcon.getIconWidth();
h = expandeIcon.getIconHeight();
expandeIcon.paintIcon(this, g, x, y);
g.drawRect(x, y, w, h);
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.