Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » How do i give my class its own icon?
How do i give my class its own icon? [message #448959] Mon, 17 January 2005 01:04 Go to next message
Victor is currently offline VictorFriend
Messages: 12
Registered: July 2009
Junior Member
how do i give my class its own icon?

I am in eclipse,
i create a java project,
i create a class.

then i run the class:

When i alt-tab i see my java program is symbolized
by a windows logo.

How do i give it my own icon?

(and yes, i already tried the help. (try searching
for icon). tried everywhere i could. this is my last
resort)
Re: How do i give my class its own icon? [message #448988 is a reply to message #448959] Mon, 17 January 2005 11:52 Go to previous messageGo to next message
Benjamin Pasero is currently offline Benjamin PaseroFriend
Messages: 337
Registered: July 2009
Senior Member
Try Shell.setImage(Image image)

Ben


> how do i give my class its own icon?
>
> I am in eclipse,
> i create a java project,
> i create a class.
>
> then i run the class:
>
> When i alt-tab i see my java program is symbolized
> by a windows logo.
>
> How do i give it my own icon?
>
> (and yes, i already tried the help. (try searching
> for icon). tried everywhere i could. this is my last
> resort)
>
thank you [message #448991 is a reply to message #448988] Mon, 17 January 2005 15:00 Go to previous message
Victor is currently offline VictorFriend
Messages: 12
Registered: July 2009
Junior Member
thank you, that worked beautifly!
even shell.setText("Whatever") so it would have a text like the
rest of the 'task buttons' at the bottom of my windows screen.
Previous Topic:Table
Next Topic:Labels in FormLayout
Goto Forum:
  


Current Time: Wed Dec 11 04:09:11 GMT 2019

Powered by FUDForum. Page generated in 0.02130 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top