[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openjdk-openjfx-dev
Subject:    JavaFX 12.0.1 - Image ???
From:       AmnoJeeuw <amnojeeuw () gmail ! com>
Date:       2019-07-07 10:26:37
Message-ID: 32d8ff2a-9a82-b0cd-5a98-a73dd4f5544b () gmail ! com
[Download RAW message or body]

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

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic