How can I embed small images into the .class file that uses them so that I don't have to download so many separate files?

Sandip Chitale

Try to follow the strategy followed by the javax.swing.Icon interface. Read all about it at

You can use something like this -

private static class MenuArrowIcon implements Icon, UIResource, Serializable {
} // End class MenuArrowIcon

from the

You can initialize an int array and use either


0 Comments  (click to add your comment)
Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.



About | Sitemap | Contact