Results 1 to 1 of 1
- 01-10-2010, 09:24 PM #1
Member
- Join Date
- Jan 2010
- Posts
- 1
- Rep Power
- 0
SWT: Progress bar in taskbar for Windows 7
Hi! I've recently upgraded to windows 7, and I *really* like the new progress bar
in the taskbar.
While i think in many cases, it's not required; there are some cases, such as installations and file operations that make it a handy tool to have.
At the moment, I'm pretty sure SWT does not have functionality to support this, but does anyone know if the guys working on SWT have any plans to implement this?
If it were to be implemented, i'd suppose it'd look something like below:
Also, in windows 7, when you right click a program, you can access some features on it without opening the windows.Java Code://Written in the WYSIWYG editor, prolly would have bugs. //The purpose is not to draw a shell at all, but to make the taskbar //progress bar go to 50% and make it go to the Error state. (RED bar.) import org.eclipse.swt.*; import org.eclipse.swt.widgets.*; class ProgressBarTest{ Display display = null; Shell shell = null; public void init(){ display = new Display(); shell = new Shell(display, SWT.CLOSE); ProgressBar bar = new ProgressBar(shell, SWT.SMOOTH, SWT.TASKBAR); //TASKBAR saying that IF the platform is windows 7, make this bar show in the taskbar. bar.setMaximum(100); bar.setState(SWT.ERROR); shell.setVisible(true); shell.setFocus(); bar.setSelection(50); //50%, essentially while(!shell.isDisposed){ if(!display.readAndDispatch()){ display.sleep(); } } } public static void main(String[] args){ ProgressBarTest test = new ProgressBarTest(); test.init(); System.exit(0); } } }
Like, in itunes, you can pick a recently played song from the right click menu.
Do you think they'll implement this as well?
Thanks,
Fud
Similar Threads
-
problem on progress bar
By ravidasineni in forum AWT / SwingReplies: 2Last Post: 12-27-2009, 02:23 AM -
Java jar files not showing icons on taskbar??!
By srisar in forum Forum LobbyReplies: 0Last Post: 12-25-2009, 01:03 PM -
trying to use progress bar for the first time.
By IYIaster in forum New To JavaReplies: 19Last Post: 07-26-2009, 03:59 AM -
How to use Progress bar
By LankanSniper in forum AWT / SwingReplies: 3Last Post: 03-25-2009, 10:44 AM -
Hide Object in the Taskbar when Frame is down to Tray
By hannehomuth in forum Advanced JavaReplies: 2Last Post: 07-12-2008, 06:54 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks