Package com.l2fprod.common.swing.tips

Examples of com.l2fprod.common.swing.tips.DefaultTip


        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);
View Full Code Here

TOP

Related Classes of com.l2fprod.common.swing.tips.DefaultTip

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.