The Artima Developer Community
Sponsored Link

Java Buzz Forum
Howto insert component into NetBeans statusbar.

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Adam Kruszewski

Posts: 90
Nickname: phantomik
Registered: Jan, 2005

Adam Kruszewski is (mostly) Java developer and linux system administrator.
Howto insert component into NetBeans statusbar. Posted: Sep 9, 2005 2:19 PM
Reply to this message Reply

This post originated from an RSS feed registered with Java Buzz by Adam Kruszewski.
Original Post: Howto insert component into NetBeans statusbar.
Feed Title: Adam Kruszewski :: WebLog();
Feed URL:
Feed Description: Thoughts about linux, open source, programming, ...
Latest Java Buzz Posts
Latest Java Buzz Posts by Adam Kruszewski
Latest Posts From Adam Kruszewski :: WebLog();

To provide a custom component docked into statusbar of NetBeans platform/IDE ( actually I'm using it only as a platform :>) ) just create class implementing org.openide.awt.StatusLineElementProvider. It is a simple one-method interface:
public abstract interface StatusLineElementProvider {
  public abstract Component getStatusLineElement();
And return your custom component there. Just make sure you are returning always the same component, because this method is called at last twice on NetBeans start ( at last it was for me ).
When you are done, make NetBeans know about it by writting it's fully qualified name into /META-INF/services/org.openide.awt.StatusLineElementProvider file.

( for source code samples look at ProblemsVisualizerProvider in org.netbeans.modules.autoupdate package in NetBeans Platform source tree. )

Read: Howto insert component into NetBeans statusbar.

Topic: XPCOM to UNO Previous Topic   Next Topic Topic: Novel Antibiotics Against Super-Bugs

Sponsored Links


Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use