Article View: borland.public.jbuilder.java.swing
Article #448Re: Design window turning red
From: Magnus
Date: Tue, 24 May 2005 13:30
Date: Tue, 24 May 2005 13:30
81 lines
4196 bytes
4196 bytes
Thanks you! I did have a problem with a customized tree that was built with values from a DB. I solved it with an "empty" constructor call in jbInit and then build the tree on another trigger. I also realized that if fields in jbInit are placed in proper order (i.e. red beans in the end) the rest of the fields are looking fine. Now, after I fixed the tree-red bean, I ended up in another "issue". It is not a problem but is as follow: - I have my custom tree in its own panel as part of a lot of other fields and graphs etc. - My listener for the tree gives me what I need but to be able to update the fields outside the tree panel I have to make all of them static. - Now I have all fields show up as red beans and all panels and everything is marked static. Question: Is there a way to go from a static environment to a non-static environment. Can I place the tree-listener outside its own object and then trigger everything within the "main" panel. memyselfandI wrote: > Ah Yes Indeed, the dreaded red beans issue. > > The GUI designer is a very nice tool, but this read beans issue is one of the most often complained about issues in the newsgroups. > > The big problem is that the designer does not produce intellegent error messages to help you determine what is occurring for you to correct. > > What you can do to figure out wat is going on is: > 1. comment out most of the initialization in jbinit > 2. comment all of your own methods > 3. launch the designer > > At this point, unless something is very wacky, the designer should now work again. > > Now, uncomment a bit at a time in the jbinit, each time go back to the designer. > > If you get everything uncommented again in jbinit, then the issue is in one of your methods. Un-comment each method, one at a time. > > It is painful but doing this has always solved the problem for me. > > "Paul Furbacher [TeamB]" <pfurbacher@mac.com> wrote: > >>Magnus wrote: >> >> >>>I have developed a test program to work with JTree. [...] >>> >>>All by a sudden, while swapping between Source and Design tabs - the >>>design window turns red and I get the following message: >>> >>>Failed to create live value from JPanel contentPane;: null >>>Failed to create live visual subcomponent contentPane (Bord [...] >> >>>I have no idea what to change or even where to look for an error. [...] >> >>The <jbuilder install dir>/setup/release_notes.html file >>is a good place to start; see the "Designer" section. >> >>Also, this subject has come up often and is well >>documented in the archives. Try the keywords >>"Failed to create live value" or "red bean". >> >> >>-- >> >> >>Paul Furbacher (TeamB) >> >> Save time, search the archives: >> http://www.borland.com/newsgroups/ngsearch.html >> >> Is it in Joi Ellis's Faq-O-Matic? >> http://www.visi.com/~gyles19/fom-serve/cache/1.html >> >> Finally, please send responses to the newsgroup only. >> That means, do not send email directly to me. >> Thank you. > >
Technical Details
Message-ID:
<42932c57@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news2.google.com!news.maxwell.syr.edu!news.moat.net!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<42762745@newsgroups.borland.com> <42769338$1@newsgroups.borland.com> <4292a4e3@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 111d45,bddfb924687a12a0 X-Google-Attributes: gid111d45,public X-Google-Language: ENGLISH,ASCII-7-bit Date: Tue, 24 May 2005 09:30:06 -0400 From: Magnus <magnus_bjorkman@iwon.com> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.2) Gecko/20040804 Netscape/7.2 (ax) X-Accept-Language: en-us, en, sv MIME-Version: 1.0 Newsgroups: borland.public.jbuilder.java.swing Subject: Re: Design window turning red References: <42762745@newsgroups.borland.com> <42769338$1@newsgroups.borland.com> <4292a4e3@newsgroups.borland.com> In-Reply-To: <4292a4e3@newsgroups.borland.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 71.0.99.227 Message-ID: <42932c57@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1116941399 71.0.99.227 (24 May 2005 06:29:59 -0700) Lines: 81 Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news2.google.com!news.maxwell.syr.edu!news.moat.net!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail