The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
February 2001

Advertisement

Advertisement

This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.

Message:

Can JFrames share components?

Posted by Ray Swartz on February 06, 2001 at 7:56 PM

I want to make a recallable copy of a JFrame. To do this,
I create two JFrames. If I put the same components
(JPanels, JLabels, etc) in both JFrames and setVisible(true)
for both of them, only one of them actually displays the
components. The other has blank spots.

Is there some way, other than duplicating the components,
to have two JFrames share a single component?



Replies:

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us