Scene Builder window (and JavaFX app) not displaying properly - javafx

I recently built a JavaFX app using Eclipse on Ubuntu 14.04. It works fine. However when I run the app on Windows, the app window doesn't render properly (only the border and title of the window appear, and the inside is a copy of the background). I thought that it may be the fxml so I opened the project in Windows in Eclipse and downloaded Scene Builder 8.0.0 64bit to open the fxml. But when trying to install Scene Builder the same thing happens as with the app. The window does not render properly, the inside is just a copy of the background, and only the title and borders are visible. What's going on?
UPDATE: When I run the executable jar rather than the .exe installer,I get the following output: WARNING: Could not open/create prefs root node Software\JavaSoft\Prefs at root 0
x80000002. Windows RegCreateKeyEx(...) returned error code 5.
The same problem happens: the window doesn't render properly.

Related

How to debug an iframe/webview in electron framework

I have webview/iFrame inside electron framework. I want to debug the code inside the iFrame.
I launch electron app with debugger windowas shown in the picture.
I want to debug the content that gets loaded.
In your renderer script, get the webview and open its devtools. You're opening the devtools of the renderer that contains the webview.
document.querySelector("webview").openDevTools();
Source

JavaFX Application Name does not show up in Task Manager or Dock

I created a JavaFX app and have set window titles. The stage itself has a title, however when I hover over the icon in the dock or view task-manager while running the app I get the package name for the class.
Example:
How do I show stage title when I hover over the icon instead of showing the package name (authentication.EmployeeLogin in this case)?
The application was deployed for windows using Launch4J.
Although you have set the titles for your windows within your Java code, you need to do the same for the executable itself when deploying your application.
Check your Launch4J parameters when building your native executable.

Messed Up Layout in Deployed Qt Application on Windows 10

When I launch my deployed application from the .exe file the layout is messed up. When I launch the app from Qt Creator, the layout is fine.
Here are the details about how I deployed my app. I am using Qt 5.5 and MinGW 32 bit 4.9.2. I am running Windows 10.
First in Qt Creator I built for release.
Next, I opened the Qt 5.5 for Desktop (MinGW 4.9.2 32 bit) console.
I navigated to my project folder and ran
windeployqt.exe --release ./APPNAME.exe
It copied all the necessary .dll and created some folders as expected.
Now when I run the app, it seems to work just fine. But the layouts are all wrong. Again, when launching the app from Qt Creator it looks great! Proper spacing and sizing of my widgets. When I launch the .exe every thing is smooshed, the ratios of my sliders are all wrong, and some text is hidden because of crowding.
What could cause this bad layout? Am I missing some dependency somehow?
I figured out my own question. The issue was not my build or my layout but that many sizePolicy parameters don't seem to take effect when launching the app from QtCreator. Not 100% sure on the explanation but I think that when launching the .exe the OS is managing interpreting some of those size policy parameters and it does it differently (perhaps more strictly it appears) than QtCreator does. (To be clear I'm not talking about how the app looks in the Design tab. I'm actually talking about launching the app from within QtCreator)
So to fix the appearance of the app I have to play around with the size policies and parameters, build, and then launch the app from the executable.

javafx jar builds fine but doesn't open

So i created a javafx project, it has 3 packages, application, controller, and an images package that holds all the images im using. The program runs fine if i just compile and run, no errors. However, when i create a jar from it, by selecting the build.fxbuild, everything goes smoothly and it tells me it is successful but when i try to double click the jar file nothing opens but java starts running in the background until i force close it. Im running OSX yosemite, and im on java 1.8 if that helps at all. I've tried making the jar through the export option but it doesnt run either and just says that it cant open the file. The weird thing is i made another javafx project just to see if it would work, same settings but just something simple, a window that pops up and says a line, then exported to a jar by clicking build.fxbuild and when i double click the jar it made it works perfectly.
I'm at a loss for what is preventing my other javafx project from working as a jar file and the other similar posts ive found on here haven't solved it either. Any ideas?

Netbeans Platform Installer and JOGL

I'm trying to build an application that uses both Netbeans Platform and JOGL. So far, it runs fine from within Netbeans, but once I try to create an application that can run externally, I get some problems. The application will start (judging from the splash screen), but a window never displays, and I never get an error message. As soon as I remove the JOGL module (leaving only straight Swing code), everything works fine.
Project Setup:
1 Library Module for JOGL, including the dll's (for Windows 7 64 bit only), in the library/modules/lib folder
1 Module for a window displaying a GLJPanel, rendering a simple image with an animator
1 Module with a simple form in Swing
Has anybody seen this before?
Edit: apparently the trick in this case (using native libs when building Netbeans Platform executables) is placing the native libs in the project's root folder.
If this were not about netbean platform executables, a more generic comment is to make sure the native libs (dlls) are picked up correctly. Try adding the
-Djava.library.path=/path/to/libs option when you run it.

Resources