Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.gui > #3215
| From | "Hal Vaughan" <hal.vaughan@THRWHITE.remove-dii-this> |
|---|---|
| Subject | Duplicating and Swapping |
| Message-ID | <1LXwj.4647$R_5.3403@trnddc08> (permalink) |
| Newsgroups | comp.lang.java.gui |
| Date | 2011-04-27 15:43 +0000 |
| Organization | TDS.net |
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
Back to comp.lang.java.gui | Previous | Next — Next in thread | Find similar | Unroll thread
Duplicating and Swapping "Hal Vaughan" <hal.vaughan@THRWHITE.remove-dii-this> - 2011-04-27 15:43 +0000
Re: Duplicating and Swapp "Daniel Pitts" <daniel.pitts@THRWHITE.remove-dii-this> - 2011-04-27 15:43 +0000
Re: Duplicating and Swapp "Hal Vaughan" <hal.vaughan@THRWHITE.remove-dii-this> - 2011-04-27 15:43 +0000
Re: Duplicating and Swapp "Roedy Green" <roedy.green@THRWHITE.remove-dii-this> - 2011-04-27 15:43 +0000
csiph-web