×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Java
Posted by: Massimo Zappino
Added: Jun 8, 2014 7:30 AM
Modified: Aug 26, 2017 5:49 PM
Views: 2
  1.     private static void showBalloon(String htmlText) {
  2.         JComponent statusBar = WindowManager.getInstance().getIdeFrame(null).getStatusBar().getComponent();
  3.         JBPopupFactory.getInstance()
  4.                 .createHtmlTextBalloonBuilder(htmlText, MessageType.INFO, null)
  5.                 .setFadeoutTime(5000)
  6.                 .createBalloon()
  7.                 .showInCenterOf(statusBar);
  8.     }