swing - JColorChooser with Substance look and feel, Java 7 -
i'm writing application uses substance , feel along jcolorchooser. works fine java 6, on trying things out java 7 doesn't jcolorchooser's:
java.lang.nullpointerexception @ org.pushingpixels.substance.internal.ui.substancelistui$substancelistselectionlistener$1.run(substancelistui.java:135)
i'm guessing new jcolorchooser that's being introduced in java 7, , substance tied current 1 in way. however, aside writing own colour chooser, there nice way round issue knows of? suspect (hope) substance updated in due course solve issue, i'd play around of new features in builds of java 7 before it's released.
i somehow suspect answer no, if there quick fix / patch somewhere (i couldn't find one) useful!
this interesting study in "bug compatibility." if color set null , try , color color chooser, nullpointerexception resulted. kirill expected , trapped in try/catch block. however, in java 7 instead return null method instead of throwing npe.
there 3 snippets of code need changed:
https://github.com/insubstantial/insubstantial/commit/0f01ae676c6f56d6879862a911ad03caeafabc52
in next week or i'm going publish first distribution of insubstantial include fix.
Comments
Post a Comment