🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.jbuilder.java.api
2 messages
2 total messages Started by Pepito Perez Wed, 07 May 2003 11:02
How can I set the form's icon image ?
#592
Author: Pepito Perez
Date: Wed, 07 May 2003 11:02
8 lines
1029 bytes
Hello everybody,

does anybody know how can I put a different image (*.gif, *.ico) in my
window application?
I�m working with JBuilder 7 over Windows XP.


Thank you.
Re: How can I set the form's icon image ?
#593
Author: Kevin Dean
Date: Wed, 07 May 2003 11:10
32 lines
1873 bytes
package mypackage;
public class MyFrame extends JFrame {
  public MyFrame() {
    setIconImage(new
ImageIcon(getClass().getResource("image/my_icon.gif")).getImage());
  }
}

The icon image in the above example resides in mypackage/image.

-- 
Check out our latest white papers at
http://www.datadevelopment.com/papers/index.html

BladeNET Scores With Borland Enterprise Tools
Team Development with JBuilder and Borland Enterprise Server

Dolphin Data Development Ltd.
http://www.datadevelopment.com/

"Pepito Perez" <pepito@hotmail.com> wrote in message
news:3eb8e7d2$1@newsgroups.borland.com...
> Hello everybody,
>
> does anybody know how can I put a different image (*.gif, *.ico) in my
> window application?
> I�m working with JBuilder 7 over Windows XP.
>
>
> Thank you.
>
>
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads