The moose likes Swing / AWT / SWT and the fly likes Creating Images Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Creating Images" Watch "Creating Images" New topic

Creating Images

P Jain
Ranch Hand

Joined: Jul 31, 2004
Posts: 52

I have a jar file which contains some images.
I have some texts and image names (which are present in jar file) and there coordinates.
Can I create a image file that contains text and images (from jar file) at specific coordinates ( I mean by extracting specific images from the jar file ).

Regards<br />P Jain
Pat Hays
Ranch Hand

Joined: Aug 20, 2004
Posts: 138
Do you mean how to load image from jar file? if so, the code is here.

ImageURL = "/pictures/logo.gif";
button = new JLabel(new ImageIcon(getClass().getResource(ImageURL)));//For load image from the jar file.

Download Java GUI Builder, <a href="" target="_blank" rel="nofollow"></a>
I agree. Here's the link:
subject: Creating Images
jQuery in Action, 3rd edition