Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

SnowLeopard2008

macrumors 604
Original poster
Jul 4, 2008
6,772
18
Silicon Valley
I created this small icon for a battery gauge app that I'm coding for Linux, using the Java programming language. One small problem. How do I get an icon for it? Could someone post the lines of code needed to add the icon to the app? I've tried searching too so please don't flame me.
 

foidulus

macrumors 6502a
Jan 15, 2007
904
1
I created this small icon for a battery gauge app that I'm coding for Linux, using the Java programming language. One small problem. How do I get an icon for it? Could someone post the lines of code needed to add the icon to the app? I've tried searching too so please don't flame me.

You should look into the Jar Bundler (Developer-> Utilities -> Jar Bundler)

That will allow you to create a Mac Application from your jars that users can just drag into their apps folder, launch from the dock etc. You can add your icon and set a couple other UI parameters with it.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.