Results 1 to 5 of 5

Thread: Views as JInternalFrame

  1. #1
    Join Date
    Apr 2006
    Location
    Joinville, Brazil
    Posts
    12

    Default Views as JInternalFrame

    Hi!

    A recent change (revision 1304, by peterdb) in the RCP made my application stop showing my views as JInternalFrames.

    Can anybody show me how is the correct way to declare in my context that all my views should open as JInternalFrames?

    I was declaring this in the context:

    <bean id="applicationWindowPrototype" class="org.springframework.richclient.application. mdi.DesktopApplicationWindow"
    singleton="false" />

    But now the DesktopApplicationWindow does not exist.

    Thanks!

  2. #2
    Join Date
    Jan 2006
    Location
    Vilnius, Lithuania
    Posts
    68

    Default

    Some refactored code has been commited yesterday that cause your issue.
    Check out this thread, it will give you hints on how to fix this:

    http://thread.gmane.org/gmane.comp.j...235/focus=3298

  3. #3
    Join Date
    Sep 2004
    Location
    Ghent, Belgium
    Posts
    224

    Default

    Do the following in your application context file:

    Code:
        <bean id="applicationServices"
            class="org.springframework.richclient.application.support.DefaultApplicationServices">
            ...
            <property name="applicationPageFactory"><bean class="org.springframework.richclient.application.mdi.DesktopApplicationPageFactory" /></property>
        </bean>
    The DesktopApplicationWindow only served as a factory for the DesktopApplicationPage, and it has been replaced by the applicationPageFactory.

    Hope this helps,

    Peter

  4. #4
    Join Date
    Apr 2006
    Location
    Joinville, Brazil
    Posts
    12

    Default Worked

    I was off for a while and only now I had the time to test this.

    It worked!

    Thanks Peter!

  5. #5
    Join Date
    Aug 2005
    Location
    London (the English one!)
    Posts
    378

    Default

    Hi *,

    I have a peripheral question... Using internal frames, how do you get or build the usual menu Window which list the internal frames that have been created (minimised/overlapped etc) so the user can switch (i.e. bring to front) the one they want?

    At the moment, by default, it lists all VIEWS (created or not).

    Is there such a mechanism?

    thanks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •