JavaFX Window Icon
Hi
I saw in the release notes of JavaFX 1.0 (http://java.sun.com/javafx/1/reference/releasenotes/javafx-sdk-release-notes.html) that setting icons for the Stage class does not work.
In my application which uses JavaFX 1.1 I also encountered this problem. Is this feature supposed to work in later versions of JavaFX or is it still a bug?
Here's the snippet of the code that I used to set the icon:
icons: [
Image { url: "{__DIR__}my-logo-16.gif" }
]
I also tried with png file with the same result ...
no icon changed in maximized, normal and minimized states.
and to make sure I didn't miss the image location, or the format is readable by JavaFx,
I add the same image to the Scene
import javafx.scene.image.Image;
import javafx.scene.image.ImageView;
import javafx.scene.layout.HBox;
import javafx.scene.Scene;
import javafx.scene.text.Font;
import javafx.scene.text.Text;
import javafx.stage.Stage;
* @author athanazio
Stage {
title: "Application title"
width: 300
height: 80
icons: [
Image { url: "{__DIR__}icon.png"
scene: Scene {
content: HBox{
content: [
ImageView {
image: Image {
url: "{__DIR__}icon.png"
Text {
font: Font {
size: 16
x: 10,
y: 30
content: "Application content"
}
Similar Messages
-
Custom native window icons and Jump List api for Windows?
Hi,
can I add custom window icons for a Stage?
Skype did it for its "compact mode":
http://cloud.addictivetips.com/wp-content/uploads/2011/08/Compact-View.jpg
(there's a fourth icon in the title bar)
And can I modify the task bar entries (Jump List)? I am talking about this:
http://i51.tinypic.com/jauwqr.jpg
http://cache.gawkerassets.com/assets/images/17/2012/01/medium_9122b374825de2a368e7560b83cc352d.jpgcan I add custom window icons for a Stage?Not in a Stage with StageStyle.DECORATED http://docs.oracle.com/javafx/2.0/api/javafx/stage/StageStyle.html#DECORATED
Use StageStyle.UNDECORATED or StageStyle.TRANSPARENT
The JavaFX Sample application demonstrates custom icons in an UNDECORATED window when you run it as a standard application rather than as an applet. You download it's source from the same page you downloaded JavaFX from.
There is a Jira request which would assist in creating Windows which look a bit more like the Skype Window http://javafx-jira.kenai.com/browse/RT-20020 "support Aero Glass effects for top-level windows" - my guess is that this just refers to the Glass background and not the icons embedded in the titlebar, though a combination of the Glass Background and StageStyle.UNDECORATED would allow you to create your own icons which look similar to the standard Windows Aero ones and create an look almost exactly like the Skype one.
For further integrations like the JumpList, JavaFX does not support that out of the box today.
You can create a feature request in jira if you want.
There are third party libraries which provide this support for Java - and they should work with JavaFX as JavaFX is just Java.
Here is a link to a third party library to create a Windows 7 JumpList: http://www.strixcode.com/j7goodies/ -
Ok, details of installation below, so when I try compose an email, I just get a compose window icon stuck in the windows
taskbar can't actually enlarge it and use it. If I restart in safe mode with all addons disabled, then it works fine. But
If I restart normally and manually disable addons/plugins, then close and start normally again i.e not safe mode, it
breaks, so does not seem to be an addon or plugin but rather something with the configuration.
Application Basics
Name Thunderbird
Version 31.6.0
User Agent Mozilla/5.0 (Windows NT 6.1; rv:31.0) Gecko/20100101 Thunderbird/31.6.0
Profile Folder
Show Folder
(Local drive)
Application Build ID 20150330093429
Enabled Plugins about:plugins
Build Configuration about:buildconfig
Memory Use about:memory
Mail and News Accounts
ID Incoming server Outgoing servers
Name Connection security Authentication method Name Connection security Authentication method Default?
account2 (none) Local Folders plain passwordCleartext
account3 (nntp) news.mozilla.org:119 plain passwordCleartext stbeehive.oracle.com:465 SSL passwordCleartext true
account5 (imap) stbeehive.oracle.com:993 SSL passwordCleartext stbeehive.oracle.com:465 SSL passwordCleartext true
Crash Reports
Report ID Submitted
bp-0a8986d2-ff0c-41c3-9da6-e770e2141224 24/12/2014
bp-01f44ba7-3143-4452-ac98-981b62140123 23/01/2014
Extensions
Name Version Enabled ID
British English Dictionary 1.19.1 false [email protected]
Lightning 3.3.3 false {e2fda1a4-762b-4020-b5ad-a41df1933103}
Oracle Beehive Extensions for Thunderbird (OracleInternal) 1.0.0.5 false [email protected]
Important Modified Preferences
Name Value
accessibility.typeaheadfind.flashBar 0
browser.cache.disk.capacity 358400
browser.cache.disk.smart_size_cached_value 358400
browser.cache.disk.smart_size.first_run false
browser.cache.disk.smart_size.use_old_max false
extensions.lastAppVersion 31.6.0
font.internaluseonly.changed false
font.name.monospace.el Consolas
font.name.monospace.tr Consolas
font.name.monospace.x-baltic Consolas
font.name.monospace.x-central-euro Consolas
font.name.monospace.x-cyrillic Consolas
font.name.monospace.x-unicode Consolas
font.name.monospace.x-western Consolas
font.name.sans-serif.el Calibri
font.name.sans-serif.tr Calibri
font.name.sans-serif.x-baltic Calibri
font.name.sans-serif.x-central-euro Calibri
font.name.sans-serif.x-cyrillic Calibri
font.name.sans-serif.x-unicode Calibri
font.name.sans-serif.x-western Calibri
font.name.serif.el Cambria
font.name.serif.tr Cambria
font.name.serif.x-baltic Cambria
font.name.serif.x-central-euro Cambria
font.name.serif.x-cyrillic Cambria
font.name.serif.x-unicode Cambria
font.name.serif.x-western Cambria
font.size.fixed.el 14
font.size.fixed.tr 14
font.size.fixed.x-baltic 14
font.size.fixed.x-central-euro 14
font.size.fixed.x-cyrillic 14
font.size.fixed.x-unicode 14
font.size.fixed.x-western 14
font.size.variable.el 17
font.size.variable.tr 17
font.size.variable.x-baltic 17
font.size.variable.x-central-euro 17
font.size.variable.x-cyrillic 17
font.size.variable.x-unicode 17
font.size.variable.x-western 17
gfx.blacklist.suggested-driver-version 257.21
mail.openMessageBehavior.version 1
mail.winsearch.firstRunDone true
mailnews.database.global.datastore.id 8d997817-eec1-4f16-aa36-008d5baeb30
mailnews.database.global.indexer.enabled false
network.cookie.prefsMigrated true
network.tcp.sendbuffer 65536
places.database.lastMaintenance 1429004341
places.history.expiration.transient_current_max_pages 78789
plugin.disable_full_page_plugin_for_types application/pdf
plugin.importedState true
plugin.state.flash 0
plugin.state.java 0
plugin.state.np32dsw 0
plugin.state.npatgpc 0
plugin.state.npctrl 0
plugin.state.npdeployjava 0
plugin.state.npfoxitreaderplugin 0
plugin.state.npgeplugin 0
plugin.state.npgoogleupdate 0
plugin.state.npitunes 0
plugin.state.npoff 0
plugin.state.npqtplugin 0
plugin.state.nprlsecurepluginlayer 0
plugin.state.npunity3d 0
plugin.state.npwatweb 0
plugin.state.npwlpg 0
plugins.update.notifyUser true
Graphics
Adapter Description NVIDIA Quadro FX 580
Vendor ID 0x10de
Device ID 0x0659
Adapter RAM 512
Adapter Drivers nvd3dum nvwgf2um,nvwgf2um
Driver Version 8.15.11.9038
Driver Date 7-14-2009
Direct2D Enabled Blocked for your graphics driver version. Try updating your graphics driver to version 257.21 or newer.
DirectWrite Enabled false (6.2.9200.16571)
ClearType Parameters Gamma: 2200 Pixel Structure: R
WebGL Renderer Blocked for your graphics driver version. Try updating your graphics driver to version 257.21 or newer.
GPU Accelerated Windows 0. Blocked for your graphics driver version. Try updating your graphics driver to version 257.21 or newer.
AzureCanvasBackend skia
AzureSkiaAccelerated 0
AzureFallbackCanvasBackend cairo
AzureContentBackend cairo
JavaScript
Incremental GC 1
Accessibility
Activated 0
Prevent Accessibility 0
Library Versions
Expected minimum version Version in use
NSPR 4.10.6 4.10.6
NSS 3.16.2.3 Basic ECC 3.16.2.3 Basic ECC
NSS Util 3.16.2.3 3.16.2.3
NSS SSL 3.16.2.3 Basic ECC 3.16.2.3 Basic ECC
NSS S/MIME 3.16.2.3 Basic ECC 3.16.2.3 Basic ECCNoticed this in the info supplied:
Graphics Adapter Description NVIDIA Quadro FX 580
Vendor ID 0x10de
Device ID 0x0659
Adapter RAM 512
Adapter Drivers nvd3dum nvwgf2um,nvwgf2um
Driver Version 8.15.11.9038
Driver Date 7-14-2009
Direct2D Enabled Blocked for your graphics driver version.
Try updating your graphics driver to version 257.21 or newer.
Could you update your graphics driver and retest. -
Greetings all,
Can anyone please advise how to remove the Administrator / Super User menu that appears when you right click the Windows Icon (old start button) in Server 2012 R2 - for RDS users. I have searched and been able to disable access to each of these menu items (Control
Panel, Event Viewer, Run, etc). But I am searching for a way to completely remove the menu. This menu also appears when you use Win-X shortcut.
Hope someone can help.
TerryHi Terry,
You can try following points, might helpful in your case. Go to
C:\Users\Default\AppData\Local\Microsoft\Windows
there you will see file called WinX
Right click this file and copy then go to
C:\Users\YOUR_USERNAME\AppData\Local\Microsoft\Windows
then paste the file into the folder.
NOTE: replace YOUR_USERNAME with your actual username.
Hope it helps!
Thanks.
Dharmesh Solanki
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected] -
iPad running iOS 5 has on the menu bar only have 4 icons, being: back, forward, bookmarks, and the "add to bookmarks", but is missing an icon after the "add to bookmarks" arrow, that is a "show all open browser windows" icon. How do I get it in my safari?
What you are seeing is how Safari works now in iOS 5. There is no way to get that icon in Safari now. There other much better browsers available in the App Store. Look at iCab Mobile, Mercury, Atomic, ....
I have been running iOS 5x for so long now, that I don't even remember if that icon did appear in earlier iOS versions -
After i install window 8.1, i can't see window icon in my start up disk, i see only mac icon 10.10, but i can see both mac and win icon in my window boot camp control. i want to see window icon in my mac Yosemite 10.10.2,system preference, start up disk.
Third-party NTFS software interferes with the Apple NTFS drivers, which control whether you can see the Bootcamp partition in the Startup Disk option. As a test, can you uninstall all third-party NTFS software and check System Preferences -> Startup Disk?
-
Multiple windows icon in safari is suddenly gone, what happened?
I have an IPad 2 and I just noticed that when I launch safari I use to have a multiple windows icon on upper left side (two little boxes), which allowed me to open multiple windows. Not it's gone, only book mark Icon and last page icon there. Any ideas?
Safari on iOS 5 on the iPad uses tabbed browsing - use the '+' on the right-hand end of the tab bar to open a new tab. Thumbnail/paged browsing no longer exists
-
How to export a symbol as a windows icon?
Is there an easy way to export a LabVIEW symbol as an icon? When putting a VI on the desktop, it would be nice if it had the same symbol as within LabVIEW. Instead, all VIs appear on the desktop with a standard icon. In the past, I copied the symbols to a painting programm, saved it, and converted it by means of shareware programs to a windows icon. My hope is that new LabVIEW versions provide this functionality. Unfortunately, I could not yet find this feature.
Mat,
Similar to a TXT or DOC file, the icon associated with a VI file is linked at the Windows system level. Therefore, there may be some hack that allows you to change the icon for all VIs but not each VI individually.
A colleague suggested a method that might work for you. You can save the VIs in a directory somewhere else and make a shortcut to them on the Desktop. You can then change the icon of these shortcuts.
I hope that works.
Thanks,
Stephen Meserve
National Instruments -
Open a pdf or a doc with close window icon
I am opening pdf or doc file in the url which opens up in the browser window. To make it user friendly, we want to put close window icon or button in the browser window.
Note: we are not in favor of using frames as we not using in any pages.
Thanks for your input.Hello!
Can you post me example to open pdf file using browser..?
Thanks.. -
SInce i installed Lion, my desktop icons are lining up like regimented Windows icons!
how do i get them to stay where i put them, like they used to do?
thanks!
ellenIn that case, there may be a problem with your Finder preferences or window settings.
Try removing these files, then restarting:
~/Library/Preferences/com.apple.finder.plist
~/Desktop/.DS_Store
Let me know if you're not sure how to do that. -
Why won't windows icon attach to projector - Dir 11?
I made a windows icon using IconCommander on an intel Mac (snow leopard). The Mac version of the icon attaches to the Mac projector just fine. But using the same procedure in creating a windows projector and trying to attach the windows version of the icon doesn't work. I just get the Di icon on the projector (gray square with "Di") inside. I don't know if the problem lies with icon commander or Director. I don't have a windows machine, so need a Mac solution. I've attached the windows icon.
LeslieAs far as I know, you can't change a Windows icon from a Mac.
-
Hi all !
does anybody know if it's possible to do drag and drop of windows icons (like folders) into Java Frames or other containers ?
I'd like to write an application where the user can drag Windows folders inside a Frame/Container and collect Folder information (the path to the folder)
Is it possible to do it ?
Thanks a lot
FrancescoHi,
It is possible.
You can drag platform independent objects like folders, icons etc. from the native platform to your java app.
The Java-Object you need in this case is a
DataFlavour like
DataFlavor.stringFlavor // for text
DataFlavor.javaFileListFlavor // for folders
in the tutorial jacob has linked you find more about this.
Olek -
How can I get rid of a green box with a white check mark in it this box is covering some of my photos and on the windows icon for firefox. edit
When I search for solutions, I find several references to the backup feature of Norton 360. There also were references to MozyHome and McAfee.
http://community.norton.com/t5/Norton-360/Green-check-marks-on-icons-N360/m-p/40982
http://answers.microsoft.com/en-us/windows/forum/windows_xp-pictures/white-check-mark-in-a-green-box/71b70580-b5f1-4336-8d72-71faf1f55cd6 -
Sometime when I drag a finder window I (nearly always) grab the new "tab bar" area in the finer window. Upon mouse button release if I'm over the desktop, it creates a little window icon of the "tab" finder window.
These icons have no interaction and can't be moved. They will pop over open apps or other finder windows if you click on them if they overlap.
Why is this? What's it for? AND, how do I make the mean feature go away?I'm getting this issue too. However, if I switch to another User account on the same machine it does not happen there?
Also in the other account when I close a window that has been dragged out of the tab it shrinks down to where the little Icon was in the original drag.
On the account with the error, the window will just close without shrinking down?
I am wondering if there is some other software running which is causing this?
In the mean time I've stopped dragging the tabs out and have started using "Move Tab to New Window" from the Window Menu for the time being. -
in Oracle 10g I want to hide the icon image of the windows.
I want the windows shows only the title bar not the icon.
Anyone can help me.
YeahiaActually I want to hide the windows icon which is top left corner of the windows. even when i hide the close,maximize,minimize,resize,move etc. everything set=no then also windows icon is visible. i want to hide the icon.
Yeahia
Maybe you are looking for
-
How can I get my photo to display correctly as background
I decided to change my background setting today, only to find that it doesn't display correctly anymore. Before the update, the photo would automatically 'fit in the window' - now it gives you the option to size and scale, but this doesn't actually w
-
Grinding noise when my HP LaserJet Pro 400 color MFP M475 calibrates
When my HP LaserJet Pro 400 color MFP M475 recalibrates, I get a grinding or gear slipping noise. Any idea how to fix it or what to look for? This question was solved. View Solution.
-
I broke my phone about two months ago and now it won't turn on because I believe there is internal damage. If I bought the insurance when buying the phone will I be able to get a new phone for free?
-
I am having a really hard time applying the filter "Brush Strokes -> Angled Strokes" to a colored box, whether it's just a selection or a rectangular box. I did this once and it worked (i.e. The box kept the same color and the correct filter was appl
-
What's wrong with pdf printing?
I am experiencing two related problems. If I save a pdf and then later try to load it I get a message saying the file has been damaged so it cannot be accessed. Also, when printing, I show a blank page. So I go to pdf preview and that is blank as