Skip to main content

JXGradientChooser No. 2

No replies
Spinnifex
Offline
Joined: 2011-03-29
Points: 0

Hello again,
If you chose RadialGradientPaint and want to drag the circle of the gradient image around
I get the following error :

<br />
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException: Gradient transform cannot be null<br />
        at java.awt.MultipleGradientPaint.<init>(MultipleGradientPaint.java:141)<br />
        at java.awt.RadialGradientPaint.<init>(RadialGradientPaint.java:421)<br />
        at org.jdesktop.swingx.color.GradientPreviewPanel.calculateGradient(GradientPreviewPanel.java:182)<br />
        at org.jdesktop.swingx.color.GradientPreviewPanel.calculateGradient(GradientPreviewPanel.java:110)<br />
        at org.jdesktop.swingx.color.GradientPreviewPanel$GradientMouseHandler.mouseDragged(GradientPreviewPanel.java:247)<br />
        at java.awt.Component.processMouseMotionEvent(Component.java:6311)<br />
        at javax.swing.JComponent.processMouseMotionEvent(JComponent.java:3285)<br />

Same SwingX-version
Greetings,
Spinnifex