Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

JavaFX GUI showing blank screen

3552893Sep 24 2017 — edited Mar 10 2018

I have an odd problem.  Suddenly, for no reason, my GUI programs are not showing any content in the frame when I run them.  But they were at one point.  I started creating Swing and JavaFX GUIs using Oracle's tutorials using both Eclipse and Netbeans.  They worked fine. Then they didn't work in either IDE, not even the simple Hello World JavaFX that I copied and pasted.  They do work on my work computer, so I know I'm not coding them wrong. But on my home computer, I only get a blank screen. I can resize the frame and set its title. For the HelloWorld project, although I don't see anything in the frame, I can click on where I know the button will be even though I don't see it, and Hello World is printed into the console. So maybe this is some sort of setting on my computer, but I have no idea what it may be. I'm running Windows 10.

I'm fairly new to programming, so I don't know if this helps, but here is part of what is written when I run it Hello World in NetBeans, which may or may not indicate what is happening.

Warning: From JDK7u25 the Codebase manifest attribute should be used to restrict JAR repurposing.

         Please set manifest.custom.codebase property to override the current default non-secure value '*'.

Launching <fx:deploy> task from C:\Program Files\Java\jdk1.8.0_102\jre\..\lib\ant-javafx.jar

No base JDK. Package will use system JRE.

No base JDK. Package will use system JRE.

Any ideas? I've been trying to figure this out for days.

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 7 2018
Added on Sep 24 2017
3 comments
7,979 views