Path: csiph.com!x330-a1.tempe.blueboxinc.net!feeder1.hal-mli.net!news.alt.net!news-in-01.newsfeed.easynews.com!easynews.com!easynews!news-out.news.tds.net!newsreading01.news.tds.net!86597e80!not-for-mail From: "Hal Vaughan" Subject: Duplicating and Swapping Message-ID: <1LXwj.4647$R_5.3403@trnddc08> X-Comment-To: comp.lang.java.gui Newsgroups: comp.lang.java.gui Content-Type: text/plain; charset=IBM437 Content-Transfer-Encoding: 8bit X-Gateway: time.synchro.net [Synchronet 3.15a-Win32 NewsLink 1.92] Lines: 23 Date: Wed, 27 Apr 2011 15:43:33 GMT NNTP-Posting-Host: 96.60.20.240 X-Complaints-To: news@tds.net X-Trace: newsreading01.news.tds.net 1303919013 96.60.20.240 (Wed, 27 Apr 2011 10:43:33 CDT) NNTP-Posting-Date: Wed, 27 Apr 2011 10:43:33 CDT Organization: TDS.net Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.gui:3215 To: comp.lang.java.gui I have an unusual situation that would most easily be solved by being able to duplicate a JTextArea in size and position, then to swap between them by making each visible at different times. I know I can duplicate the JTextArea with clone() and I can get the size to make sure they match. If I were working with an absolute layout, I know I could position them both at the same place and switch between them by making one visible while the other isn't. However, I'll be working with other layouts types and I don't have access to the container the first one is in. Is there some fairly easy way I can duplicate the first JTextArea and swap the two in and out without messing up other components or the display? Thanks! Hal --- * Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet! --- Synchronet 3.15a-Win32 NewsLink 1.92 Time Warp of the Future BBS - telnet://time.synchro.net:24