Skip to main content

Relevant RFEs

3 replies [Last post]
coxcu
Offline
Joined: 2003-06-11
Points: 0

I'm not entirely sure about the scope and focus of this project, but the following RFEs seem relevant. I'm curious about which (if any) are being targeted by this project, which are being actively targeted by the JRE/JCP, what other third party solutions exist, and what experience anybody has with them.

RFE: javax.desktop package
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4915908

RFE: Access to desktop notification area, i.e. Windows Systray
http://developer.java.sun.com/developer/bugParade/bugs/4737770.html

RFE: Windows taskbar notification/flashing support
http://developer.java.sun.com/developer/bugParade/bugs/4902807.html

Add a system method for launching the user's default browser
http://developer.java.sun.com/developer/bugParade/bugs/4210168.html

Programmatic access to network parameters
http://developer.java.sun.com/developer/bugParade/bugs/4691932.html

To that list I would add:
Integration of the Java Activation Framework and its native counterpart

Since all of the platforms that Java ships on provide similar desktop interfaces and abilities, there should be an a desktop abstraction API to provide access to the desktop shell. I'm talking about a layer over this stuff:

Shell Programmer's Guide
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc...

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
georgez
Offline
Joined: 2003-08-19
Points: 0

Thanks for the good list. We ARE actually targeting most of them. And the current release provides some of the features.

> RFE: javax.desktop package
> http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=491
> 5908

It's a good idea to collect the desktop related APIs into such a package.
>
> RFE: Access to desktop notification area, i.e.
> Windows Systray
> http://developer.java.sun.com/developer/bugParade/bugs
> /4737770.html
>
> RFE: Windows taskbar notification/flashing support
> http://developer.java.sun.com/developer/bugParade/bugs
> /4902807.html
>
These two features are not yet provided. There'll be an incubator project providing them soon.

> Add a system method for launching the user's default
> browser
> http://developer.java.sun.com/developer/bugParade/bugs
> /4210168.html
>
Already provided, check:
https://jdic.dev.java.net/nonav/documentation/javadoc/jdic/org/jdesktop/jdic/desktop/Desktop.html#browse(java.net.URL)

> Programmatic access to network parameters
> http://developer.java.sun.com/developer/bugParade/bugs
> /4691932.html
>
> To that list I would add:
> Integration of the Java Activation Framework and its
> native counterpart
The above two features are not yet provided.

>
> Since all of the platforms that Java ships on provide
> similar desktop interfaces and abilities, there
> should be an a desktop abstraction API to provide
> access to the desktop shell.

I agree. JDIC is targeting to provide a desktop abstraction API to access the desktop facilities and APIs.
But now there is no support for Shell abstraction.

> I'm talking about a
> layer over this stuff:
>
> Shell Programmer's Guide
> http://msdn.microsoft.com/library/default.asp?url=/lib
> rary/en-us/shellcc/platform/shell/programmersguide/she
> ll_intro.asp

Thanks,
-George Zhang

yeroc
Offline
Joined: 2003-06-10
Points: 0

[...]
> > RFE: Access to desktop notification area, i.e.
> > Windows Systray
> >
> http://developer.java.sun.com/developer/bugParade/bugs
>
> > /4737770.html
> >
> > RFE: Windows taskbar notification/flashing support
> >
> http://developer.java.sun.com/developer/bugParade/bugs
>
> > /4902807.html
> >
> These two features are not yet provided. There'll be
> an incubator project providing them soon.
[...]

There are a number of existing packages that handle this that you should probably investigate before re-inventing the wheel. Here are a couple: http://jeans.studentenweb.org/java/trayicon/trayicon.html (I like this one because it allows you to use normal Menu & MenuItems etc. but it needs to be enhanced to support other platforms like Linux) and http://systray.sourceforge.net/ (this one has its own classes for Menu & MenuItems which means it doesn't integrate very well with the existing Java API although it does support KDE in addition to Windows [if it used the API published at http://freedesktop.org/Standards/systemtray-spec it could work with both GNOME & KDE]).

bino_george
Offline
Joined: 2003-06-16
Points: 0

Hi Thorsten,
Yes I will put up the prototype as a starting point.
I had originally done this with the tray code added to JDIC in place,
but since then George has asked me to remove the TRAY code and put
it out as a standalone project. I needed some time to remove the JDIC
dependancy and test it all again. So I plan to put this out on the
incubator area as George suggested.

The approach I took was to use the System notification tray protocol
for both Gnome and KDE http://www.freedesktop.org/Standards/systemtray-spec
and windows Shell API for windows.

My prototype works on both linux (Gnome,KDE) and Windows. Tray Menus
are Swing Menus so that they can take on a Standard L&F and also
you can use the System L&F. In addition my API supports Animated
Icons as well. All you need to do get animation in the notification tray
is t use an animated GIF. Since the menus are Swing menus they can
have Icons in the menus as well (unlike Windows and Gnome tray menus.)
Also you get seemless integration with the rest of your Java GUI app.

Here is an example of how to use the API :

SystemTray tray = SystemTray.getDefaultSystemTray();
JPopupMenu menu;
.
.
// define JMenu

ImageIcon i = new ImageIcon("b1.gif");

TrayIcon ti = new TrayIcon(i,"Java System Tray Demo",menu);

ti.setIconAutoSize(true);
ti.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
JOptionPane.showMessageDialog(null, "System Tray Demo", "About",
+JOptionPane
.INFORMATION_MESSAGE);
}
});

tray.addTrayIcon(ti);

It is that simple, the tray API takes care of talking to the desktop and
doing all the native protocols, showing the tooltips, popping up menu on
right click etc.

Hopefully, I should be able to submit this in next couple of weeks.

Thanks,
Bino.

On Tue Jun08 15:48:36, Thorsten Laux wrote:
> Bino,
>
> there is considerable interest for application icon support in JDIC
> (forum copied). Do you want to put up your prototype as a contributor
> project as a starting point for the design?
>
> Thorsten
>