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!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

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

Jim Smith
It is possible the breakpoints aren't on code lines - sometimes the apparent line numbers are wrong. Try bracketting a line with breakpoints on either side.
311747
Following your suggestion, I put break point on 6 lines following the DBMS_DEBUG_JDWP.CONNECT_TCP call.
3 of those lines are code lines. I also have 2 break points on code lines in a procedure being called at one of those 6 lines.

I have no problem hitting those stops if I 'Run as Debug'... but they are ignored when doing the remote debug.
In the remote debug session I do see all the break points lists in the Breakpoints tab. I'm very confused.....
An experiment -

Tools > Preferences > Debugger

Start Debugging Option:
- Step Over


Try this. This allows you to start a debug session sans breakpoints. You can then step over or into your code once the debugger session 'attaches.' I believe this will work for remote...
311747
Good suggestion, but I already had that debugger property set.

I got it working! What I didn't realize was that you need to be logged into the database with the same credentials in both the local and remote session. I was trying to debug as the package owner and executing the procedure using our 'web' runtime user id.......

I learned that the break points are userid specific.

Thanks for all your great suggestions!
1 - 4
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,508 views