JDK-4915908 : RFE: javax.desktop package
  • Type: Enhancement
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 1.4.2
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_xp
  • CPU: x86
  • Submitted: 2003-09-02
  • Updated: 2005-11-28
  • Resolved: 2005-11-28
Related Reports
Duplicate :  
Relates :  
Description
Name: rmT116609			Date: 09/02/2003


A DESCRIPTION OF THE REQUEST :
Many users want a System.launchDefaultBrowser() like function. Beyond that,  Java may introduce a javax.desktop package, which is dedicated to Desktop Environment related objects/properties/actions/tasks...

  To name a few:

  To launch default application handling given url:
Desktop.launchDefaultHandler(URL url, boolean makeNewInstance);
Desktop.launchDefaultHandler(String file, boolean makeNewInstance);
Desktop.launchDefaultHandler(File file, boolean makeNewInstance);


  To launch a default application instance and open an empty file:
Desktop.launchDefaultBrowser();
Desktop.launchDefaultMailClient();
Desktop.launchDefaultMailWriter();
Desktop.launchDefaultNewsReader();
Desktop.launchDefaultTextEditor();
Desktop.launchDefaultRichTextEditor();
...

  To set current desktop wall paper:
Desktop.setCurrentWallPaper(URL picture, Enum fillMethod);

  To add an applet into System Tray:
import javax.desktop.tray.*;
TrayApplet applet = new TrayApplet();
.....
Desktop.addSysTrayApplet(applet);

etc, etc



JUSTIFICATION :
Many people want to program real desktop applications in Java.

EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Let experts figure out what a "Desktop" is.

Perple can "program desktop" in Java!
ACTUAL -
People have to turn to System.exec(), JNI, etc, to write attractive desktop applications, which is not reliable, platform dependent, and require much effort.
(Incident Review ID: 201520) 
======================================================================

Comments
EVALUATION 6255196(various desktop access methods) was integrated into Mustang (6.0) build 49. 4310333(tray API) was integrated into Mustang (6.0) build 38.
28-11-2005

EVALUATION Planned for Mustang, see http://jplan.sfbay/feature/239 ###@###.### 2005-04-14 10:54:55 GMT The proposed API is at http://sceri.prc/desktop/MH/java_integration/download/desktop_api_tuning/javadoc/ ###@###.### 2005-04-14 10:55:30 GMT
14-04-2005