Re: Using two JFrames with one always mimicking the other
- From: Andrew Thompson <andrewthommo@xxxxxxxxx>
- Date: Tue, 27 May 2008 06:06:28 -0700 (PDT)
On May 27, 10:36 pm, cokofree...@xxxxxxxxx wrote:
On May 27, 2:27 pm, Andrew Thompson <andrewtho...@xxxxxxxxx> wrote:
On May 27, 10:01 pm, cokofree...@xxxxxxxxx wrote:
...
I have a Main Frame and a Log Frame.
Why? Or rather, why not put the relevant
components from both, into a single frame?
(Please trim sigs from replies.)
Well, I'm not exactly sure why...Because it seemed the easier method?
Uh-huhh. It seems, even from your question, that
this approach might have it's pitfalls.
The idea is that the Log Frame will be receiving constant log
information from a wide selection of classes, but I would be wanting
to do constant actions in the Main Frame and so don't want it locking
up while it outputs the messages.
Multi-threading should solve that (and is
the best solution to it).
As far as putting all the components into a
single frame, you might look to using a JSplitPane,
which can be anything from 'half and half' of the
content area devoted to the groups of components,
or the user (or application) reassigning space to
one or the other as needs dictate.
OTOH there are a number of other possible layouts
that might better suit these collection of
components.
But I suggest you abandon the 'twin frames'
approach, it seems like a non optimal strategy,
to me.
--
Andrew T.
PhySci.org
.
- References:
- Using two JFrames with one always mimicking the other
- From: cokofreedom
- Re: Using two JFrames with one always mimicking the other
- From: Andrew Thompson
- Re: Using two JFrames with one always mimicking the other
- From: cokofreedom
- Using two JFrames with one always mimicking the other
- Prev by Date: Re: Using two JFrames with one always mimicking the other
- Next by Date: Re: Using two JFrames with one always mimicking the other
- Previous by thread: Re: Using two JFrames with one always mimicking the other
- Next by thread: Re: Using two JFrames with one always mimicking the other
- Index(es):