Browse Source

Formatting

pull/188/head
weisj 4 years ago
parent
commit
17828c3691
  1. 3
      core/src/test/java/ui/toolTip/ToolTipDemo.java

3
core/src/test/java/ui/toolTip/ToolTipDemo.java

@ -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);

Loading…
Cancel
Save