Skip to content

Tag: java

Codename One images not loading

The image(s) is in the “src” folder. Everything was working fine, until this morning I keep getting a black screen when I run the simulator with “java.lang.IllegalArgumentException: stream == null!” Answer You can’t let the exception bubble since the method is a callback and this…

Created .exe from jpackager crashes

I have a JavaFX Project, which I want to export as a dmg and exe. The export as a dmg file for Mac was no problem. But the export as a .exe file for Windows is not working. I created a jar file and I ran jlink. Then I exported the project with jpackage. Here is the command: On my

Array to ComboBox – JavaFx

I am working on a school project, I am trying to bring an a String array straight into a combo box and am getting an error. Error: java: incompatible types: java.lang.String[] cannot be converted to javafx.collections.ObservableList<java.lang.String> Answer That ComBoBox constructor needs an ObservableL…

Spring Boot Test Cannot find Properties No Matter What

I have a simple bean I have a properties file in src/test/resources called application-test.yml which has one property propItem: true If I run my test below – I expect it to pass, but it fails because propItem is always false Why is this a problem? I thought Spring does all these automatically, but seem…

Trying to download image from tumblr using java selenium

I’m trying to download images form tumblr using java selenium. I extracted the url of the image from src and tried to download images from url. But the images saved not what I expected. Those are in unsupported formats and smaller in size. How can I correct this? Please help. This is my code: Answer I d…