If running setPreferredWidth() to a high value an OOME is reported.
JTableHeader should renderer the column header just fine and there should be no OOME Increase the width to 10000 and now scroll horizontally, the OOME exception is thrown Now scroll horizontally and you will notice garbage graphics in the column header. Run the test case and set the width for the column to 5000 (and press enter). STEPS TO FOLLOW TO REPRODUCE THE PROBLEM : I've tried Metal and Alloy and these work fine. Note the problem occur only with the Mac OS X L&F. Running the same test program with Java 1.6.0_51 works fine with a preferred width set to several millions.
#JAVA MAC OS X LOOK AND FEEL FULL#
This is the full error:Įxception in thread "AWT-EventQueue-0" : can't create offscreen surfaceĪt .initSurfaceNow(OGLSurfaceData.java:298)Īt .access$000(OGLSurfaceData.java:98)Īt $1.run(OGLSurfaceData.java:324)Īt $n(OGLRenderQueue.java:234) We're filling this gap with FlatLaf, a new open-source look and feel for Java Swing desktop applications, that scales perfectly on HiDPI displays and is available in Light and Dark themes. The OutOfMemoryError occur at a value of approx 10000 and when clicking in the table. FlatLaf - Flat Look and Feel In world where HiDPI displays and/or dark UIs are becoming more and more popular, a good open-source Swing Look and Feel that supports both was missing. For me the garbage in the table header is rendered when setting preferred width to a value around 5000 (scroll horizontally and the garbage will appear). Application Development About Site Status sfnetops.
#JAVA MAC OS X LOOK AND FEEL FOR MAC OS X#
An Objective-C Framework for Regular Expressions using the PCRE Library for Mac OS X Cocoa and GNUstep. Python Classes Without Boilerplate RegexKit. Just before the OutOfMemoryError happen some garbage graphics is painted in the table header. A simple, yet powerful wizard framework for Java and Swing with a look and feel similar to the JFace wizard API. It occurs at a certain level when increasing the value of tPreferredWidth(). The problem happen when having a very large string in single column JTable. This test class demonstrates an OutOfMemoryError that occurs on Mac OS X 10.8.5 running Java 1.7.0_40 (using default JVM parms) and the Mac OS X look and feel.
It disappeared from the bug database during the spring 2013. This very same bug was reported as in December 2012. Java HotSpot(TM) 64-Bit Server VM (build 24.0-b56, mixed mode) Java(TM) SE Runtime Environment (build 1.7.0_40-b43)