|
|
@ -50,8 +50,7 @@ public class ToolTipDemo implements ComponentDemo { |
|
|
|
ToolTipContext context = new ToolTipContext(button).setAlignment(Alignment.CENTER) |
|
|
|
ToolTipContext context = new ToolTipContext(button).setAlignment(Alignment.CENTER) |
|
|
|
.setCenterAlignment(Alignment.SOUTH); |
|
|
|
.setCenterAlignment(Alignment.SOUTH); |
|
|
|
ToolTipContext.setDefaultContext(context); |
|
|
|
ToolTipContext.setDefaultContext(context); |
|
|
|
button.setToolTipText(StringUtil.toHtml( |
|
|
|
button.setToolTipText(StringUtil.toHtml("<p style=\"color:red;\">This is the ToolTip demo text!\n" |
|
|
|
"<p style=\"color:red;\">This is the ToolTip demo text!\n" |
|
|
|
|
|
|
|
+ "<p style=\"color:blue;\">This is the ToolTip demo text!\n" |
|
|
|
+ "<p style=\"color:blue;\">This is the ToolTip demo text!\n" |
|
|
|
+ "<p style=\"color:green;\">This is the ToolTip demo text!\n")); |
|
|
|
+ "<p style=\"color:green;\">This is the ToolTip demo text!\n")); |
|
|
|
button.putClientProperty(DarkToolTipUI.KEY_STYLE, DarkToolTipUI.VARIANT_BALLOON); |
|
|
|
button.putClientProperty(DarkToolTipUI.KEY_STYLE, DarkToolTipUI.VARIANT_BALLOON); |
|
|
|