Article View: borland.public.jbuilder.java.swing
Article #9071Re: graphics
From: John P. McGrath
Date: Mon, 12 Jun 2000 00:00
Date: Mon, 12 Jun 2000 00:00
20 lines
1249 bytes
1249 bytes
On Mon, 12 Jun 2000 17:36:04 -0600, "/\\/\\ ][ |< (-" <mhedman@micron.net> wrote: > > You can use a JLabel to display an image. You would need > > one for each digit, the AM/PM indicator, a ":" between the > > hours and minutes, etc. > > Is it possible to do this with other than a JLabel? For me, > I would like to display a whole JPG. You could write your own component if you want to, but I am not sure what you don't like about JLabel. It will display an Image and/or a String, which sounds like what you need. Do not assume that a JLabel can only be as large as most of the JLabels that you have seen. It will be sizes as large as is needed to display the image. -- John P. McGrath <JPMcGrath@fast.net> <jpm@nscs.fast.net>
Technical Details
Message-ID:
<MPG.13af4f56c3226a5f9899be@forums.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<393ed3a4@dnews> <MPG.13a8f38220c3b6199899a5@forums.borland.com> <3945713b@dnews>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,7c93faf6250d9fd X-Google-Attributes: gid111d45,public From: John P. McGrath <JPMcGrath@fast.net> Subject: Re: graphics Date: 2000/06/12 Message-ID: <MPG.13af4f56c3226a5f9899be@forums.borland.com> X-Deja-AN: 633769395 References: <393ed3a4@dnews> <MPG.13a8f38220c3b6199899a5@forums.borland.com> <3945713b@dnews> Organization: Another Netscape Collabra Server User Newsgroups: borland.public.jbuilder.java.swing