Native status bars

2019-03-15 06:41发布

问题:

Is there a way to create native status bars in SWT like those found in Windows applications:

Windows status bar http://i47.tinypic.com/ndq168.jpg

I have seen status bars simulated using labels, but I am more interested in a true solution.

回答1:

org.eclipse.jface.action.StatusLineManager.createControl(), or getControl(), returns a status line control. This control is, of course (being SWT), native.



回答2:

Looks like long standing change request: https://bugs.eclipse.org/bugs/show_bug.cgi?id=88837



回答3:

There is a status bar available in JIDE Components but I'm afraid you will have to pay for it.

I'm not affiliated with JIDE but I do licence their products and would recommend them. I'm afraid I've not tried using them with SWT but there is some information here that suggests that they should work.

You can always get a trial licence and try it out.



回答4:

If you be any change are a Netbeans User, give the Netbeans Platform a try. It can help you do all sort of things including doing a status bar of that sort.

Good Luck