Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Using Java 6 Splash Screen with RCP
Using Java 6 Splash Screen with RCP [message #523097] Thu, 25 March 2010 04:47 Go to next message
Ken is currently offline KenFriend
Messages: 36
Registered: July 2009
Member
I posted a few days ago my inability to get a splash screen to appear with
rounded edges; either by using a PNG or GIF or using a BMP and specifying a
transparency color for the edges. No one on the group has responded yet, so
I figured I'd try a different approach.

I'm tyring to use the built in Java 6 splash screen:
http://java.sun.com/docs/books/tutorial/uiswing/misc/splashs creen.html This
works quite well and supports PNG files with transparency. I created a
simple RCP application and product and set the VM arguments
to -splash:c:/tmp/splash.png where my test image is. This works great when
running through eclipse IDE, but when I export the product and run it, the
splash screen does not appear.

Does anyone have any pointers on this?

- Ken
Re: Using Java 6 Splash Screen with RCP [message #523325 is a reply to message #523097] Thu, 25 March 2010 22:12 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: rjl.third-monday.com

Well, I've not looked at the Eclipse platform OSGi launching code, but
when I export a (feature-based) product, I see the following in the
configuration/config.ini file:

osgi.splashPath=platform\:/base/plugins/com.<co>.<plugin>

I'm guessing that the OSGi launcher code is looking specifically for a
'splash.bmp' file in the root directory of the plugin specified above.

Just a hunch....

On 03/24/2010 11:47 PM, Kenny Prole wrote:
> I posted a few days ago my inability to get a splash screen to appear
> with rounded edges; either by using a PNG or GIF or using a BMP and
> specifying a transparency color for the edges. No one on the group has
> responded yet, so I figured I'd try a different approach.
>
> I'm tyring to use the built in Java 6 splash screen:
> http://java.sun.com/docs/books/tutorial/uiswing/misc/splashs creen.html
> This works quite well and supports PNG files with transparency. I
> created a simple RCP application and product and set the VM arguments to
> -splash:c:/tmp/splash.png where my test image is. This works great when
> running through eclipse IDE, but when I export the product and run it,
> the splash screen does not appear.
>
> Does anyone have any pointers on this?
>
> - Ken
Re: Using Java 6 Splash Screen with RCP [message #523343 is a reply to message #523325] Fri, 26 March 2010 00:52 Go to previous messageGo to next message
Ken is currently offline KenFriend
Messages: 36
Registered: July 2009
Member
Thanks for your reply. Yes, I think that is the case. It seems the RCP
splash screen has to be splash.bmp and BMP files do not support
transparency. So, I've tried to use the spash framework built into Java 6
without using the RCP based splash screen. Again, seems to work fine when
run through Eclipse IDE, but not with my exported product :-(

Just add -splash:c:/tmp/splash.png (path to some PNG or GIF file) to your VM
argument in Run Configuration or your product launching tab. Try it in
Eclipse, then see if you can get it to work when you export the product.
I've had no luck.

- Ken

"Russ Loucks" <rjl@third-monday.com> wrote in message
news:hogn4p$v98$1@build.eclipse.org...
> Well, I've not looked at the Eclipse platform OSGi launching code, but
> when I export a (feature-based) product, I see the following in the
> configuration/config.ini file:
>
> osgi.splashPath=platform\:/base/plugins/com.<co>.<plugin>
>
> I'm guessing that the OSGi launcher code is looking specifically for a
> 'splash.bmp' file in the root directory of the plugin specified above.
>
> Just a hunch....
>
> On 03/24/2010 11:47 PM, Kenny Prole wrote:
>> I posted a few days ago my inability to get a splash screen to appear
>> with rounded edges; either by using a PNG or GIF or using a BMP and
>> specifying a transparency color for the edges. No one on the group has
>> responded yet, so I figured I'd try a different approach.
>>
>> I'm tyring to use the built in Java 6 splash screen:
>> http://java.sun.com/docs/books/tutorial/uiswing/misc/splashs creen.html
>> This works quite well and supports PNG files with transparency. I
>> created a simple RCP application and product and set the VM arguments to
>> -splash:c:/tmp/splash.png where my test image is. This works great when
>> running through eclipse IDE, but when I export the product and run it,
>> the splash screen does not appear.
>>
>> Does anyone have any pointers on this?
>>
>> - Ken
>
Re: Using Java 6 Splash Screen with RCP [message #525471 is a reply to message #523343] Tue, 06 April 2010 16:31 Go to previous message
Ken is currently offline KenFriend
Messages: 36
Registered: July 2009
Member
Anyone have any suggestions on this?

Thanks,

- Ken

"Kenny Prole" <kennyp@avi.com> wrote in message
news:hoh0gu$p5o$1@build.eclipse.org...
> Thanks for your reply. Yes, I think that is the case. It seems the RCP
> splash screen has to be splash.bmp and BMP files do not support
> transparency. So, I've tried to use the spash framework built into Java 6
> without using the RCP based splash screen. Again, seems to work fine when
> run through Eclipse IDE, but not with my exported product :-(
>
> Just add -splash:c:/tmp/splash.png (path to some PNG or GIF file) to your
> VM argument in Run Configuration or your product launching tab. Try it in
> Eclipse, then see if you can get it to work when you export the product.
> I've had no luck.
>
> - Ken
>
> "Russ Loucks" <rjl@third-monday.com> wrote in message
> news:hogn4p$v98$1@build.eclipse.org...
>> Well, I've not looked at the Eclipse platform OSGi launching code, but
>> when I export a (feature-based) product, I see the following in the
>> configuration/config.ini file:
>>
>> osgi.splashPath=platform\:/base/plugins/com.<co>.<plugin>
>>
>> I'm guessing that the OSGi launcher code is looking specifically for a
>> 'splash.bmp' file in the root directory of the plugin specified above.
>>
>> Just a hunch....
>>
>> On 03/24/2010 11:47 PM, Kenny Prole wrote:
>>> I posted a few days ago my inability to get a splash screen to appear
>>> with rounded edges; either by using a PNG or GIF or using a BMP and
>>> specifying a transparency color for the edges. No one on the group has
>>> responded yet, so I figured I'd try a different approach.
>>>
>>> I'm tyring to use the built in Java 6 splash screen:
>>> http://java.sun.com/docs/books/tutorial/uiswing/misc/splashs creen.html
>>> This works quite well and supports PNG files with transparency. I
>>> created a simple RCP application and product and set the VM arguments to
>>> -splash:c:/tmp/splash.png where my test image is. This works great when
>>> running through eclipse IDE, but when I export the product and run it,
>>> the splash screen does not appear.
>>>
>>> Does anyone have any pointers on this?
>>>
>>> - Ken
>>
>
Previous Topic:How to pass values to Eclipse RCP application
Next Topic:Command Shortcut on Dialog
Goto Forum:
  


Current Time: Sat Apr 27 03:26:05 GMT 2024

Powered by FUDForum. Page generated in 0.03350 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top