🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Jtoolbar, always on top

#11326
From: Gavster McRavster
Date: Thu, 10 Jun 1999 00:00
56 lines
3048 bytes
all i can suggest is that you publish this section of code to the newsgroup
and i guess somebody would be able to see if something looked incorrect -
its up to you!!
wired <wiredhands@hotmail.com> wrote in message
news:375E717C.34245996@hotmail.com...
> Well, I can't make this work. At least not right now. But now everything
is
> swing components (JFrame, JPanel, JToolbar etc..)
> When i use the glasspane my toolbar becomes invisible, and if I make it
visible
> it stil doesn't stay in front. Same happens if i make the
> glasspane visible.
>
> RP
>
> Gavster McRavster wrote:
>
> > 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: <929006254.19952.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> <928856320.11666.0.nnrp-01.c1c3e175@news.demon.co.uk> <375E717C.34245996@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/10
Message-ID: <929006254.19952.0.nnrp-01.c1c3e175@news.demon.co.uk>
X-Deja-AN: 487842229
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> <928856320.11666.0.nnrp-01.c1c3e175@news.demon.co.uk> <375E717C.34245996@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 929006254 nnrp-01:19952 NO-IDENT gavinc.eng.demon.net:193.195.225.117
X-MSMail-Priority: Normal
Newsgroups: borland.public.jbuilder.java.swing