Customize file types and icons


Becky:

I have a game written in Java that has the ability to save the game and load everything using a .txt file, but I thought it would be cool if I could have my own file type...I know I can set it as Save as a not yet defined type, but then I get a blank icon for the file... Is it possible to give it a custom file icon in Java? I've looked online etc but all I found is that the Microsoft website explains some of this in c# and vb etc...

James Campbell:

I guess, if you created the file type in Windows (if you are in Windows), you can add the file type to the system. Then look at existing file types. Now associate your icon to that type.

Here's how to do it in Windows:

http://www.watchingthenet.com/associate-delete-file-types-in-windows-vista.html

In earlier versions of Windows, it was possible in Explorer. Easy to find around google.

Now, once the type is added, do the following:

http://www.webtlk.com/2009/03/20/how-to-change-the-icon-assiciated-with-a-file-in-windows-vista-and-windows-7/

If you need to deploy it, and want to do it this way on another computer, this will only do it on your computer, which should give you enough work to script like InstallShield. I can even provide a script if you tell me the installer to deploy.

Related


Customize file types and icons

Becky: 我有一个用Java编写的游戏,它具有保存游戏并加载所有使用.txt文件的功能,但是我认为如果我可以拥有自己的文件类型,那就太酷了……我知道我可以将其设置为另存为尚未定义的类型,但随后我得到该文件的空白图标...是否可以在Java中为其提供自定义文件图标?我看过在线等,但我发现的只是Microsoft网站在c#和vb等中解释了其中的一些... 詹姆斯·坎贝尔: 我想,如果您在Windows中创建了文件类型(如果您在Windows中),则可以将文件类型添加到系统中。然后查看现有文件类型。现在,将您的图标关

Customize file types and icons

Becky: I have a game written in Java that has the ability to save the game and load everything using a .txt file, but I thought it would be cool if I could have my own file type...I know I can set it as Save as a not yet defined type, but then I get a blank ic

Customize icons in grub theme

nt First of all, I don't know if this is the right place to post, so sorry if it's not. I have installed the theme ( tela ) in the grub bootloader and added the icon to the OS entry. Is there any way to manually assign icons to entries? For example, the Linux

How to customize location icons?

Emil Balley I'm trying to replace the location icon in the demo with my own, but I haven't figured out how to do it yet. I searched for its declaration in the .json file without success. { "class" : "map", "colortype" : "rgba", "columns

Customize the icons on the js tree

friends I want to add a folder open close icon for closing and expanding, and a leaf icon for leaf nodes. please help Edit : Tried adding the type plugin, but it doesn't seem to work. var data = { 'core': { 'data': dataObj }, "sea

Customize Installer Icons with NSIS

soak I am using NSIS to create an installer. The output file installer.exe now has a standard icon that can be found at: {NSIS_Install_Dir}\Contrib\Graphics\Icons\classic-install.ico I want to use custom mines to change it, so in the documentation I suggest a

How to Customize Special Icons

christian 007 I'm evaluating Install4j to see if I can replace InstallAnywhere. Custom Installer/Unistaller's icon [executable icon] is clear to me. The possibility to customize the image in the title bar is also evident. I'm asking if I also have customizatio

Customize the icons on the js tree

friends I want to add a folder open close icon for closing and expanding, and a leaf icon for leaf nodes. please help Edit : Tried adding the type plugin, but it doesn't seem to work. var data = { 'core': { 'data': dataObj }, "sea

Customize icons in grub theme

nt First of all, I don't know if this is the right place to post, so sorry if it's not. I have installed the theme ( tela ) in the grub bootloader and added the icon to the OS entry. Is there any way to manually assign icons to entries? For example, the Linux

How to customize location icons?

Emil Balley I'm trying to replace the location icon in the demo with my own, but I haven't figured out how to do it yet. I searched for its declaration in the .json file without success. { "class" : "map", "colortype" : "rgba", "columns

Customize the icons on the js tree

friends I want to add a folder open close icon for closing and expanding, and a leaf icon for leaf nodes. please help Edit : Tried adding the type plugin, but it doesn't seem to work. var data = { 'core': { 'data': dataObj }, "sea

Customize the icons on the js tree

friends I want to add a folder open close icon for closing and expanding, and a leaf icon for leaf nodes. please help Edit : Tried adding the type plugin, but it doesn't seem to work. var data = { 'core': { 'data': dataObj }, "sea

Customize the icons on the js tree

friends I want to add a folder open close icon for closing and expanding, and a leaf icon for leaf nodes. please help Edit : Tried adding the type plugin, but it doesn't seem to work. var data = { 'core': { 'data': dataObj }, "sea

Customize the icons on the js tree

friends I want to add a folder open close icon for closing and expanding, and a leaf icon for leaf nodes. please help Edit : Tried adding the type plugin, but it doesn't seem to work. var data = { 'core': { 'data': dataObj }, "sea

Customize the icons on the js tree

friends I want to add a folder open close icon for closing and expanding, and a leaf icon for leaf nodes. please help Edit : Tried adding the type plugin, but it doesn't seem to work. var data = { 'core': { 'data': dataObj }, "sea

Customize the icons on the js tree

friends I want to add a folder open close icon for closing and expanding, and a leaf icon for leaf nodes. please help Edit : Tried adding the type plugin, but it doesn't seem to work. var data = { 'core': { 'data': dataObj }, "sea

Customize the icons on the js tree

friends I want to add a folder open close icon for closing and expanding, and a leaf icon for leaf nodes. please help Edit : Tried adding the type plugin, but it doesn't seem to work. var data = { 'core': { 'data': dataObj }, "sea

Customize the icons on the js tree

friends I want to add a folder open close icon for closing and expanding, and a leaf icon for leaf nodes. please help Edit : Tried adding the type plugin, but it doesn't seem to work. var data = { 'core': { 'data': dataObj }, "sea

Customize Installer Icons with NSIS

soak I am using NSIS to create an installer. The output file installer.exe now has a standard icon that can be found at: {NSIS_Install_Dir}\Contrib\Graphics\Icons\classic-install.ico I want to use custom mines to change it, so in the documentation I suggest a

Customize Installer Icons with NSIS

soak I am using NSIS to create an installer. The output file installer.exe now has a standard icon that can be found at: {NSIS_Install_Dir}\Contrib\Graphics\Icons\classic-install.ico I want to use custom mines to change it, so in the documentation I suggest a

Customize Installer Icons with NSIS

soak I am using NSIS to create an installer. The output file installer.exe now has a standard icon that can be found at: {NSIS_Install_Dir}\Contrib\Graphics\Icons\classic-install.ico I want to use custom mines to change it, so in the documentation I suggest a

How to Customize Condition Icons

Arthur I want to customize icon standard. I need 5 conditions. I used IconSetCondition. requirement is: value < 0.85 value < 0.95 Value < 1.06 Value < 1.15 value >= 1.15 I want to use 3Traffic lights in this way: value <0.85 -> "red traffic light" value < 0.95

How to Customize Special Icons

christian 007 I'm evaluating Install4j to see if I can replace InstallAnywhere. Custom Installer/Unistaller's icon [executable icon] is clear to me. The possibility to customize the image in the title bar is also evident. I'm asking if I also have customizatio

Customize icons in grub theme

nt First of all, I don't know if this is the right place to post, so sorry if it's not. I have installed the theme ( tela ) in the grub bootloader and added the icon to the OS entry. Is there any way to manually assign icons to entries? For example, the Linux

How to customize location icons?

Emil Balley I'm trying to replace the location icon in the demo with my own, but I haven't figured out how to do it yet. I searched for its declaration in the .json file without success. { "class" : "map", "colortype" : "rgba", "columns

Customize the icons on the js tree

friends I want to add a folder open close icon for closing and expanding, and a leaf icon for leaf nodes. please help Edit : Tried adding the type plugin, but it doesn't seem to work. var data = { 'core': { 'data': dataObj }, "sea

Customize the icons on the js tree

friends I want to add a folder open close icon for closing and expanding, and a leaf icon for leaf nodes. please help Edit : Tried adding the type plugin, but it doesn't seem to work. var data = { 'core': { 'data': dataObj }, "sea

Customize the icons on the js tree

friends I want to add a folder open close icon for closing and expanding, and a leaf icon for leaf nodes. please help Edit : Tried adding the type plugin, but it doesn't seem to work. var data = { 'core': { 'data': dataObj }, "sea

Customize the icons on the js tree

friends I want to add a folder open close icon for closing and expanding, and a leaf icon for leaf nodes. please help Edit : Tried adding the type plugin, but it doesn't seem to work. var data = { 'core': { 'data': dataObj }, "sea