java - Set application icon for FileChooser in javaFX -
after start filechooser window in javafx application in windows application icon in taskbar shows java icon , not icon of main window. there possibility select application icon filechooser instance?
thanks answeres!
it possible so, apparently when have visible parent stage.
provided stage
in following example visible, can this:
stage.geticons().add(new image("http://i.imgur.com/1m3uazy.png")); filechooser filechooser = new filechooser(); file result = filechooser.showsavedialog(stage);
this opens file chooser child of given stage, has given icon.
i stepped through javafx source code debugger (oracle java 8u72 on windows x64), , there not single point in java code icon set. parent window handle passed native method, icon gets resolved somewhere in win32 windowing code.
Comments
Post a Comment