Re: problem with multiple internal frames for drawing different graphs




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.

.



Relevant Pages

  • Re: TIP #172: Improve UNIX Tk Look and Feel
    ... >> figure out the subtlties of widget layout for every app I wrote. ... What sort of problems did you observe? ... > speaking, there's almost no layout problem you can't solve with them, ...
    (comp.lang.tcl)
  • Re: TIP #172: Improve UNIX Tk Look and Feel
    ... > figure out the subtlties of widget layout for every app I wrote. ... > when I moved from, say, Linux to Windows, the layout for one did not ... speaking, there's almost no layout problem you can't solve with them, ...
    (comp.lang.tcl)
  • Re: Is Ruby good at GUI develop?
    ... I _am_ using monkeybars (and therefore NetBeans) to create my GUI. ... and you can set the new layout). ... JRuby project, where you can freely dance between JRuby and Java. ...
    (comp.lang.ruby)
  • yFiles 2.4 Graph Library released
    ... layout, and visualization of diagrams, networks, and graphs. ... * New directed orthogonal layout algorithm that features advanced UML-style ...
    (comp.lang.java.announce)
  • Re: gui builder
    ... emekadavid wrote: ... from what I have heard Netbeans is the state of the art. ... netbeans uses a layout that's confusing. ... documentation if i can customise the default layout manager for the ...
    (comp.lang.java.programmer)