"Question", JOptionPane.YES_NO_OPTION)) {
fake.setShowingOnStartup(true);
}
}
DefaultTipModel tips = new DefaultTipModel();
// plain text
tips
.add(new DefaultTip(
"tip1",
"This is the first tip This is the first tip This is the first tip This is the first tip This is the first tip This is the first tip\nThis is the first tip This is the first tip"));
// html text
tips.add(new DefaultTip("tip2",
"<html>This is an html <b>TIP</b><br><center>"
+ "<table border=\"1\">" + "<tr><td>1</td><td>entry 1</td></tr>"
+ "<tr><td>2</td><td>entry 2</td></tr>"
+ "<tr><td>3</td><td>entry 3</td></tr>" + "</table>"));
// a Component
tips.add(new DefaultTip("tip3", new JTree()));
// an Icon
tips.add(new DefaultTip("tip 4", new ImageIcon(BasicTipOfTheDayUI.class
.getResource("TipOfTheDay24.gif"))));
JTipOfTheDay totd = new JTipOfTheDay(tips);
totd.setCurrentTip(0);