Scene - bug ???

AmnoJeeuw amnojeeuw at gmail.com
Fri Jul 5 15:45:23 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

<code>

public void start(Stage primaryStage) throws Exception {

MainWindow = primaryStage;

// DataIntegrityVerification is a wrapper of StringBuffer
// chispa.GlobalSettings.acquireIconListDirectoryName() returns a 
directory name - String
var IconLoc = new 
DataIntegrityVerification(chispa.GlobalSettings.acquireIconListDirectoryName());

// The file name
IconLoc.append("Icon16x16.png");

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()*/"file://"+IconLoc.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.

Is this a bug?
Is anyone else experiencing the same issue?
Or is it just me who is not smart enough?


---
This email has been checked for viruses by AVG.
https://www.avg.com



More information about the discuss mailing list