You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pivot.apache.org by "Bojan Vucinic (JIRA)" <ji...@apache.org> on 2011/01/30 15:22:47 UTC

[jira] Created: (PIVOT-700) SplashScreen control

SplashScreen control
--------------------

                 Key: PIVOT-700
                 URL: https://issues.apache.org/jira/browse/PIVOT-700
             Project: Pivot
          Issue Type: New Feature
    Affects Versions: 2.0
            Reporter: Bojan Vucinic


I've tried to get hold of the SplashScreen that I've defined in my manifest.mf file:

>Manifest-Version: 1.0
>X-COMMENT: Main-Class will be added automatically by build
>SplashScreen-Image: com/macad/enbal/resources/welcome.jpg

But once the DesktopApplicationContext takes over, it is impossible to get the SplashScreen (null pointer exception is thrown).

Could you extend the API so that we can show the SplashScreen, and close it once all the init actions have been finished just before we open the application window as the nameless gray pivot window is displayed quite a long time.


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] [Updated] (PIVOT-700) SplashScreen control

Posted by "Sandro Martini (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PIVOT-700?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sandro Martini updated PIVOT-700:
---------------------------------

    Fix Version/s: 2.1

> SplashScreen control
> --------------------
>
>                 Key: PIVOT-700
>                 URL: https://issues.apache.org/jira/browse/PIVOT-700
>             Project: Pivot
>          Issue Type: New Feature
>    Affects Versions: 2.0
>            Reporter: Bojan Vucinic
>             Fix For: 2.1
>
>
> I've tried to get hold of the SplashScreen that I've defined in my manifest.mf file:
> >Manifest-Version: 1.0
> >X-COMMENT: Main-Class will be added automatically by build
> >SplashScreen-Image: com/macad/enbal/resources/welcome.jpg
> But once the DesktopApplicationContext takes over, it is impossible to get the SplashScreen (null pointer exception is thrown).
> Could you extend the API so that we can show the SplashScreen, and close it once all the init actions have been finished just before we open the application window as the nameless gray pivot window is displayed quite a long time.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (PIVOT-700) SplashScreen control

Posted by "Chris Bartlett (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PIVOT-700?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Chris Bartlett updated PIVOT-700:
---------------------------------

    Attachment: splash_screen.patch

Patch as described in previous comment

> SplashScreen control
> --------------------
>
>                 Key: PIVOT-700
>                 URL: https://issues.apache.org/jira/browse/PIVOT-700
>             Project: Pivot
>          Issue Type: New Feature
>    Affects Versions: 2.0
>            Reporter: Bojan Vucinic
>             Fix For: 2.1
>
>         Attachments: splash_screen.patch
>
>
> I've tried to get hold of the SplashScreen that I've defined in my manifest.mf file:
> >Manifest-Version: 1.0
> >X-COMMENT: Main-Class will be added automatically by build
> >SplashScreen-Image: com/macad/enbal/resources/welcome.jpg
> But once the DesktopApplicationContext takes over, it is impossible to get the SplashScreen (null pointer exception is thrown).
> Could you extend the API so that we can show the SplashScreen, and close it once all the init actions have been finished just before we open the application window as the nameless gray pivot window is displayed quite a long time.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Resolved] (PIVOT-700) SplashScreen control

Posted by "Sandro Martini (Resolved) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PIVOT-700?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sandro Martini resolved PIVOT-700.
----------------------------------

    Resolution: Fixed

Resolved, in case of problems be free to reopen the issue.

                
> SplashScreen control
> --------------------
>
>                 Key: PIVOT-700
>                 URL: https://issues.apache.org/jira/browse/PIVOT-700
>             Project: Pivot
>          Issue Type: New Feature
>    Affects Versions: 2.0
>            Reporter: Bojan Vucinic
>            Assignee: Chris Bartlett
>            Priority: Minor
>             Fix For: 2.0.1
>
>         Attachments: SplashScreenTest.launch, SplashScreenTest.zip, splash_screen.patch
>
>
> I've tried to get hold of the SplashScreen that I've defined in my manifest.mf file:
> >Manifest-Version: 1.0
> >X-COMMENT: Main-Class will be added automatically by build
> >SplashScreen-Image: com/macad/enbal/resources/welcome.jpg
> But once the DesktopApplicationContext takes over, it is impossible to get the SplashScreen (null pointer exception is thrown).
> Could you extend the API so that we can show the SplashScreen, and close it once all the init actions have been finished just before we open the application window as the nameless gray pivot window is displayed quite a long time.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (PIVOT-700) SplashScreen control

Posted by "Chris Bartlett (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PIVOT-700?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Chris Bartlett updated PIVOT-700:
---------------------------------

    Attachment: SplashScreenTest.zip

Test application to go with the most recent patch

> SplashScreen control
> --------------------
>
>                 Key: PIVOT-700
>                 URL: https://issues.apache.org/jira/browse/PIVOT-700
>             Project: Pivot
>          Issue Type: New Feature
>    Affects Versions: 2.0
>            Reporter: Bojan Vucinic
>             Fix For: 2.1
>
>         Attachments: SplashScreenTest.zip, splash_screen.patch, splash_screen.patch
>
>
> I've tried to get hold of the SplashScreen that I've defined in my manifest.mf file:
> >Manifest-Version: 1.0
> >X-COMMENT: Main-Class will be added automatically by build
> >SplashScreen-Image: com/macad/enbal/resources/welcome.jpg
> But once the DesktopApplicationContext takes over, it is impossible to get the SplashScreen (null pointer exception is thrown).
> Could you extend the API so that we can show the SplashScreen, and close it once all the init actions have been finished just before we open the application window as the nameless gray pivot window is displayed quite a long time.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (PIVOT-700) SplashScreen control

Posted by "Chris Bartlett (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PIVOT-700?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Chris Bartlett updated PIVOT-700:
---------------------------------

    Attachment: splash_screen.patch

Updated patch that works with full screen and regular desktop applications

> SplashScreen control
> --------------------
>
>                 Key: PIVOT-700
>                 URL: https://issues.apache.org/jira/browse/PIVOT-700
>             Project: Pivot
>          Issue Type: New Feature
>    Affects Versions: 2.0
>            Reporter: Bojan Vucinic
>             Fix For: 2.1
>
>         Attachments: splash_screen.patch, splash_screen.patch
>
>
> I've tried to get hold of the SplashScreen that I've defined in my manifest.mf file:
> >Manifest-Version: 1.0
> >X-COMMENT: Main-Class will be added automatically by build
> >SplashScreen-Image: com/macad/enbal/resources/welcome.jpg
> But once the DesktopApplicationContext takes over, it is impossible to get the SplashScreen (null pointer exception is thrown).
> Could you extend the API so that we can show the SplashScreen, and close it once all the init actions have been finished just before we open the application window as the nameless gray pivot window is displayed quite a long time.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (PIVOT-700) SplashScreen control

Posted by "Sandro Martini (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PIVOT-700?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sandro Martini updated PIVOT-700:
---------------------------------

    Fix Version/s:     (was: 2.1)
                   2.0.1

The fix from Chris is great, and doesn't require api changes, so moved to 2.0.1 .
In the commit I will change only a little some details.

                
> SplashScreen control
> --------------------
>
>                 Key: PIVOT-700
>                 URL: https://issues.apache.org/jira/browse/PIVOT-700
>             Project: Pivot
>          Issue Type: New Feature
>    Affects Versions: 2.0
>            Reporter: Bojan Vucinic
>            Assignee: Chris Bartlett
>            Priority: Minor
>             Fix For: 2.0.1
>
>         Attachments: SplashScreenTest.zip, splash_screen.patch
>
>
> I've tried to get hold of the SplashScreen that I've defined in my manifest.mf file:
> >Manifest-Version: 1.0
> >X-COMMENT: Main-Class will be added automatically by build
> >SplashScreen-Image: com/macad/enbal/resources/welcome.jpg
> But once the DesktopApplicationContext takes over, it is impossible to get the SplashScreen (null pointer exception is thrown).
> Could you extend the API so that we can show the SplashScreen, and close it once all the init actions have been finished just before we open the application window as the nameless gray pivot window is displayed quite a long time.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (PIVOT-700) SplashScreen control

Posted by "Chris Bartlett (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/PIVOT-700?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13070735#comment-13070735 ] 

Chris Bartlett commented on PIVOT-700:
--------------------------------------

I must have missed this ticket, but recently implemented something similar via a new startup property for DesktopApplicationContext  (--preserveSplashScreen=true)

The host frame will not be made visible if all 3 conditions are met
- the 'preserveSplashScreen' property is set
- its value is 'true'
- java.awt.SplashScreen.getSplashScreen() != null

The host frame can be made visible later using something like ...
// Display from Application#startup(Display, Map<String,String>)
java.awt.Window window = display.getHostWindow();
// Making the host frame visible will close the SplashScreen.
window.setVisible(true);
window.toFront();

See
http://pivot.apache.org/2.0/docs/api/org/apache/pivot/wtk/DesktopApplicationContext.html#setFullScreen(boolean)
http://download.oracle.com/javase/6/docs/api/java/awt/SplashScreen.html#getSplashScreen()


I can submit a patch when I'm back at my dev machine tomorrow.


> SplashScreen control
> --------------------
>
>                 Key: PIVOT-700
>                 URL: https://issues.apache.org/jira/browse/PIVOT-700
>             Project: Pivot
>          Issue Type: New Feature
>    Affects Versions: 2.0
>            Reporter: Bojan Vucinic
>             Fix For: 2.1
>
>
> I've tried to get hold of the SplashScreen that I've defined in my manifest.mf file:
> >Manifest-Version: 1.0
> >X-COMMENT: Main-Class will be added automatically by build
> >SplashScreen-Image: com/macad/enbal/resources/welcome.jpg
> But once the DesktopApplicationContext takes over, it is impossible to get the SplashScreen (null pointer exception is thrown).
> Could you extend the API so that we can show the SplashScreen, and close it once all the init actions have been finished just before we open the application window as the nameless gray pivot window is displayed quite a long time.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (PIVOT-700) SplashScreen control

Posted by "Sandro Martini (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PIVOT-700?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sandro Martini updated PIVOT-700:
---------------------------------

    Comment: was deleted

(was: Assigned to Chris, to not forget this issue.

Verify with others if it's the case to assign to 2.0.2 .
)
    
> SplashScreen control
> --------------------
>
>                 Key: PIVOT-700
>                 URL: https://issues.apache.org/jira/browse/PIVOT-700
>             Project: Pivot
>          Issue Type: New Feature
>    Affects Versions: 2.0
>            Reporter: Bojan Vucinic
>            Assignee: Chris Bartlett
>            Priority: Minor
>             Fix For: 2.1
>
>         Attachments: SplashScreenTest.zip, splash_screen.patch
>
>
> I've tried to get hold of the SplashScreen that I've defined in my manifest.mf file:
> >Manifest-Version: 1.0
> >X-COMMENT: Main-Class will be added automatically by build
> >SplashScreen-Image: com/macad/enbal/resources/welcome.jpg
> But once the DesktopApplicationContext takes over, it is impossible to get the SplashScreen (null pointer exception is thrown).
> Could you extend the API so that we can show the SplashScreen, and close it once all the init actions have been finished just before we open the application window as the nameless gray pivot window is displayed quite a long time.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (PIVOT-700) SplashScreen control

Posted by "Sandro Martini (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PIVOT-700?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sandro Martini updated PIVOT-700:
---------------------------------

    Attachment: SplashScreenTest.launch

Add eclipse launch test file
                
> SplashScreen control
> --------------------
>
>                 Key: PIVOT-700
>                 URL: https://issues.apache.org/jira/browse/PIVOT-700
>             Project: Pivot
>          Issue Type: New Feature
>    Affects Versions: 2.0
>            Reporter: Bojan Vucinic
>            Assignee: Chris Bartlett
>            Priority: Minor
>             Fix For: 2.0.1
>
>         Attachments: SplashScreenTest.launch, SplashScreenTest.zip, splash_screen.patch
>
>
> I've tried to get hold of the SplashScreen that I've defined in my manifest.mf file:
> >Manifest-Version: 1.0
> >X-COMMENT: Main-Class will be added automatically by build
> >SplashScreen-Image: com/macad/enbal/resources/welcome.jpg
> But once the DesktopApplicationContext takes over, it is impossible to get the SplashScreen (null pointer exception is thrown).
> Could you extend the API so that we can show the SplashScreen, and close it once all the init actions have been finished just before we open the application window as the nameless gray pivot window is displayed quite a long time.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (PIVOT-700) SplashScreen control

Posted by "Sandro Martini (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PIVOT-700?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sandro Martini updated PIVOT-700:
---------------------------------

    Priority: Minor  (was: Major)
    Assignee: Chris Bartlett

Assigned to Chris, to not forget this issue.

Verify with others if it's the case to assign to 2.0.2 .


> SplashScreen control
> --------------------
>
>                 Key: PIVOT-700
>                 URL: https://issues.apache.org/jira/browse/PIVOT-700
>             Project: Pivot
>          Issue Type: New Feature
>    Affects Versions: 2.0
>            Reporter: Bojan Vucinic
>            Assignee: Chris Bartlett
>            Priority: Minor
>             Fix For: 2.1
>
>         Attachments: SplashScreenTest.zip, splash_screen.patch, splash_screen.patch
>
>
> I've tried to get hold of the SplashScreen that I've defined in my manifest.mf file:
> >Manifest-Version: 1.0
> >X-COMMENT: Main-Class will be added automatically by build
> >SplashScreen-Image: com/macad/enbal/resources/welcome.jpg
> But once the DesktopApplicationContext takes over, it is impossible to get the SplashScreen (null pointer exception is thrown).
> Could you extend the API so that we can show the SplashScreen, and close it once all the init actions have been finished just before we open the application window as the nameless gray pivot window is displayed quite a long time.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (PIVOT-700) SplashScreen control

Posted by "Chris Bartlett (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/PIVOT-700?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13071659#comment-13071659 ] 

Chris Bartlett commented on PIVOT-700:
--------------------------------------

I do intend to attach a simple test app, but haven't had time yet.

> SplashScreen control
> --------------------
>
>                 Key: PIVOT-700
>                 URL: https://issues.apache.org/jira/browse/PIVOT-700
>             Project: Pivot
>          Issue Type: New Feature
>    Affects Versions: 2.0
>            Reporter: Bojan Vucinic
>             Fix For: 2.1
>
>         Attachments: splash_screen.patch
>
>
> I've tried to get hold of the SplashScreen that I've defined in my manifest.mf file:
> >Manifest-Version: 1.0
> >X-COMMENT: Main-Class will be added automatically by build
> >SplashScreen-Image: com/macad/enbal/resources/welcome.jpg
> But once the DesktopApplicationContext takes over, it is impossible to get the SplashScreen (null pointer exception is thrown).
> Could you extend the API so that we can show the SplashScreen, and close it once all the init actions have been finished just before we open the application window as the nameless gray pivot window is displayed quite a long time.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (PIVOT-700) SplashScreen control

Posted by "Sandro Martini (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/PIVOT-700?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13071398#comment-13071398 ] 

Sandro Martini commented on PIVOT-700:
--------------------------------------

Hi Chris,
the patch to me seem Ok (but I haven't tried with a minimal application).
Only one thing: have you got some time to put under the tests subproject a minimal test, so we can simply (and fast) test now (and re-test later if/when needed) ?

So after this (if there aren't objections) I think it's safe to commit and resolve even in 2.0.1 release.

Bye


> SplashScreen control
> --------------------
>
>                 Key: PIVOT-700
>                 URL: https://issues.apache.org/jira/browse/PIVOT-700
>             Project: Pivot
>          Issue Type: New Feature
>    Affects Versions: 2.0
>            Reporter: Bojan Vucinic
>             Fix For: 2.1
>
>         Attachments: splash_screen.patch
>
>
> I've tried to get hold of the SplashScreen that I've defined in my manifest.mf file:
> >Manifest-Version: 1.0
> >X-COMMENT: Main-Class will be added automatically by build
> >SplashScreen-Image: com/macad/enbal/resources/welcome.jpg
> But once the DesktopApplicationContext takes over, it is impossible to get the SplashScreen (null pointer exception is thrown).
> Could you extend the API so that we can show the SplashScreen, and close it once all the init actions have been finished just before we open the application window as the nameless gray pivot window is displayed quite a long time.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (PIVOT-700) SplashScreen control

Posted by "Chris Bartlett (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PIVOT-700?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Chris Bartlett updated PIVOT-700:
---------------------------------

    Attachment:     (was: splash_screen.patch)

> SplashScreen control
> --------------------
>
>                 Key: PIVOT-700
>                 URL: https://issues.apache.org/jira/browse/PIVOT-700
>             Project: Pivot
>          Issue Type: New Feature
>    Affects Versions: 2.0
>            Reporter: Bojan Vucinic
>            Assignee: Chris Bartlett
>            Priority: Minor
>             Fix For: 2.1
>
>         Attachments: SplashScreenTest.zip, splash_screen.patch
>
>
> I've tried to get hold of the SplashScreen that I've defined in my manifest.mf file:
> >Manifest-Version: 1.0
> >X-COMMENT: Main-Class will be added automatically by build
> >SplashScreen-Image: com/macad/enbal/resources/welcome.jpg
> But once the DesktopApplicationContext takes over, it is impossible to get the SplashScreen (null pointer exception is thrown).
> Could you extend the API so that we can show the SplashScreen, and close it once all the init actions have been finished just before we open the application window as the nameless gray pivot window is displayed quite a long time.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira