Results 1 to 19 of 19
Thread: Change the icon of file in java
- 10-05-2010, 11:54 AM #1
Member
- Join Date
- Aug 2010
- Posts
- 9
- Rep Power
- 0
- 10-05-2010, 02:57 PM #2change the pic of file in directory
What java class are you using for this?
- 10-06-2010, 03:52 AM #3
Member
- Join Date
- Aug 2010
- Posts
- 9
- Rep Power
- 0
Hi,what i mean the pic of how OS represent the file, Actually I were looking at a program such as SVN, when checkout the source, one tick added to the file that OS represent and SVN also is a java program. That shows java may able to show folder with any pic (if I'm wrong pl correct me). That is why i wanted to learn to create a file but not with the normal pic, with any pic I interested for some purpose. the java class i'm using is AWT and SWING
- 10-06-2010, 03:58 AM #4java may able to show folder with any pic
Or what class are you asking about?
- 10-06-2010, 04:10 AM #5
Member
- Join Date
- Aug 2010
- Posts
- 9
- Rep Power
- 0
If it is possible yes.
For creating files i jz used File, but if JFileChooser can do so, would you pl guide me how to use?
- 10-06-2010, 04:14 AM #6
I still don't understand what you are trying to do.
What does creating files have to do with changing the icon associated with a file when that file's name is displayed in some program like JFileChooser or Windows Explorer.
- 10-06-2010, 04:21 AM #7
Member
- Join Date
- Aug 2010
- Posts
- 9
- Rep Power
- 0
The file Icon i'm interested to create is attached, hope that help. I would like to create a file but not with a pic, In SVN I've noticed after it checkout successfully, one tick icon added to the File pic in OS. That is what i'm interested to know and create. I wanna create a file with different pic in OS.
- 10-06-2010, 04:26 AM #8
Member
- Join Date
- Aug 2010
- Posts
- 9
- Rep Power
- 0
Sorry jz now attached
- 10-06-2010, 04:35 AM #9
What program do you use to view the list of files that shows that icon/image with the file?
Is it Windows Explorer? Or what?
- 10-06-2010, 04:38 AM #10
Member
- Join Date
- Aug 2010
- Posts
- 9
- Rep Power
- 0
The program I used is SVN, and yes it is window explorer that shows this type of ICON. SVN is a open source used to create a subversion of files existed in server, for that issue when Checkout, that icon appears in window explorer to show an successful checkout.
- 10-06-2010, 04:49 AM #11
Sorry, I don't know anything about SVN. Does it use JNI?
- 10-06-2010, 04:55 AM #12
Member
- Join Date
- Aug 2010
- Posts
- 9
- Rep Power
- 0
I'm not sure,most probably yes, actually my question only is, if I want to create a folder in for example C directory of windows, can i create that folder with any icon(pic) i'm interested or java jz create the windows icon?
- 10-06-2010, 04:41 PM #13
On windows XP, is it possible to change the icon displayed for an individual file?
Do you know how to do it?
For folders, the Properites context menu item will allow you to select an icon.
- 10-06-2010, 04:54 PM #14
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 14,422
- Blog Entries
- 7
- Rep Power
- 29
A FileView implementation can do what you want in a JFileChooser; read its API documentation.
kind regards,
Jos
- 10-06-2010, 05:03 PM #15
Not sure that is what is being requested. Would FileView set the icon so that Windows Explorer and other file lists viewers would see that icon?
- 10-06-2010, 05:30 PM #16
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 14,422
- Blog Entries
- 7
- Rep Power
- 29
- 10-06-2010, 05:36 PM #17
Still trying to see what the OP wants.
I thought he claimed that some program could set icons for individual files.
- 10-06-2010, 05:50 PM #18
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 14,422
- Blog Entries
- 7
- Rep Power
- 29
- 10-06-2010, 05:55 PM #19
Similar Threads
-
Can´t change selected/pressed Icon of a JMenu
By Valhallon in forum AWT / SwingReplies: 3Last Post: 07-08-2011, 11:16 PM -
How to change JTree's node icon manually?
By LeonLanford in forum AWT / SwingReplies: 3Last Post: 09-29-2010, 04:14 PM -
Swing: Change the icon on a JComponent
By xytho33 in forum Advanced JavaReplies: 1Last Post: 09-23-2010, 07:53 AM -
How to change Window Icon
By sharafat in forum AWT / SwingReplies: 7Last Post: 01-15-2010, 01:37 AM -
Icon change and lib folder problem
By LeonLanford in forum New To JavaReplies: 10Last Post: 10-21-2009, 05:13 PM
Bookmarks