Since Java SE 9, Java AWT/Swing has supported automatic high DPI scaling on Windows and Linux, just like JavaFX. Ironically, this came with a bug that JavaFX used to have until Java 9: Window.setMinimumSize fails to scale the specified width and height on high DPI systems. (Unlike JavaFX, AWT/Swing windows ignore setMaximumSize anyway. Non-window components … Continue reading “Minimum Size Scaling for Swing Windows”
Tag: Java Swing
Java AWT/Swing topics and projects
MIME Browser 2 for Swing Released
Version 2.0 of MIME Browser, my free EML message viewer, is now available for download. The big change is the one motivated by the removal of JavaFX from Oracle’s Java SE distributions: MIME Browser is now based on Java AWT/Swing rather than JavaFX. The user interface has become somewhat uglier as a result (below is … Continue reading “MIME Browser 2 for Swing Released”
DPI Scaling for CSSBox
Radek Burget’s CSSBox is an (X)HTML/CSS rendering engine written in pure Java with AWT/Swing display output. While it doesn’t support JavaScript, it does support modern HTML/CSS and is also tolerant of any content it doesn’t understand. This makes CSSBox a good replacement for the standard JEditorPane which is limited to HTML 3.2 with some extensions, … Continue reading “DPI Scaling for CSSBox”
Glyph Positioning in JFreeSVG & OrsonPDF
Object Refinery Ltd. makes two small but extremely useful Java libraries for producing vector graphics. JFreeSVG (free & commercial) supports Scalable Vector Graphics (SVG) and HTML5 Canvas output, and OrsonPDF (commercial with free demo) supports Adobe PDF output. Each provides a custom implementation of java.awt.Graphics2D, the 2D drawing surface for the Java AWT graphics library. … Continue reading “Glyph Positioning in JFreeSVG & OrsonPDF”
yWorks yEd & UML Doclet
The core products of yWorks are the yFiles libraries for Java, .NET, and JavaScript which handle graph analysis, layout, and visualization. The libraries are enterprise-priced (thousands of dollars) but yWorks also offers some very interesting free tools. Aside from the yGuard bytecode obfuscator, these are all diagramming applications based on yFiles. yEd Graph Editor The … Continue reading “yWorks yEd & UML Doclet”