🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.jbuilder.java.swing
11 messages
11 total messages Started by Rudy Mon, 15 Dec 2003 21:56
Images for buttons
#1499
Author: Rudy
Date: Mon, 15 Dec 2003 21:56
7 lines
1168 bytes
I used to use Delphi and I had a function tied to a button called numGifs,
this allowed me to use the buttons provided by borland.  However i would
like to know if there is a similar function in java that allows 2 images to
be stored in one.

Thanks
Rudy
Re: Images for buttons
#1501
Author: John McGrath [TeamB]
Date: Mon, 15 Dec 2003 23:29
15 lines
1284 bytes
On 12/15/2003 at 4:56:50 PM, Rudy wrote:

> However i would like to know if there is a similar function in 
> java that allows 2 images to be stored in one.

What do you mean by "stored in one"?

-- 
Regards,

John McGrath [TeamB]

---------------------------------------------------
Before sending me e-mail, please read:
    http://www.JPMcGrath.net/newsgroups/e-mail.html
Re: Images for buttons
#1507
Author: Rudy
Date: Tue, 16 Dec 2003 14:24
25 lines
1851 bytes
with delphi,  they have an image with has the enabled state and disabled
state, but it is on one gif image.  I am just wondering if in jbuilder as it
is made by the same people, borland, has an option to state the number of
images on one image, (if it makes sense) or will i need to write a custom
one

Thanjs
Rudy
"John McGrath [TeamB]" <ng-b@JPMcGrath.net> wrote in message
news:3fde51df$1@newsgroups.borland.com...
> On 12/15/2003 at 4:56:50 PM, Rudy wrote:
>
> > However i would like to know if there is a similar function in
> > java that allows 2 images to be stored in one.
>
> What do you mean by "stored in one"?
>
> -- 
> Regards,
>
> John McGrath [TeamB]
>
> ---------------------------------------------------
> Before sending me e-mail, please read:
>     http://www.JPMcGrath.net/newsgroups/e-mail.html
Re: Images for buttons
#1512
Author: Lori M Olson (TeamB)
Date: Tue, 16 Dec 2003 16:51
36 lines
2467 bytes
Rudy wrote:

> with delphi,  they have an image with has the enabled state and disabled
> state, but it is on one gif image.  I am just wondering if in jbuilder as it
> is made by the same people, borland, has an option to state the number of
> images on one image, (if it makes sense) or will i need to write a custom
> one
> 

Interesting.  I didn't know you could do that with Delphi.  So, if I 
understand you correctly, they let you specify a GIF with multiple 
images (usually known as an animated GIF), and then let you specify 
which specific images within the GIF should serve as the "enabled" and 
"disabled" states.  That is so cool.

But... sorry, AFAIK the images in Java do not have this ability.  It 
should not be that difficult to implement, though, if you really need it.

-- 

Regards,

Lori Olson (TeamB)

------------

Save yourself, and everyone else, some time and search the
newsgroups and the FAQ-O-Matic before posting your next
question.

Google Advanced Newsgroup Search
     http://www.google.ca/advanced_group_search
Other Newsgroup Searches:
     http://www.borland.com/newsgroups/ngsearch.html
Joi Ellis's FAQ-O-Matic:
     http://www.visi.com/~gyles19/fom-serve/cache/1.html
Re: Images for buttons
#1513
Author: Gillmer J. Derge (TeamB)
Date: Tue, 16 Dec 2003 16:58
26 lines
2355 bytes
"Lori M Olson (TeamB)" <javadragon@techie.com> wrote in message
news:3fdf3765$1@newsgroups.borland.com...
> if I
> understand you correctly, they let you specify a GIF with multiple
> images (usually known as an animated GIF),

I think it's more tiles than animation.  Say you have a 16x32 GIF, you
can divide that up into two 16x16 tiles.

JBuilder does this with its toolbar icons which are all tiles on a giant
image that contains dozens of icons.  One of the situations where I've
seen this used is applets where it can be helpful to reduce the number
of separate files that need to be downloaded -- download one big image
instead of 20 small ones.

> But... sorry, AFAIK the images in Java do not have this ability.  It
> should not be that difficult to implement, though, if you really need
it.

You could use the com.borland.primetime.util.Icons class and the nested
IconFactory class as a model for the API.  The class is neither
documented nor redistributable, so you can't use it as is, but it looks
fairly simple and might offer some ideas.

-- 
Gillmer J. Derge (TeamB)
Re: Images for buttons
#1514
Author: Rudy
Date: Tue, 16 Dec 2003 17:05
45 lines
2707 bytes
Yeah in delphi, the buttons have this property called numGlyphs, and you can
specify the images to be used.  Look on the cd and find the images folder,
they are all there. :)
"Lori M Olson (TeamB)" <javadragon@techie.com> wrote in message
news:3fdf3765$1@newsgroups.borland.com...
> Rudy wrote:
>
> > with delphi,  they have an image with has the enabled state and disabled
> > state, but it is on one gif image.  I am just wondering if in jbuilder
as it
> > is made by the same people, borland, has an option to state the number
of
> > images on one image, (if it makes sense) or will i need to write a
custom
> > one
> >
>
> Interesting.  I didn't know you could do that with Delphi.  So, if I
> understand you correctly, they let you specify a GIF with multiple
> images (usually known as an animated GIF), and then let you specify
> which specific images within the GIF should serve as the "enabled" and
> "disabled" states.  That is so cool.
>
> But... sorry, AFAIK the images in Java do not have this ability.  It
> should not be that difficult to implement, though, if you really need it.
>
> -- 
>
> Regards,
>
> Lori Olson (TeamB)
>
> ------------
>
> Save yourself, and everyone else, some time and search the
> newsgroups and the FAQ-O-Matic before posting your next
> question.
>
> Google Advanced Newsgroup Search
>      http://www.google.ca/advanced_group_search
> Other Newsgroup Searches:
>      http://www.borland.com/newsgroups/ngsearch.html
> Joi Ellis's FAQ-O-Matic:
>      http://www.visi.com/~gyles19/fom-serve/cache/1.html
>
Re: Images for buttons
#1515
Author: Rudy
Date: Tue, 16 Dec 2003 17:06
33 lines
2440 bytes
Cool, thanks for that, are you saying i cannot call the class but just look
at it and get ideas??
Thnaks
Rudy
"Gillmer J. Derge (TeamB)" <spam@gillmerderge.com> wrote in message
news:3fdf39ac@newsgroups.borland.com...
> "Lori M Olson (TeamB)" <javadragon@techie.com> wrote in message
> news:3fdf3765$1@newsgroups.borland.com...
> > if I
> > understand you correctly, they let you specify a GIF with multiple
> > images (usually known as an animated GIF),
>
> I think it's more tiles than animation.  Say you have a 16x32 GIF, you
> can divide that up into two 16x16 tiles.
>
> JBuilder does this with its toolbar icons which are all tiles on a giant
> image that contains dozens of icons.  One of the situations where I've
> seen this used is applets where it can be helpful to reduce the number
> of separate files that need to be downloaded -- download one big image
> instead of 20 small ones.
>
> > But... sorry, AFAIK the images in Java do not have this ability.  It
> > should not be that difficult to implement, though, if you really need
> it.
>
> You could use the com.borland.primetime.util.Icons class and the nested
> IconFactory class as a model for the API.  The class is neither
> documented nor redistributable, so you can't use it as is, but it looks
> fairly simple and might offer some ideas.
>
> -- 
> Gillmer J. Derge (TeamB)
>
Re: Images for buttons
#1516
Author: Gillmer J. Derge (TeamB)
Date: Tue, 16 Dec 2003 17:10
18 lines
2085 bytes
"Rudy" <rhentzen@hotmail.com> wrote in message
news:3fdf3ba4$1@newsgroups.borland.com...
> Cool, thanks for that, are you saying i cannot call the class but just
look
> at it and get ideas??

Right.  It's part of JBuilder itself and not something that you're
licensed to redistribute as part of your application.  You also don't
have source code to it, but if you browse to that class you can see the
methods it implements, and that might give you some ideas about how to
implement it yourself.

It's part of the "Open Tools SDK" library, so if you want to look at it,
add that to your project as a required library.  Then use "Find Classes"
(Ctrl-Minus) to browse to the Icons class.

-- 
Gillmer J. Derge (TeamB)
Re: Images for buttons
#1373
Author: Rudy
Date: Tue, 16 Dec 2003 22:23
23 lines
2136 bytes
Thanks a lot i will have a look
Rudy
"Gillmer J. Derge (TeamB)" <spam@gillmerderge.com> wrote in message
news:3fdf3c99@newsgroups.borland.com...
> "Rudy" <rhentzen@hotmail.com> wrote in message
> news:3fdf3ba4$1@newsgroups.borland.com...
> > Cool, thanks for that, are you saying i cannot call the class but just
> look
> > at it and get ideas??
>
> Right.  It's part of JBuilder itself and not something that you're
> licensed to redistribute as part of your application.  You also don't
> have source code to it, but if you browse to that class you can see the
> methods it implements, and that might give you some ideas about how to
> implement it yourself.
>
> It's part of the "Open Tools SDK" library, so if you want to look at it,
> add that to your project as a required library.  Then use "Find Classes"
> (Ctrl-Minus) to browse to the Icons class.
>
> -- 
> Gillmer J. Derge (TeamB)
>
Re: Images for buttons
#1374
Author: Valentino Kyriakides
Date: Wed, 17 Dec 2003 00:14
28 lines
2074 bytes
That's just what jirt also does

http://www.java-engineer.com/java/jirt.html

-vkyr


"Gillmer J. Derge (TeamB)" <spam@gillmerderge.com> schrieb im Newsbeitrag
news:3fdf3c99@newsgroups.borland.com...
> "Rudy" <rhentzen@hotmail.com> wrote in message
> news:3fdf3ba4$1@newsgroups.borland.com...
> > Cool, thanks for that, are you saying i cannot call the class but just
> look
> > at it and get ideas??
>
> Right.  It's part of JBuilder itself and not something that you're
> licensed to redistribute as part of your application.  You also don't
> have source code to it, but if you browse to that class you can see the
> methods it implements, and that might give you some ideas about how to
> implement it yourself.
>
> It's part of the "Open Tools SDK" library, so if you want to look at it,
> add that to your project as a required library.  Then use "Find Classes"
> (Ctrl-Minus) to browse to the Icons class.
>
> --
> Gillmer J. Derge (TeamB)
>
Re: Images for buttons
#1375
Author: Valentino Kyriakides
Date: Wed, 17 Dec 2003 00:15
57 lines
2944 bytes
See: http://www.java-engineer.com/java/jirt.html I think this is somehow
similar to what you are looking for (?).

-vkyr

"Rudy" <rhentzen@hotmail.com> schrieb im Newsbeitrag
news:3fdf3b5a$1@newsgroups.borland.com...
> Yeah in delphi, the buttons have this property called numGlyphs, and you
can
> specify the images to be used.  Look on the cd and find the images folder,
> they are all there. :)
> "Lori M Olson (TeamB)" <javadragon@techie.com> wrote in message
> news:3fdf3765$1@newsgroups.borland.com...
> > Rudy wrote:
> >
> > > with delphi,  they have an image with has the enabled state and
disabled
> > > state, but it is on one gif image.  I am just wondering if in jbuilder
> as it
> > > is made by the same people, borland, has an option to state the number
> of
> > > images on one image, (if it makes sense) or will i need to write a
> custom
> > > one
> > >
> >
> > Interesting.  I didn't know you could do that with Delphi.  So, if I
> > understand you correctly, they let you specify a GIF with multiple
> > images (usually known as an animated GIF), and then let you specify
> > which specific images within the GIF should serve as the "enabled" and
> > "disabled" states.  That is so cool.
> >
> > But... sorry, AFAIK the images in Java do not have this ability.  It
> > should not be that difficult to implement, though, if you really need
it.
> >
> > --
> >
> > Regards,
> >
> > Lori Olson (TeamB)
> >
> > ------------
> >
> > Save yourself, and everyone else, some time and search the
> > newsgroups and the FAQ-O-Matic before posting your next
> > question.
> >
> > Google Advanced Newsgroup Search
> >      http://www.google.ca/advanced_group_search
> > Other Newsgroup Searches:
> >      http://www.borland.com/newsgroups/ngsearch.html
> > Joi Ellis's FAQ-O-Matic:
> >      http://www.visi.com/~gyles19/fom-serve/cache/1.html
> >
>
>
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