How to represent a directory like an application-specific file in Java Swing on Mac
Nike Smith
Greenhorn
Joined: Oct 05, 2007
Posts: 11
posted
0
Hello All,
How to represent a directory like an application-specific file in Java Swing on Mac ?
The application creates files that are stored in directories. How to represent those directories like application-specific files with icon assigned to them, etc, etc?
Thank you.
Nike Smith
Greenhorn
Joined: Oct 05, 2007
Posts: 11
posted
0
So I am able to archive the information. How to assign an application-specific icon to it?
Michael Dunn
Ranch Hand
Joined: Jun 09, 2003
Posts: 4632
posted
0
> So I am able to archive the information. How to assign an application-specific icon to it?
Yes, it is .jar file, not executable, it contains some xml files generated by the application
I don't understand this code:
------------------------------------------------------------------------
you can change the icon of the jar file by the below code:
view plaincopy to clipboardprint?
what i have done here is, I have saved the image 'mylogo.png' in a folder named 'images'. Then i am making it as the icon of the jar file.
To make the clients to see your icon, Made that image folder as hidden folder and send that hidden folder along with zip file in which you will place your jar application and lib files.
------------------------------------------------------------------------
what is this in an example?
Michael Dunn
Ranch Hand
Joined: Jun 09, 2003
Posts: 4632
posted
0
I've not tried that way, but I tend to agree with the comments that follow that post in the link
that it will only change the icon of the JFrame/taskBar.