JavaFX 12.0.1 - Image ???
AmnoJeeuw
amnojeeuw at gmail.com
Sun Jul 7 10:26:37 UTC 2019
Windows 8.1 - 64Bit
Java --version
Openjdk 12.0.1 2019-04-06
OpenJDK Runtime Environment (build 12.0.1+12)
OpenJDK 64-Bit Server VM (build 12.0.1+12, mixed mode, sharing)
OpenJFX = javafx-sdk-12.0.1
====================
Is this a bug?
Is anyone else experiencing the same issue?
Or is it just me who is not smart enough?
<code>
public void start(Stage primaryStage) throws Exception {
MainWindow = primaryStage;
// DataIntegrityVerification is a wrapper of StringBuffer
var IconLoc = new
DataIntegrityVerification(C:\\ArbolOne\\image\\icons\\Icon16x16.png);
// Prints "false"
var myIconFile = new File(IconLoc.toString());
System.out.println("False = Exist : "+String.valueOf(myIconFile.exists()));
// both of these string work
var appIcon = new Image( myIconFile.toURI().toString() );
// Displays the right folder name - complete path
System.out.println("Image URL is " + this.appIcon.getUrl());
MainWindow.getIcons().add(appIcon);
</code>
No errors, but the icon does not display on the top-left corner of the
window.
---
This email has been checked for viruses by AVG.
https://www.avg.com
More information about the openjfx-dev
mailing list