PDA

View Full Version : java: 2 questions


tricolaire
10-06-2005, 11:54 PM
question 1:

I'm creating a java application bundle with XCode on Mac OSX
how can I specify a different icon for the bundle once on the desktop? ie: whats the code to set an icon?

question 2:

How do I use java to connect to the existing print drivers on the machine?

ttttt
10-08-2005, 08:44 PM
Answer1:
Is it an IE Favourites icon? If so try:
Click me (http://www.javascriptkit.com/howto/customicon.shtml) :thumbsup:

gsoft
10-09-2005, 01:01 AM
Javascript is not Java.

Printing
http://www.apl.jhu.edu/~hall/java/Swing-Tutorial/Swing-Tutorial-Printing.html

Icon
Well Im not aware if you can actually set the program and Icon since I believe this is an OS thing. However you can give the Window and Icon using Swing take a look at JFrame.setIconImage (http://java.sun.com/j2se/1.4.2/docs/api/java/awt/Frame.html#setIconImage(java.awt.Image))

Hope this helps.

tricolaire
10-10-2005, 03:46 AM
yes thank you

suryad
10-11-2005, 08:19 AM
Thanks. Good to know about the printer stuff!