I still can't get preview project to display any content.

In OTrunkCurnit.java I have tried calling

        otViewerHelper.loadOTrunk(otDb, pasProject.getProjectFrame());

and also subsequently tried

        otViewerHelper.loadOTrunk(otDb, pasProject.getProjectFrame
().getContentPane());

and then tried calling

        pasProject.getProjectFrame().setVisible(true);
        pasProject.getProjectFrame().getContentPane().setVisible(true);

Then when I click on the preview button and this code above runs, a new
window opens up that is meant to display the project but nothing shows up in
the window. The top of the window does display the title of the project so I
know that data from the project is successfully accessed (at least for the
title).

I have even tried to add components to the content pane but the window is
still blank.

Does anyone have any idea why nothing is being displayed except the title of
the project.

Thanks,
Geoff

On Fri, Mar 21, 2008 at 11:25 AM, Geoffrey Kwan <[EMAIL PROTECTED]>
wrote:

> This below causes a ClassCastException (java.lang.ClassCastException:
> org.telscenter.pas.beans.PasProject). Is there another way to obtain the
> component from the rootBean?
>
> (BeanContextChildComponentProxy) rootBean
>
>
>
> Even when I try this below for the sake of seeing if passing the
> contentPane will work, nothing happens. I step through loadOTrunk and
> nothing wrong seems to happen, at least to my limited knowledge of OTrunk.
> There are no exceptions or stack traces.
>
>         PasProject pasProject = (PasProject) rootBean;
>         otViewerHelper.loadOTrunk(otDb, pasProject.getProjectFrame
> ().getContentPane());
>
> -Geoff
>
>
> On Thu, Mar 20, 2008 at 7:24 PM, Anthony Perritano <[EMAIL PROTECTED]>
> wrote:
>
> > thinking about this. we dont want to have the pasproject import in this
> > class. this is sail-otrunk.
> > you can get the component of the rootbean with the bean context. Maybe
> > the loadOtrunk doesn't like frames. try getting the child of the frame which
> > the is the contentPane. is there any stack trace? can you investigate a
> > little further, step into loadOtrunk?
> >
> > ((JFrame)((BeanContextChildComponentProxy)rootBean
> > ).getComponent()).getContentPane();
> >
> >  -Tony
> >
> >
> >
> > On Mar 20, 2008, at 4:08 PM, Geoffrey Kwan wrote:
> >
> > We have set up our authoring tool with a preview button and when the
> > preview button is clicked, this function below gets called. The loadOTrunk()
> > function gets called but nothing happens. Am I doing something wrong?
> >
> >
> >     public void previewCurnit() throws Exception {
> >         if( otDb == null)
> >             throw new Exception("Curnit has not been initialized");
> >
> >         otControllerService.saveRealObject(rootBean, otrunkRoot);
> >
> >
> >         PasProject pasProject = (PasProject) rootBean;
> >         otViewerHelper.loadOTrunk(otDb, pasProject.getProjectFrame());
> > //this getProjectFrame() is a JFrame
> >     }
> >
> >
> > Thanks,
> > Geoff
> >
> >
> >
> >
> >
> > > >
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"SAIL-Dev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/SAIL-Dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to