• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Java BalloonTip类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中net.java.balloontip.BalloonTip的典型用法代码示例。如果您正苦于以下问题:Java BalloonTip类的具体用法?Java BalloonTip怎么用?Java BalloonTip使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



BalloonTip类属于net.java.balloontip包,在下文中一共展示了BalloonTip类的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: firstTimeBalloonTip

import net.java.balloontip.BalloonTip; //导入依赖的package包/类
private void firstTimeBalloonTip()
{
        Thread firstTimeBalloonTipThread = new Thread(new Runnable()
        {
            private ActionListener finishedAction;
            
            @Override
            public void run()
            {
                BalloonTip balloonTip = new BalloonTip(addServerButton, "<html>Please <u>Start Here</u>!</html>");
                if (animated) { FadingUtils.fadeInBalloon(balloonTip, finishedAction, 1000, 10); } else { balloonTip.setVisible(true); }
                try { Thread.sleep(60000); } catch (InterruptedException ex) {  }
                if (animated) { FadingUtils.fadeOutBalloon(balloonTip, finishedAction, 1000, 10); } else { balloonTip.setVisible(true); }
            }
        });
        firstTimeBalloonTipThread.setName("splitterThread");
        firstTimeBalloonTipThread.setDaemon(false);
        firstTimeBalloonTipThread.setPriority(Thread.NORM_PRIORITY);
        firstTimeBalloonTipThread.start();                    
}
 
开发者ID:ron-from-nl,项目名称:DataCenterManager,代码行数:21,代码来源:DCMClient.java


示例2: MergedMoleculesPopUp

import net.java.balloontip.BalloonTip; //导入依赖的package包/类
public MergedMoleculesPopUp(JTable parent, int row, int col, List<Molecule> molecules) {
    GenericTableModel model = new GenericTableModel();
    for(Molecule mol : molecules) {
        model.addRow(mol);
    }
    MoleculeDescriptor header = model.cloneDescriptor();
    header.removeParam(MoleculeDescriptor.LABEL_DETECTIONS);
    model.setDescriptor(header);
    //
    JComponent mergedMoleculesTable = new JScrollPane(new JTable(model));
    mergedMoleculesTable.setPreferredSize(new Dimension(450, 250));
    //
    new TableCellBalloonTip(parent, mergedMoleculesTable, row, col,
            new RoundedBalloonStyle(5, 10, Color.LIGHT_GRAY, Color.BLUE),
            new RightBelowPositioner(10, 10), BalloonTip.getDefaultCloseButton());
}
 
开发者ID:zitmen,项目名称:thunderstorm,代码行数:17,代码来源:MergedMoleculesPopUp.java


示例3: generateBalloonTip

import net.java.balloontip.BalloonTip; //导入依赖的package包/类
private BalloonTip generateBalloonTip(String toolTipText) {
    BalloonTip balloonTip = new BalloonTip(syntaxInfoLabel, toolTipText);
    balloonTip.setStyle(new MinimalBalloonStyle(Color.white, 5));
    balloonTip.setCloseButton(null);
    balloonTip.setVisible(false);
    balloonTip.addMouseListener(new MouseAdapter() {
        @Override
        public void mouseClicked(MouseEvent e) {
            balloonTip.setVisible(false);
        }
    });
    return balloonTip;
}
 
开发者ID:benchdoos,项目名称:WeblocOpener,代码行数:14,代码来源:SettingsDialog.java


示例4: displayValidationErrors

import net.java.balloontip.BalloonTip; //导入依赖的package包/类
/**
 * Displays balloon tips if the object is a JComponent or prints the message if it is not.
 */
public void displayValidationErrors() {
    for (int i = 0; i < validationErrors.size(); i++) {
        if (isObjectFromObjectMapJComponent(validationErrors.get(i))) {
            BalloonTip errorTip = new BalloonTip((JComponent) getObjectFromObjectMap(validationErrors.get(i)), "<html>" + getErrorMessageForObject(validationErrors.get(i)) + "</html>");
            if (isCloseOnFocusForObject(validationErrors.get(i))) {
                ((JComponent) getObjectFromObjectMap(validationErrors.get(i))).addFocusListener(new CloseToolTipFocusListener());
            }
            validationErrorTips.add(errorTip);
        } else {
            System.out.println(getObjectFromObjectMap(validationErrors.get(i)).toString() + ": " + getErrorMessageForObject(validationErrors.get(i)));
        }
    }
}
 
开发者ID:asaladino,项目名称:folder-monitor,代码行数:17,代码来源:Validation.java


示例5: setToolTipText

import net.java.balloontip.BalloonTip; //导入依赖的package包/类
@Override
public void setToolTipText(String text) {
    this.ToolTipText = text;

    JLabel Tooltiptext = new JLabel(text);
    Tooltiptext.setFont(new Font(Parent.Settings.GetButtonFontName(), this.FontWeight, 10));
    BalloonTipStyle style = new MinimalBalloonStyle(new Color(210, 210, 210), 4);
    BalloonToolTip = new BalloonTip(this, Tooltiptext, style, Orientation.LEFT_ABOVE, AttachLocation.NORTH, 20, 8, false);
    BalloonToolTip.setOpaque(true);
    BalloonToolTip.setPadding(5);
    BalloonToolTip.setDoubleBuffered(true);
    BalloonToolTip.setVisible(false);
    BalloonToolTip.setBackground(Color.black);
}
 
开发者ID:apertus-open-source-cinema,项目名称:elphelvision_eclipse,代码行数:15,代码来源:EButton.java


示例6: generateLabelWithHelpBubble

import net.java.balloontip.BalloonTip; //导入依赖的package包/类
public static JPanel generateLabelWithHelpBubble(String labelText, String helpBubbleText, int topOffset) {
    JPanel labelContainer = new JPanel(new FlowLayout(FlowLayout.LEFT, HELP_ICON_LEFT_PADDING, topOffset));
    labelContainer.add(new JLabel(labelText));
    JLabel help = new JLabel(helpIcon);
    BalloonTip chunkSizeTip = new BalloonTip(help, helpBubbleText, helpBubbleStyle, false);
    ToolTipUtils.balloonToToolTip(chunkSizeTip, 100, 100000);
    labelContainer.add(help);
    return labelContainer;
}
 
开发者ID:socrata,项目名称:datasync,代码行数:10,代码来源:UIUtility.java


示例7: showBalloonTip

import net.java.balloontip.BalloonTip; //导入依赖的package包/类
public static void showBalloonTip(JComponent attachedComponent, String tip) {
    closeBalloonTip();
    baloon = new BalloonTip(attachedComponent, tip);
}
 
开发者ID:zitmen,项目名称:thunderstorm,代码行数:5,代码来源:GUI.java


示例8: generateHelpBubble

import net.java.balloontip.BalloonTip; //导入依赖的package包/类
public static JLabel generateHelpBubble(String helpBubbleText) {
    JLabel help = new JLabel(helpIcon);
    BalloonTip chunkSizeTip = new BalloonTip(help, helpBubbleText, helpBubbleStyle, false);
    ToolTipUtils.balloonToToolTip(chunkSizeTip, 100, 100000);
    return help;
}
 
开发者ID:socrata,项目名称:datasync,代码行数:7,代码来源:UIUtility.java



注:本文中的net.java.balloontip.BalloonTip类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java EntityReferenceAction类代码示例发布时间:2022-05-23
下一篇:
Java XMLString类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap