🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: How do I get at the root pane of JApplet and it's members?

#1099
From: John McGrath [TeamB]
Date: Thu, 25 Mar 2004 23:09
29 lines
2072 bytes
On 3/24/2004 at 3:53:48 PM, Ted Byers wrote:

> My problem, at present, is that JBuilder9 doesn't seem to know about
> the root pane and its data members, or about the functions rquired to
> access them.

JBuilder's UI Designer works with the content pane, which is where most
components usually go in a Swing UI.  The root pane is generally not
used to lay out the GUI.  Instead, it is usually used for programmatic
manipulation of the GUI, such as with drag & drop, popup menus, etc.

Instead of messing with the root pane and layered pane, just place the
two labels together in a JPanel and place that in the content pane.  It
should work pretty much the same as what you have been doing, except
that the default for the layout manager will be different.

> I am assuming that I am having trouble with my mouse cursor is that
> for some reason the invisible JLabel is underneath the visible one.

That will do it.  If the JLabel is obscured, the cursor will not work.

-- 
Regards,

John McGrath [TeamB]

---------------------------------------------------
Before sending me e-mail, please read:
    http://www.JPMcGrath.net/newsgroups/e-mail.html
Technical Details
Message-ID: <406366a8$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
References: <4061f46f@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,5588570eabbf8052
X-Google-Attributes: gid111d45,public
X-Google-ArrivalTime: 2004-03-25 15:27:01 PST
From: "John McGrath  [TeamB]" <ng-b@JPMcGrath.net>
Subject: Re: How do I get at the root pane of JApplet and it's members?
Newsgroups: borland.public.jbuilder.java.swing
References: <4061f46f@newsgroups.borland.com>
User-Agent: XanaNews/1.16.1.11
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-15
NNTP-Posting-Host: 151.197.242.55
Message-ID: <406366a8$1@newsgroups.borland.com>
Date: 25 Mar 2004 15:09:28 -0800
X-Trace: newsgroups.borland.com 1080256168 151.197.242.55 (25 Mar 2004 15:09:28 -0800)
Lines: 29
X-Authenticated-User: jpmcgrath
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