🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Jtoolbar, always on top

#11405
From: Gavster McRavster
Date: Tue, 08 Jun 1999 00:00
36 lines
2215 bytes
with a normal Frame, you simply add components directly to the frame
in a swing JFrame, a root pane is instantiated by the JFrame. the root pane
itself has several children where your gui components will go. these are
glass pane, layered pane, menu and content pane - i think
the whole point being z-order of display..
using getGlassPane() and setVisible on this child will put a transparent
pane on top of everything else with the components you add to it made
visible - ie your toolbar - which i think do not necessarily need to be
within the frame - anywhere i the viewable area. so this is, (as i think
about) it more an ideal solution to the problem

or simply use javax.swing.JToolbar!
i would recommend the new book by mary campione swing to you or "jfc
unleashed" by foley
gm

wired <wiredhands@hotmail.com> wrote in message
news:375CEFD1.6734E454@hotmail.com...
> Just what is a glasspane ( I've only done java for about 2 month's so )
>
> what i have done so far is :
> Made a frame with a jpanel
> added the toolbar to the jpanel, is that the same as adding it to a
> glasspane ( or am I moving the wrong way here ).
>
> Gavster McRavster wrote:
>
> > at a  guess... add it to the glasspane?
> >
> > wired <wiredhands@hotmail.com> wrote in message
> > news:375CDDAD.BE68AD50@hotmail.com...
> > > How do i make a floating Jtoolbar stay on top off the main frame ?
> > >
> > > RP
> > >
>
Technical Details
Message-ID: <928856320.11666.0.nnrp-01.c1c3e175@news.demon.co.uk>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <375CDDAD.BE68AD50@hotmail.com> <928834275.2580.0.nnrp-01.c1c3e175@news.demon.co.uk> <375CEFD1.6734E454@hotmail.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,71c0ccbc0d3802a2
X-Google-Attributes: gid111d45,public
From: "Gavster McRavster" <gavinc@demon.net>
Subject: Re: Jtoolbar, always on top
Date: 1999/06/08
Message-ID: <928856320.11666.0.nnrp-01.c1c3e175@news.demon.co.uk>
X-Deja-AN: 487108895
X-NNTP-Posting-Host: gavinc.eng.demon.net:193.195.225.117
References: <375CDDAD.BE68AD50@hotmail.com> <928834275.2580.0.nnrp-01.c1c3e175@news.demon.co.uk> <375CEFD1.6734E454@hotmail.com>
X-Priority: 3
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
X-Complaints-To: abuse@demon.net
X-Trace: news.demon.co.uk 928856320 nnrp-01:11666 NO-IDENT gavinc.eng.demon.net:193.195.225.117
X-MSMail-Priority: Normal
Newsgroups: borland.public.jbuilder.java.swing