Loading picture into circles JavaFX with URL gives error on WindowsHow to disable or bypass Hardware Graphics Acceleration(Prism) in JavaFXNode.js/Windows error: ENOENT, stat 'C:UsersRTAppDataRoamingnpm'Javafx Media class not working without any errorGetting NullPointerException while changing file using fileChooser in media-playerload images dynamically in JavaFX to AnchorpaneHow to implement a GridView style in javafxjavafx exception when get image from metadataSQLite:java.sql.SQLException: ResultSet is TYPE_FORWARD_ONLY?spring with javafx application exception when load fxml after mappingException in Application start method java.lang.reflect.InvocationTargetExceptioException On getChildren().addAll()
Is a single radon-daughter atom in air a solid?
How to get cool night-vision without lame drawbacks?
How do I turn off a repeating trade?
Java TreeMap.floorKey() equivalent for std::map
How does the spell Remove Curse interact with a Sword of Vengeance?
Helping ease my back pain when I'm studying 13 hours everyday, even weekends
What can I do with a research project that is my university’s intellectual property?
Why do textbooks often include the solutions to odd or even numbered problems but not both?
How to remove this component from PCB
Why tighten down in a criss-cross pattern?
How do I professionally let my manager know I'll quit over smoking in the office?
How to draw this center trajectory of rolling ball?
Can you find x?
Why does the Saturn V have standalone inter-stage rings?
Is it damaging to turn off a small fridge for two days every week?
JSON selector class in Python
Count All Possible Unique Combinations of Letters in a Word
Unusual mail headers, evidence of an attempted attack. Have I been pwned?
Why is it recommended to mix yogurt starter with a small amount of milk before adding to the entire batch?
Cut the gold chain
What was the Shuttle Carrier Aircraft escape tunnel?
Why did pressing the joystick button spit out keypresses?
What is the origin of Scooby-Doo's name?
LWC - Best practice for routing?
Loading picture into circles JavaFX with URL gives error on Windows
How to disable or bypass Hardware Graphics Acceleration(Prism) in JavaFXNode.js/Windows error: ENOENT, stat 'C:UsersRTAppDataRoamingnpm'Javafx Media class not working without any errorGetting NullPointerException while changing file using fileChooser in media-playerload images dynamically in JavaFX to AnchorpaneHow to implement a GridView style in javafxjavafx exception when get image from metadataSQLite:java.sql.SQLException: ResultSet is TYPE_FORWARD_ONLY?spring with javafx application exception when load fxml after mappingException in Application start method java.lang.reflect.InvocationTargetExceptioException On getChildren().addAll()
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;
We want to have a circle filled with a profile picture, loading the URL of the image.
We have tried loading the image with a URL on Windows, Linux, and MacOS. Turns out that the image processing works on Linux and MacOS, but doesn't work on Windows.
Circle circle = new Circle(25);
Image image = new Image("https://i.imgur.com/itElfV3.jpg");
circle.setFill(new ImagePattern(image));
We expect to have the circle with the profile picture inside it. But the result is a NullPointerException on Windows.
The error we then get is:
Exception in thread "JavaFX Application Thread" java.lang.IllegalArgumentException: Image must be non-null
at com.sun.prism.paint.ImagePattern.<init>(ImagePattern.java:44)
at com.sun.javafx.tk.quantum.QuantumToolkit.createImagePatternPaint(QuantumToolkit.java:905)
at com.sun.javafx.tk.Toolkit.getPaint(Toolkit.java:657)
at javafx.scene.paint.ImagePattern.acc_getPlatformPaint(ImagePattern.java:291)
at javafx.scene.paint.Paint$1.getPlatformPaint(Paint.java:51)
at javafx.scene.shape.Shape.updatePGShape(Shape.java:916)
at javafx.scene.shape.Shape.impl_updatePeer(Shape.java:965)
at javafx.scene.shape.Circle.impl_updatePeer(Circle.java:333)
at javafx.scene.Node.impl_syncPeer(Node.java:503)
at javafx.scene.Scene$ScenePulseListener.syncAll(Scene.java:2304)
at javafx.scene.Scene$ScenePulseListener.syncAll(Scene.java:2313)
at javafx.scene.Scene$ScenePulseListener.syncAll(Scene.java:2313)
at javafx.scene.Scene$ScenePulseListener.syncAll(Scene.java:2313)
at javafx.scene.Scene$ScenePulseListener.synchronizeSceneNodes(Scene.java:2280)
at javafx.scene.Scene$ScenePulseListener.pulse(Scene.java:2419)
at com.sun.javafx.tk.Toolkit.lambda$runPulse$29(Toolkit.java:398)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.javafx.tk.Toolkit.runPulse(Toolkit.java:397)
at com.sun.javafx.tk.Toolkit.firePulse(Toolkit.java:424)
at com.sun.javafx.tk.quantum.QuantumToolkit.pulse(QuantumToolkit.java:518)
at com.sun.javafx.tk.quantum.QuantumToolkit.pulse(QuantumToolkit.java:498)
at com.sun.javafx.tk.quantum.QuantumToolkit.pulseFromQueue(QuantumToolkit.java:491)
at com.sun.javafx.tk.quantum.QuantumToolkit.lambda$runToolkit$403(QuantumToolkit.java:319)
at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95)
at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
at com.sun.glass.ui.win.WinApplication.lambda$null$147(WinApplication.java:177)
at java.lang.Thread.run(Thread.java:748)
The code does work on Windows if we load the image locally, but since we want users to be able to upload a new URL to their own profile pictures, we would like to use a link.
java windows image javafx
add a comment |
We want to have a circle filled with a profile picture, loading the URL of the image.
We have tried loading the image with a URL on Windows, Linux, and MacOS. Turns out that the image processing works on Linux and MacOS, but doesn't work on Windows.
Circle circle = new Circle(25);
Image image = new Image("https://i.imgur.com/itElfV3.jpg");
circle.setFill(new ImagePattern(image));
We expect to have the circle with the profile picture inside it. But the result is a NullPointerException on Windows.
The error we then get is:
Exception in thread "JavaFX Application Thread" java.lang.IllegalArgumentException: Image must be non-null
at com.sun.prism.paint.ImagePattern.<init>(ImagePattern.java:44)
at com.sun.javafx.tk.quantum.QuantumToolkit.createImagePatternPaint(QuantumToolkit.java:905)
at com.sun.javafx.tk.Toolkit.getPaint(Toolkit.java:657)
at javafx.scene.paint.ImagePattern.acc_getPlatformPaint(ImagePattern.java:291)
at javafx.scene.paint.Paint$1.getPlatformPaint(Paint.java:51)
at javafx.scene.shape.Shape.updatePGShape(Shape.java:916)
at javafx.scene.shape.Shape.impl_updatePeer(Shape.java:965)
at javafx.scene.shape.Circle.impl_updatePeer(Circle.java:333)
at javafx.scene.Node.impl_syncPeer(Node.java:503)
at javafx.scene.Scene$ScenePulseListener.syncAll(Scene.java:2304)
at javafx.scene.Scene$ScenePulseListener.syncAll(Scene.java:2313)
at javafx.scene.Scene$ScenePulseListener.syncAll(Scene.java:2313)
at javafx.scene.Scene$ScenePulseListener.syncAll(Scene.java:2313)
at javafx.scene.Scene$ScenePulseListener.synchronizeSceneNodes(Scene.java:2280)
at javafx.scene.Scene$ScenePulseListener.pulse(Scene.java:2419)
at com.sun.javafx.tk.Toolkit.lambda$runPulse$29(Toolkit.java:398)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.javafx.tk.Toolkit.runPulse(Toolkit.java:397)
at com.sun.javafx.tk.Toolkit.firePulse(Toolkit.java:424)
at com.sun.javafx.tk.quantum.QuantumToolkit.pulse(QuantumToolkit.java:518)
at com.sun.javafx.tk.quantum.QuantumToolkit.pulse(QuantumToolkit.java:498)
at com.sun.javafx.tk.quantum.QuantumToolkit.pulseFromQueue(QuantumToolkit.java:491)
at com.sun.javafx.tk.quantum.QuantumToolkit.lambda$runToolkit$403(QuantumToolkit.java:319)
at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95)
at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
at com.sun.glass.ui.win.WinApplication.lambda$null$147(WinApplication.java:177)
at java.lang.Thread.run(Thread.java:748)
The code does work on Windows if we load the image locally, but since we want users to be able to upload a new URL to their own profile pictures, we would like to use a link.
java windows image javafx
Possible duplicate of How to disable or bypass Hardware Graphics Acceleration(Prism) in JavaFX.
– trashgod
Mar 25 at 9:41
Works fine on Windows 7. It is pretty peculiar because if image was null from very beginning the NullPointerException should be thrown from javafx.scene.paint.ImagePattern(Image image), instead it is thrown from com.sun.prism.paint.ImagePattern(Image image, float x, float y, float width, float height, boolean proportional, boolean isMutable). My advice is to debug the image through the stack calls and find the place where it becomes null.
– Przemek Krysztofiak
Mar 25 at 9:43
add a comment |
We want to have a circle filled with a profile picture, loading the URL of the image.
We have tried loading the image with a URL on Windows, Linux, and MacOS. Turns out that the image processing works on Linux and MacOS, but doesn't work on Windows.
Circle circle = new Circle(25);
Image image = new Image("https://i.imgur.com/itElfV3.jpg");
circle.setFill(new ImagePattern(image));
We expect to have the circle with the profile picture inside it. But the result is a NullPointerException on Windows.
The error we then get is:
Exception in thread "JavaFX Application Thread" java.lang.IllegalArgumentException: Image must be non-null
at com.sun.prism.paint.ImagePattern.<init>(ImagePattern.java:44)
at com.sun.javafx.tk.quantum.QuantumToolkit.createImagePatternPaint(QuantumToolkit.java:905)
at com.sun.javafx.tk.Toolkit.getPaint(Toolkit.java:657)
at javafx.scene.paint.ImagePattern.acc_getPlatformPaint(ImagePattern.java:291)
at javafx.scene.paint.Paint$1.getPlatformPaint(Paint.java:51)
at javafx.scene.shape.Shape.updatePGShape(Shape.java:916)
at javafx.scene.shape.Shape.impl_updatePeer(Shape.java:965)
at javafx.scene.shape.Circle.impl_updatePeer(Circle.java:333)
at javafx.scene.Node.impl_syncPeer(Node.java:503)
at javafx.scene.Scene$ScenePulseListener.syncAll(Scene.java:2304)
at javafx.scene.Scene$ScenePulseListener.syncAll(Scene.java:2313)
at javafx.scene.Scene$ScenePulseListener.syncAll(Scene.java:2313)
at javafx.scene.Scene$ScenePulseListener.syncAll(Scene.java:2313)
at javafx.scene.Scene$ScenePulseListener.synchronizeSceneNodes(Scene.java:2280)
at javafx.scene.Scene$ScenePulseListener.pulse(Scene.java:2419)
at com.sun.javafx.tk.Toolkit.lambda$runPulse$29(Toolkit.java:398)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.javafx.tk.Toolkit.runPulse(Toolkit.java:397)
at com.sun.javafx.tk.Toolkit.firePulse(Toolkit.java:424)
at com.sun.javafx.tk.quantum.QuantumToolkit.pulse(QuantumToolkit.java:518)
at com.sun.javafx.tk.quantum.QuantumToolkit.pulse(QuantumToolkit.java:498)
at com.sun.javafx.tk.quantum.QuantumToolkit.pulseFromQueue(QuantumToolkit.java:491)
at com.sun.javafx.tk.quantum.QuantumToolkit.lambda$runToolkit$403(QuantumToolkit.java:319)
at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95)
at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
at com.sun.glass.ui.win.WinApplication.lambda$null$147(WinApplication.java:177)
at java.lang.Thread.run(Thread.java:748)
The code does work on Windows if we load the image locally, but since we want users to be able to upload a new URL to their own profile pictures, we would like to use a link.
java windows image javafx
We want to have a circle filled with a profile picture, loading the URL of the image.
We have tried loading the image with a URL on Windows, Linux, and MacOS. Turns out that the image processing works on Linux and MacOS, but doesn't work on Windows.
Circle circle = new Circle(25);
Image image = new Image("https://i.imgur.com/itElfV3.jpg");
circle.setFill(new ImagePattern(image));
We expect to have the circle with the profile picture inside it. But the result is a NullPointerException on Windows.
The error we then get is:
Exception in thread "JavaFX Application Thread" java.lang.IllegalArgumentException: Image must be non-null
at com.sun.prism.paint.ImagePattern.<init>(ImagePattern.java:44)
at com.sun.javafx.tk.quantum.QuantumToolkit.createImagePatternPaint(QuantumToolkit.java:905)
at com.sun.javafx.tk.Toolkit.getPaint(Toolkit.java:657)
at javafx.scene.paint.ImagePattern.acc_getPlatformPaint(ImagePattern.java:291)
at javafx.scene.paint.Paint$1.getPlatformPaint(Paint.java:51)
at javafx.scene.shape.Shape.updatePGShape(Shape.java:916)
at javafx.scene.shape.Shape.impl_updatePeer(Shape.java:965)
at javafx.scene.shape.Circle.impl_updatePeer(Circle.java:333)
at javafx.scene.Node.impl_syncPeer(Node.java:503)
at javafx.scene.Scene$ScenePulseListener.syncAll(Scene.java:2304)
at javafx.scene.Scene$ScenePulseListener.syncAll(Scene.java:2313)
at javafx.scene.Scene$ScenePulseListener.syncAll(Scene.java:2313)
at javafx.scene.Scene$ScenePulseListener.syncAll(Scene.java:2313)
at javafx.scene.Scene$ScenePulseListener.synchronizeSceneNodes(Scene.java:2280)
at javafx.scene.Scene$ScenePulseListener.pulse(Scene.java:2419)
at com.sun.javafx.tk.Toolkit.lambda$runPulse$29(Toolkit.java:398)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.javafx.tk.Toolkit.runPulse(Toolkit.java:397)
at com.sun.javafx.tk.Toolkit.firePulse(Toolkit.java:424)
at com.sun.javafx.tk.quantum.QuantumToolkit.pulse(QuantumToolkit.java:518)
at com.sun.javafx.tk.quantum.QuantumToolkit.pulse(QuantumToolkit.java:498)
at com.sun.javafx.tk.quantum.QuantumToolkit.pulseFromQueue(QuantumToolkit.java:491)
at com.sun.javafx.tk.quantum.QuantumToolkit.lambda$runToolkit$403(QuantumToolkit.java:319)
at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95)
at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
at com.sun.glass.ui.win.WinApplication.lambda$null$147(WinApplication.java:177)
at java.lang.Thread.run(Thread.java:748)
The code does work on Windows if we load the image locally, but since we want users to be able to upload a new URL to their own profile pictures, we would like to use a link.
java windows image javafx
java windows image javafx
edited Mar 25 at 9:17
Ali Azim
13313
13313
asked Mar 25 at 8:47
Merdan DurmusMerdan Durmus
132
132
Possible duplicate of How to disable or bypass Hardware Graphics Acceleration(Prism) in JavaFX.
– trashgod
Mar 25 at 9:41
Works fine on Windows 7. It is pretty peculiar because if image was null from very beginning the NullPointerException should be thrown from javafx.scene.paint.ImagePattern(Image image), instead it is thrown from com.sun.prism.paint.ImagePattern(Image image, float x, float y, float width, float height, boolean proportional, boolean isMutable). My advice is to debug the image through the stack calls and find the place where it becomes null.
– Przemek Krysztofiak
Mar 25 at 9:43
add a comment |
Possible duplicate of How to disable or bypass Hardware Graphics Acceleration(Prism) in JavaFX.
– trashgod
Mar 25 at 9:41
Works fine on Windows 7. It is pretty peculiar because if image was null from very beginning the NullPointerException should be thrown from javafx.scene.paint.ImagePattern(Image image), instead it is thrown from com.sun.prism.paint.ImagePattern(Image image, float x, float y, float width, float height, boolean proportional, boolean isMutable). My advice is to debug the image through the stack calls and find the place where it becomes null.
– Przemek Krysztofiak
Mar 25 at 9:43
Possible duplicate of How to disable or bypass Hardware Graphics Acceleration(Prism) in JavaFX.
– trashgod
Mar 25 at 9:41
Possible duplicate of How to disable or bypass Hardware Graphics Acceleration(Prism) in JavaFX.
– trashgod
Mar 25 at 9:41
Works fine on Windows 7. It is pretty peculiar because if image was null from very beginning the NullPointerException should be thrown from javafx.scene.paint.ImagePattern(Image image), instead it is thrown from com.sun.prism.paint.ImagePattern(Image image, float x, float y, float width, float height, boolean proportional, boolean isMutable). My advice is to debug the image through the stack calls and find the place where it becomes null.
– Przemek Krysztofiak
Mar 25 at 9:43
Works fine on Windows 7. It is pretty peculiar because if image was null from very beginning the NullPointerException should be thrown from javafx.scene.paint.ImagePattern(Image image), instead it is thrown from com.sun.prism.paint.ImagePattern(Image image, float x, float y, float width, float height, boolean proportional, boolean isMutable). My advice is to debug the image through the stack calls and find the place where it becomes null.
– Przemek Krysztofiak
Mar 25 at 9:43
add a comment |
1 Answer
1
active
oldest
votes
Your code should be work, but i don't know why not work, instead you can use InputStream
to get the image from URL, here the example
Image image = null;
try
URL url = new URL("https://i.imgur.com/itElfV3.jpg");
URLConnection connection = url.openConnection();
InputStream inputStream = connection.getInputStream();
image = new Image(inputStream);
catch (IOException e)
e.printStackTrace();
Circle circle = new Circle(25);
circle.setFill(new ImagePattern(image));
There's a shorthand for getting anInputStream
for anURL
this way:InputStream inputStream = url.openStream();
– fabian
Mar 25 at 12:20
Oke thank you :)
– NM Naufaldo
Mar 25 at 15:04
add a comment |
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55334045%2floading-picture-into-circles-javafx-with-url-gives-error-on-windows%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Your code should be work, but i don't know why not work, instead you can use InputStream
to get the image from URL, here the example
Image image = null;
try
URL url = new URL("https://i.imgur.com/itElfV3.jpg");
URLConnection connection = url.openConnection();
InputStream inputStream = connection.getInputStream();
image = new Image(inputStream);
catch (IOException e)
e.printStackTrace();
Circle circle = new Circle(25);
circle.setFill(new ImagePattern(image));
There's a shorthand for getting anInputStream
for anURL
this way:InputStream inputStream = url.openStream();
– fabian
Mar 25 at 12:20
Oke thank you :)
– NM Naufaldo
Mar 25 at 15:04
add a comment |
Your code should be work, but i don't know why not work, instead you can use InputStream
to get the image from URL, here the example
Image image = null;
try
URL url = new URL("https://i.imgur.com/itElfV3.jpg");
URLConnection connection = url.openConnection();
InputStream inputStream = connection.getInputStream();
image = new Image(inputStream);
catch (IOException e)
e.printStackTrace();
Circle circle = new Circle(25);
circle.setFill(new ImagePattern(image));
There's a shorthand for getting anInputStream
for anURL
this way:InputStream inputStream = url.openStream();
– fabian
Mar 25 at 12:20
Oke thank you :)
– NM Naufaldo
Mar 25 at 15:04
add a comment |
Your code should be work, but i don't know why not work, instead you can use InputStream
to get the image from URL, here the example
Image image = null;
try
URL url = new URL("https://i.imgur.com/itElfV3.jpg");
URLConnection connection = url.openConnection();
InputStream inputStream = connection.getInputStream();
image = new Image(inputStream);
catch (IOException e)
e.printStackTrace();
Circle circle = new Circle(25);
circle.setFill(new ImagePattern(image));
Your code should be work, but i don't know why not work, instead you can use InputStream
to get the image from URL, here the example
Image image = null;
try
URL url = new URL("https://i.imgur.com/itElfV3.jpg");
URLConnection connection = url.openConnection();
InputStream inputStream = connection.getInputStream();
image = new Image(inputStream);
catch (IOException e)
e.printStackTrace();
Circle circle = new Circle(25);
circle.setFill(new ImagePattern(image));
answered Mar 25 at 9:14
NM NaufaldoNM Naufaldo
8612
8612
There's a shorthand for getting anInputStream
for anURL
this way:InputStream inputStream = url.openStream();
– fabian
Mar 25 at 12:20
Oke thank you :)
– NM Naufaldo
Mar 25 at 15:04
add a comment |
There's a shorthand for getting anInputStream
for anURL
this way:InputStream inputStream = url.openStream();
– fabian
Mar 25 at 12:20
Oke thank you :)
– NM Naufaldo
Mar 25 at 15:04
There's a shorthand for getting an
InputStream
for an URL
this way: InputStream inputStream = url.openStream();
– fabian
Mar 25 at 12:20
There's a shorthand for getting an
InputStream
for an URL
this way: InputStream inputStream = url.openStream();
– fabian
Mar 25 at 12:20
Oke thank you :)
– NM Naufaldo
Mar 25 at 15:04
Oke thank you :)
– NM Naufaldo
Mar 25 at 15:04
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55334045%2floading-picture-into-circles-javafx-with-url-gives-error-on-windows%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Possible duplicate of How to disable or bypass Hardware Graphics Acceleration(Prism) in JavaFX.
– trashgod
Mar 25 at 9:41
Works fine on Windows 7. It is pretty peculiar because if image was null from very beginning the NullPointerException should be thrown from javafx.scene.paint.ImagePattern(Image image), instead it is thrown from com.sun.prism.paint.ImagePattern(Image image, float x, float y, float width, float height, boolean proportional, boolean isMutable). My advice is to debug the image through the stack calls and find the place where it becomes null.
– Przemek Krysztofiak
Mar 25 at 9:43