BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Designer Creates Featureless Gray Box for Preexisting Compou

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> JBuilder IDE
View previous topic :: View next topic  
Author Message
P.Michael Hutchins
Guest





PostPosted: Fri Feb 03, 2006 2:38 am    Post subject: Designer Creates Featureless Gray Box for Preexisting Compou Reply with quote



I'm trying to edit a graphical component that I designed in JBuilder a while ago ('05? X? ...)

After getting past the "red bean" stage, what I get now is a featureless gray rectangle with all my components seemingly (bec. invisibly) with random sizes and locations.

(Yet when run, the component looks great.)

What I've been able to come up with that it seems might be related incluldes:
o I used <null> for the LayoutManager (instead of XYLayout),
since people get tired of having to include JBuilder classes
in our builds.
o I used TitledBorder, & the '06 Designer seems to not like
them.
(At first, I thought it just lost them in transition, but I
discovered that it won't let me assign them to a container
(even though it does know about them and list them as
choices for Border).

Ack! any ideas?


Thanks,

-- M.
Back to top
P.Michael Hutchins
Guest





PostPosted: Fri Feb 03, 2006 3:16 am    Post subject: Re: Designer Creates Featureless Gray Box for Preexisting Co Reply with quote



"P.Michael Hutchins" <pmh (AT) draper (DOT) com> wrote:
Quote:

I'm trying to edit a graphical component that I designed in JBuilder a while ago ('05? X? ...)

After getting past the "red bean" stage, what I get now is a featureless gray rectangle with all my components seemingly (bec. invisibly) with random sizes and locations.

(Yet when run, the component looks great.)

What I've been able to come up with that it seems might be related incluldes:
o I used <null> for the LayoutManager (instead of XYLayout),
since people get tired of having to include JBuilder classes
in our builds.
o I used TitledBorder, & the '06 Designer seems to not like
them.
(At first, I thought it just lost them in transition, but I
discovered that it won't let me assign them to a container
(even though it does know about them and list them as
choices for Border).

Ack! any ideas?


Thanks,

-- M.

Reading through other posts on Designer, I found:

If you run JBuilder instead of JBuilderw, you get to see the console log..
...which might tell you ueful things that JBw doesn't [bother to]

....eg:
getLiveInstance(): no interpreter value for
String selectedIPTypeOperatorIdentifier =
(String)(String)infoProductTypesJComboBox.getSelectedItem()

(Who knew it would have trouble with ... what? casts?)

Moving that into an if (!Beans.isDesignTime()) {} block finally gave me a visual designer I can work with!

- - - -

so hey! is there some way I can learn ~power user~ stuff like this w/o reading all the JB doc. or x similar?


Thanks,

-- M.
Back to top
Gillmer J. Derge [TeamB]
Guest





PostPosted: Fri Feb 03, 2006 4:50 am    Post subject: Re: Designer Creates Featureless Gray Box for Preexisting Co Reply with quote



P.Michael Hutchins wrote:
Quote:
getLiveInstance(): no interpreter value for
String selectedIPTypeOperatorIdentifier =
(String)(String)infoProductTypesJComboBox.getSelectedItem()

(Who knew it would have trouble with ... what? casts?)

I doubt it's casts in general. There's probably something else about
this line that's a problem.

One thing that comes to mind is you've got two casts in a row there.
First you cast from Object to String, then you cast again, this time
from String to String. That's not illegal, but it's certainly unusual,
so I wouldn't be surprised if the designer's parser is confused by it.
Maybe try removing the second, unnecessary cast.

Other possibilities are that infoProductTypesJComboBox could be null
here for some reason. Or maybe the getSelectedItem method is throwing
an exception.

--
Gillmer J. Derge [TeamB]
Back to top
P.Michael Hutchins
Guest





PostPosted: Mon Feb 06, 2006 10:03 pm    Post subject: Re: Designer Creates Featureless Gray Box for Preexisting Co Reply with quote

"Gillmer J. Derge [TeamB]" <spam (AT) gillmerderge (DOT) com> wrote:
Quote:
P.Michael Hutchins wrote:
getLiveInstance(): no interpreter value for
String selectedIPTypeOperatorIdentifier =
(String)(String)infoProductTypesJComboBox.getSelectedItem()

(Who knew it would have trouble with ... what? casts?)

I doubt it's casts in general. There's probably something else about
this line that's a problem.

One thing that comes to mind is you've got two casts in a row there.
First you cast from Object to String, then you cast again, this time
from String to String. That's not illegal, but it's certainly unusual,
so I wouldn't be surprised if the designer's parser is confused by it.
Maybe try removing the second, unnecessary cast.

Other possibilities are that infoProductTypesJComboBox could be null
here for some reason. Or maybe the getSelectedItem method is throwing
an exception.

--
Gillmer J. Derge [TeamB]

just to be clear, the line of code that I provided was:
a) from the Command Prompt window - and JBuilder's logging
b) not *my* code; mine doesn't have a double cast (a fact I thought you all - or even Borland) might find interesting); mine is:
String selectedIPTypeOperatorIdentifier = (String) infoProductTypesJComboBox.getSelectedItem();
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> JBuilder IDE All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.