🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.swing
Article #1155

Can I make an invisible control?

#1155
From: Ted Byers
Date: Fri, 19 Mar 2004 15:32
17 lines
1667 bytes
Here is what I need (and could do almost blindfolded in Borland's C++
Builder).

I need a component that could hold a bitmap, and which can have a size set
independantly of the size of the bitmap, and which can have a size, measured
in pixels, even if it doesn't have bitmap data and so would be invisible.
And this component ought to respond to all mouse events and have its own
cursor.  Is there such a component in swing?  I ask because this is an easy
way to create "hot spots" over top of another control that has a large image
(but without the aggravation of figuring out the exact top, bottom, left and
right edges of the desired hotspot and then calculating whether or not the
mouse is presently over the hotspot - I would instead be able to just
visually place and size the control).

Thanks,

Ted
Technical Details
Message-ID: <405b119a$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,713e84ee88d10114,start
X-Google-Attributes: gid111d45,public
X-Google-ArrivalTime: 2004-03-19 07:36:21 PST
From: "Ted Byers" <r.ted.byers@sympatico.ca>
Newsgroups: borland.public.jbuilder.java.swing
Subject: Can I make an invisible control?
Date: Fri, 19 Mar 2004 10:32:25 -0500
Lines: 19
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: <405b119a$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1079710106 65.95.240.180 (19 Mar 2004 07:28:26 -0800)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail