Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
org.madlonkay:desktopsupport
Advanced tools
A library to bridge Apple Java Extensions and JEP 272 desktop APIs
This library bridges the Apple Java Extensions APIs and the JEP 272 desktop APIs added in Java 9. It is intended for use by applications that want to support running on both Java 8 and Java 11.
This library wraps a subset of the com.apple.eawt.Application
API and
delegates to whichever actual implementation is available: Apple or Java 9+, or
a dummy no-op implementation if neither.
Thus it is safe to call the API anywhere, without checking the platform first. Note, however, that listeners and handlers will never be called under the no-op implementation, so critical logic must not be placed there.
Java version | Platform | Implementation |
---|---|---|
Java 8 | macOS | com.apple.eawt.* |
Java 8 | Other | No-op |
Java 11 | Any | java.awt.* |
com.apple.eawt.Application
com.apple.eawt.FullScreenUtilities
UIManager#createLookAndFeel
from Java 9+Java 8+ is required to run.
Java 11 is required in order to build.
Add the dependency:
implementation 'org.madlonkay:desktopsupport:+'
Call methods on DesktopSupport.getSupport()
:
DesktopSupport.getSupport().disableSuddenTermination();
DesktopSupport.getSupport().setAboutHandler(e -> {
// handle About event
});
The API is meant to mostly match the ones it wraps, but it is not quite a drop-in replacement:
AboutEvent
) are just
EventObject
FullScreenUtilities
(Apple) and Taskbar
/GraphicsEnvironment
/etc. (Java
9) methods are on IDesktopSupport
with everything else rather than in a
separate classApache 2.0
FAQs
A library to bridge Apple Java Extensions and JEP 272 desktop APIs
We found that org.madlonkay:desktopsupport demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.