Re: problem with multiple internal frames for drawing different graphs
- From: gbgkille69@xxxxxxxx
- Date: 31 Oct 2005 10:20:24 -0800
Andrew Thompson skrev:
> gbgkille69@xxxxxxxx wrote:
>
>
> > tp.add(this, new org.netbeans.lib.awtextra.AbsoluteConstraints(x,
> > y, globals.smallFrameX, globals.smallFrameY ) );
> ...
> > Now when I run the code it will produce 2 windows (internal frames as
> > expected) but both will have the same content "AAAA". What did I do
> > wrong.
>
> It probably has something to do with that netbeans layout,
> but I doubt you will find much help with your IDE here.
>
> Try learning and using the Sun core layouts, and if you
> have problems, I am sure someone here will be able to
> help you.
>
> A tip for when posting code as well. Your layout problem had
> little or nothing to do with Graphs, especially if you can
> replace those graphs with JLables and get the same effect.
>
> If you prepare an SSCCE*, it helps you track down exactly
> which parts of code are relevant to a problem.
> * <http://www.physci.org/codes/sscce.jsp>
Thanks I don't think it is a layout problem, I've the same effect when
using flowlayout and/or null layout. I used the abstract layout as this
is the simplest and best looking layout for my needs within Netbeans.
My actual application is much bigger and does draw graphs. but to keep
it simple here i removed everything except a drawstring line.
.
- References:
- problem with multiple internal frames for drawing different graphs
- From: gbgkille69
- problem with multiple internal frames for drawing different graphs
- Prev by Date: Re: How to access text file?
- Next by Date: Re: How to access text file?
- Previous by thread: problem with multiple internal frames for drawing different graphs
- Next by thread: weird applet-display problem..
- Index(es):
Relevant Pages
|