File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Swing / AWT / SWT and the fly likes Java TaskBar integration Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Java TaskBar integration" Watch "Java TaskBar integration" New topic
Author

Java TaskBar integration

Vilius Zaboras
Greenhorn

Joined: Oct 21, 2012
Posts: 3
Hello guys,

I am writing a small app (using SWT). Basically it has several modes of work, and depending on the mode some buttons lock on and off.
For all of this I use a window with all of the buttons but sometimes I have to switch back and forth between this program and other programs. This is not the best way and not very comfortable.
I have tried to keep the window on top, but yet again, since there are quite some buttons it takes a lot of place and I have to move it from time to time so it would not obstruct the desktop view.

And so comes the question: Would it be possible to integrate all of those buttons to windows taskbar (i.e. like in windows 7 when you hover over a Skype icon you get ability to select your status or when you hover over media players icon you get playback controls so you can control those programs without activating them)
Alternatively, would it be possible to dedicate entire row in a taskbar for this program and add all of the buttons to it.
Do you have any other ideas how to make the app more convenient? I am using Windows 7 but this app should work on XP.

If this is possible, where can I find more info on this?
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14268
    
  21

Welcome to the Ranch.

Do you mean the Windows system tray, in the bottom right corner of the screen? There are ways to put icons there from your Java program. See this tutorial from Oracle: How to Use the System Tray


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 8 API documentation
Vilius Zaboras
Greenhorn

Joined: Oct 21, 2012
Posts: 3
Thank You, I'll read about the package a little more. This might work

But actually i had in mind a program view similar as in the attachments (I guess the first option is only available in win 7 but creating a toolbar for the taskbar might work in Win XP as well).

I'm not even sure which thread this should be posted in anymore... This might be more an Windows modification or something...



[JavaTB-1.png]


[JavaTB-2.png]

Haifeng Jiang
Ranch Hand

Joined: Dec 14, 2008
Posts: 42
Vilius Zaboras wrote:Thank You, I'll read about the package a little more. This might work

But actually i had in mind a program view similar as in the attachments (I guess the first option is only available in win 7 but creating a toolbar for the taskbar might work in Win XP as well).

I'm not even sure which thread this should be posted in anymore... This might be more an Windows modification or something...


Hello, did you find anything? can you please share with us? thanks


Thinking a lot. Gaining a lot.
Vilius Zaboras
Greenhorn

Joined: Oct 21, 2012
Posts: 3
Hello Haifeng,

Unfortunately I have not found a solution I was looking for. I have constructed a work-around. Instead of a program constantly running now there are several independent subroutines with a common interface which are triggered from a basic shortcut in a toolbar. All of those subroutines share the source files and now only have small dialogs related to the specific "state" the work is being done.

Even though this sometimes cause crashes/conflicts if a subroutine has not finished running and the other one has started and I have to run master routine to consolidate the whole days work and this takes some additional time but despite that this is second best thing I could think of

If anyone finds a different solution I am still interested.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Java TaskBar integration