Article View: borland.public.jbuilder.java.swing
Article #1159Re: Can I make an invisible control?
From: Ted Byers
Date: Fri, 19 Mar 2004 16:47
Date: Fri, 19 Mar 2004 16:47
24 lines
1972 bytes
1972 bytes
"Gillmer J. Derge (TeamB)" <spam@gillmerderge.com> wrote in message news:405b1f78$1@newsgroups.borland.com... > Ted Byers wrote: > > No. The change in the cursor is just to let the user know that there is > > something under the cursor (or perhaps I should have said mouse pointer) > > which can respond to a mouse event. > > I get it now. You could also do that with a JLabel. > > label.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR)); > > One limitation is that the area obviously needs to be rectangular if > it's a JLabel, and I haven't seen many rectangular cats. :-) > Thanks. In this context, it doesn't matter much if the selection area is a bit larger than the item itself. But here is another question about the use of JLabel within the designer. Is it possible to get it to load an image at design time? Without that capability, it is rather hard to visually place my invisible JLabels. Thanks, Ted
Technical Details
Message-ID:
<405b2349$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed.iinet.net.au!newsfeed.iinet.net.au!PeerFeed.KWeb.on.ca!news.kweb.on.ca!newsgroups.borland.com!not-for-mailReferences:
<405b119a$1@newsgroups.borland.com> <405b1413$1@newsgroups.borland.com> <405b1da8$1@newsgroups.borland.com> <405b1f78$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,713e84ee88d10114 X-Google-Attributes: gid111d45,public X-Google-ArrivalTime: 2004-03-19 08:55:34 PST From: "Ted Byers" <r.ted.byers@sympatico.ca> Newsgroups: borland.public.jbuilder.java.swing References: <405b119a$1@newsgroups.borland.com> <405b1413$1@newsgroups.borland.com> <405b1da8$1@newsgroups.borland.com> <405b1f78$1@newsgroups.borland.com> Subject: Re: Can I make an invisible control? Date: Fri, 19 Mar 2004 11:47:53 -0500 Lines: 27 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 NNTP-Posting-Host: 65.95.240.180 Message-ID: <405b2349$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1079714633 65.95.240.180 (19 Mar 2004 08:43:53 -0800) Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed.iinet.net.au!newsfeed.iinet.net.au!PeerFeed.KWeb.on.ca!news.kweb.on.ca!newsgroups.borland.com!not-for-mail