Jesktop Developer Documentation
Introduction


by Paul Hammant, William Beebe

Overview

Applications for use with Jesktop must be packaged in Jar files an contain a manifest of sorts detailing the applications that the jar contains. The applications themselves must be Swing based and have a few programming constraints.

Applications can be written specifically for Jesktop or can be dual mode. That is where they can run from the command line (e.g. java -jar -myapp.jar) and run inside Jesktop. The app must be developed carefully so that it can run as both standalone and Jesktop dependant.

Levels of compatability

Level 1 - JPanel. If your main GUI class is a plain JPanel, that needs no menu,title or window events, just have an empty constructor and keep all your JFrame logic in the main() method (which won't be called). Include the JESKTOP-INF/applications.xml file to tell Jesktop what to launch and it should be installable. This is a really simple target to aim at.

Level 2 - Frimble. As above, but your apps needs a Frame like container for Title, menu and Window Events. Implement the Frimble logic - see FrimbleDemo as well as having and empty constructor, and the applications.xml descriptor. Your app can be dual mode - it can run from the command line and inside Jesktop.

Level 3 - Jesktop aware. Advice as for (2) above. Also implement DesktopKernelAware. This makes allows the app to interact with the Kernel for many services. Bewarned that this interface is evolving quite a lot at the moment. The build in Windows style explorer is an example of this. As is SimpleInstaller.

Further reading

See the documentation on Frimble. An example of that is the FrimbleDemo class.

See our list of contraints to coding.

Hosting provided by : SourceForge Logo Jesktop API SourceForge project page