Home
Categories
Dictionary
Download
Project Details
Changes Log
FAQ
License

Distribution



Distributions

There are several distributions for the library:
  • MDIUtilitiesLGPL.jar: jar file containing all the classes of the library, usable on Swing and JavaFX. There are Swing and JavaFX dependencies for this library
  • MDIUtilities-core-LGPL.jar: jar file containing the non UI classes of the library. There are no Swing nor JavaFX dependencies for this library
  • MDIUtilities-ui-LGPL.jar: jar file containing only the classes of the library usable on Swing. There are no JavaFX dependencies for this library
  • MDIUtilities-jfx.jar: jar file containing only the classes of the library usable on JavaFX. There are no Swing dependencies for this library
  • AppLauncher.jar: jar file containing the AppLauncher class and all its dependencies
  • MDIUtilities-junit.jar: jar file containing the JUnit helper classes

Usage

If you want to use the library, the most simple jar to add in the classpath is MDIUtilitiesLGPL.jar. However:
  • If you want to use only non UI classes, you can only add the MDIUtilities-core-LGPL.jar jar to the classpath
  • If you want to use only Swing-related classes, classes, you must add both the MDIUtilities-core-LGPL.jar jar and the MDIUtilities-ui-LGPL.jar jar to the classpath
  • If you want to use only javaFX-related classes, classes, you must add both the MDIUtilities-core-LGPL.jar jar and the MDIUtilities-jfx-LGPL.jar jar to the classpath

Java 9 integration

All the jar files are Java 9 automatic modules. Java 9 does not allow modules to share packages, so each package must me exclusive to one module only.

So some Swing classes which were in the same package as core classes were put in specific swing packages to allow to use the MDIUtilities-core-LGPL.jar library with the MDIUtilities-ui-LGPL.jar library starting with Java 9[1]
Prior to that change it was not possible to use both MDIUtilities-core-LGPL.jar and MDIUtilities-ui-LGPL.jar in the same Java 9 project
.

See ModuleFinder.of(Path...) for more information.

The name of the modules are:
  • MDIUtilities.jar and MDIUtilitiesLGPL.jar: org.mdiutil.all
  • MDIUtilities-core-LGPL.jar: org.mdiutil.core
  • MDIUtilities-ui-LGPL.jar: org.mdiutil.ui
  • MDIUtilities-jfx.jar: org.mdiutil.jfx
  • MDIUtilities-junit.jar: org.mdiutil.junit

Notes

  1. ^ Prior to that change it was not possible to use both MDIUtilities-core-LGPL.jar and MDIUtilities-ui-LGPL.jar in the same Java 9 project

See also


Categories: general

Copyright 2006-2024 Herve Girod. All Rights Reserved. Documentation and source under the LGPL v2 and Apache 2.0 licences