I've written a JavaFX application that uses Java Web Start. For some reason, the window title is always "Java" (on Linux) or blank (on Windows). However, the desktop icon has the correct application title and image.
From what I've found so far, the important bit here is the information > title element in the JNLP file.
What am I missing?
NOTE: I'm happy to post my JNLP content if someone says it would be of use.
It turns out that the application title and icon for the taskbar entry are controlled by the title and icons attributes of the Stage.
Only the title and icon of the desktop icon are controlled by the JNLP.
Related
OS X 10.7.5, Eclipse 4.3 Kepler build ID 20130919-0819, Java 1.7.0_51
I'm following along the Vogel tutorial, and I have (another) problem. I've added a toolbar as described in the tutorial, but no icons appear on the toolbar. The toolbar itself appears, but it is empty. If I click in the empty space where the icon should be, the handler is called as expected. I can add an icon file to my project, and have my HandledToolItem point to it, and in that case the icon is visible, and operates as expected.
Should I expect default icons to appear automatically? Do I have to import or include standard Eclipse icons somehow? Or do I have to add each icon manually (I rather doubt this is the case.)
Thanks, gary
You can add Icons via the platform-notation, e.g. platform:/plugin/de.myplugin.ui/icons/icon.gif.
Using this way, you can also access eclipse-build-in-icons.
See this blogpost: http://codeandme.blogspot.co.at/2012/07/reusing-platform-images.html for a plugin to browse the available plugins.
I am developing an Adobe Air app. I need to set an icon to the app so it is shown on the task bar. I added the icon tag to the descriptor file but it is not working and I really don't know why, any ideas?
Two things that might be throwing you off:
1) the icons block is commented out by default in the auto-generated descriptor file, and is an easy thing to overlook
2) the icons specified in a descriptor file don't appear in the app unless you build a release build, and install the resulting .air file. A debug build will only show the AIR icon.
At least these are the behaviors I experience in Flash Builder 4.
Adding the icons to your application descriptor should do it.
However, icons come in different sizes.
For example:
<icon>
<image16x16>/icons/app/icon_16.png</image16x16>
<image29x29>/icons/app/icon_29.png</image29x29>
<image32x32>/icons/app/icon_32.png</image32x32>
<image36x36>/icons/app/icon_36.png</image36x36>
<image48x48>/icons/app/icon_48.png</image48x48>
<image57x57>/icons/app/icon_57.png</image57x57>
<image72x72>/icons/app/icon_72.png</image72x72>
<image114x114>/icons/app/icon_114.png</image114x114>
<image128x128>/icons/app/icon_128.png</image128x128>
<image512x512>/icons/app/icon_512.png</image512x512>
</icon>
If I'm not mistaken, the 32x32 icon should be the one that is displayed in the taskbar.
Obviously, make sure that you are referring to the correct path in your descriptor file.
One more thing. I just wasted over an hour on this: For an iOS app, you won't see the icon when you drop the app into iTunes (at least not under Windows), but it will appear on your device!
I am building an mobile flex app in eclipse indigo and have my app worked almost to completion and about ready for deployment. Unfortunately, I cannot find how to change the app icon and title for the system to read, so my app still shows up as Main with the default package symbol in the launcher. Does anyone know where to apply changes to these properties?
There are properties in your app-config file. If you main application file is Main.mxml; then most likely your app config is named Main-app.xml. Look for the icon tag to specify the app icon. One of my apps uses something like this:
<icon>
<image32x32>/assets/icon/Icon32x32.png</image32x32>
<image36x36>/assets/icon/Icon36x36.png</image36x36>
<image48x48>/assets/icon/Icon48x48.png</image48x48>
<image72x72>/assets/icon/Icon72x72.png</image72x72>
<image114x114>/assets/icon/Icon114x114.png</image114x114>
</icon>
I believe the name under the icon is specified using the name parameter in the same file:
<name>My App Name</name>
I'm teaching myself iOS programming and am trying to add a Settings Bundle Resource to my Hello World app, following instructions in the iOS Application Programming Guide. The Settings.bundle object is created in my project (with the disclosure triangle) but there are no files inside.
I expected a Root.plist and en.lproj/Root.strings
Am I missing something in my Xcode4 installation or Xcode setup?
Thanks!
If you click on it with the mouse, and choose "Show in Finder", and in Finder click on it and choose "Show Package Contents", you'll see that it's a directory.
(I found the answer at http://www.iphonedevsdk.com/forum/iphone-sdk-development/92361-settings-bundle-corrupted-newly-added-settings-bundle-also-bad-xcode-4-2-a.html )
[quote]
Click on the Settings.bundle file in the left window; from main menu choose View -> Utilities -> Show FileInspector. Then change fileType to "applicationBundle" -- the two missing files will show under Settings.bundle.
[/quote]
(FileInspector is the right column (to the right from the central view(s)), the tab with an icon showing a page with a paper-clip in the corner)
Just for completeness, this was fixed in a newer version of Xcode. I'll remember to include versions numbers next time.
In my last question (Qt/C++: Icons not showing up when program is run) I asked how to get an icon to show up on a toolbar and was told I needed a Qt Resource, which I added and that fixed my problem, the icon did show up on the toolbar.
Now I'm trying to set the title icon of a window, using the same resource file, and it shows up fine in the Qt preview viewer but blank in the actual program. I am using a MainWindow which has an MDIArea and the children are MainWindows as well; neither the parent MDI nor child MDI windows icons will show properly. On the parent, I see the regular "Windows Application icon" and on the child, the icon is completely blank.
How can I solve this?
You will have to go through a standard resource file for windows. (That is, a .rc)
The process (as described in the documentation) is:
Store the ICO file in your application's source code directory, for
example, with the name myappico.ico. Then, create a text file called,
say, myapp.rc in which you put a single line of text:
IDI_ICON1 ICON DISCARDABLE "myappico.ico"
Finally, assuming you are using qmake to generate your makefiles, add this line to your myapp.pro
file: RC_FILE = myapp.rc
Regenerate your makefile and your application. The .exe file will now be represented with your icon in Explorer.
In the Visual Studio case you're simply able to add a resource to your project.