Article View: borland.public.jbuilder.java.swing
Article #11321Re: Jtoolbar, always on top
From: wired
Date: Wed, 09 Jun 1999 00:00
Date: Wed, 09 Jun 1999 00:00
46 lines
2510 bytes
2510 bytes
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:
<375E717C.34245996@hotmail.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<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>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,71c0ccbc0d3802a2 X-Google-Attributes: gid111d45,public From: wired <wiredhands@hotmail.com> Subject: Re: Jtoolbar, always on top Date: 1999/06/09 Message-ID: <375E717C.34245996@hotmail.com> X-Deja-AN: 487495662 Content-Transfer-Encoding: 7bit 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> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii Organization: Customer at Tele Danmark Erhverv Mime-Version: 1.0 Newsgroups: borland.public.jbuilder.java.swing