Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.gui > #1133 > unrolled thread

a naive question

Started by"gg" <gg@THRWHITE.remove-dii-this>
First post2011-04-27 15:31 +0000
Last post2011-04-27 15:31 +0000
Articles 3 — 2 participants

Back to article view | Back to comp.lang.java.gui


Contents

  a naive question "gg" <gg@THRWHITE.remove-dii-this> - 2011-04-27 15:31 +0000
    Re: a naive question "tar" <tar@THRWHITE.remove-dii-this> - 2011-04-27 15:31 +0000
      Re: a naive question "gg" <gg@THRWHITE.remove-dii-this> - 2011-04-27 15:31 +0000

#1133 — a naive question

From"gg" <gg@THRWHITE.remove-dii-this>
Date2011-04-27 15:31 +0000
Subjecta naive question
Message-ID<yIhHh.25404$cE3.12842@edtnps89>
  To: comp.lang.java.gui
due my naivety, using JDK 1.5.1 and netbean IDE 5.5, I created 3 files, 1
main, 2 jframes: JFA, and JFB.

Normally the main opens JFA. which just works like a charm.  JFB is similar
to JFA,

I coded the main to accept an argument on command line to open JFB with the
similar code to JFA.

However, I could not show JFB from main; I run afoul of layout more than
once

In JFA, I tried using button to place JFB in a jdialog, again I run into the
layout problem.

even new JFB().setVisible(true);
still gave me trouble

what should I really do instead?  I tried looking for info on the layer
contentpane. So far I have yet to find anything concrete I can use

---
 * 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

[toc] | [next] | [standalone]


#1135

From"tar" <tar@THRWHITE.remove-dii-this>
Date2011-04-27 15:31 +0000
Message-ID<ymiabyq5jrc.fsf@sevak.isi.edu>
In reply to#1133
  To: comp.lang.java.gui
"gg" <gg@Edm.noMail.net> writes:

> due my naivety, using JDK 1.5.1 and netbean IDE 5.5, I created 3 files, 1
> main, 2 jframes: JFA, and JFB.
> 
> Normally the main opens JFA. which just works like a charm.  JFB is similar
> to JFA,
> 
> I coded the main to accept an argument on command line to open JFB with the
> similar code to JFA.
> 
> However, I could not show JFB from main; I run afoul of layout more than
> once
> 
> In JFA, I tried using button to place JFB in a jdialog, again I run into the
> layout problem.
> 
> even new JFB().setVisible(true);
> still gave me trouble
> 
> what should I really do instead?  I tried looking for info on the layer
> contentpane. So far I have yet to find anything concrete I can use

Well, you could do one of the following:

*  Figure out in what ways JFA and JFB are different and go from there.

*  Find a psychic who can figure out the problem for you.

*  Post a runnable example here so the non-psychics have a chance to comment.


-- 
Thomas A. Russ,  USC/Information Sciences Institute

---
 * 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

[toc] | [prev] | [next] | [standalone]


#1146

From"gg" <gg@THRWHITE.remove-dii-this>
Date2011-04-27 15:31 +0000
Message-ID<hhOHh.25097$lY6.5902@edtnps90>
In reply to#1135
  To: comp.lang.java.gui
It must be the forced inherited class of JFB that cause me trouble

initially JFB was just extend jPanel.  I forced it into jFrame.

when I tried duplicate problem with simplified jFrames, I did not get any
problem.


so thanks for the hint.

"Thomas A. Russ" <tar@sevak.isi.edu> wrote in message
news:ymiabyq5jrc.fsf@sevak.isi.edu...
> "gg" <gg@Edm.noMail.net> writes:
>
> > due my naivety, using JDK 1.5.1 and netbean IDE 5.5, I created 3 files,
1
> > main, 2 jframes: JFA, and JFB.
> >
> > Normally the main opens JFA. which just works like a charm.  JFB is
similar
> > to JFA,
> >
> > I coded the main to accept an argument on command line to open JFB with
the
> > similar code to JFA.
> >
> > However, I could not show JFB from main; I run afoul of layout more than
> > once
> >
> > In JFA, I tried using button to place JFB in a jdialog, again I run into
the
> > layout problem.
> >
> > even new JFB().setVisible(true);
> > still gave me trouble
> >
> > what should I really do instead?  I tried looking for info on the layer
> > contentpane. So far I have yet to find anything concrete I can use
>
> Well, you could do one of the following:
>
> *  Figure out in what ways JFA and JFB are different and go from there.
>
> *  Find a psychic who can figure out the problem for you.
>
> *  Post a runnable example here so the non-psychics have a chance to
comment.
>
>
> -- 
> Thomas A. Russ,  USC/Information Sciences Institute
>
>
>
>
>
>
>
>
>
>
>
>

---
 * 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

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.java.gui


csiph-web