You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@pivot.apache.org by Jérôme Serré <je...@gmail.com> on 2010/12/10 09:12:20 UTC

Window without control button

Hi all,
 
I would like to use a splash window without control button but I don’t know
how to do this.
Someone can help me please ?
 
Thanks
 
Jérôme
 
____________________________
La gestion de votre cave
 <http://85.216.59.161:8000/cave> http://85.216.59.161:8000/cave
 


Re: Window without control button

Posted by Luiz Gustavo <lu...@gmail.com>.
Nice!
Thanks for the tip.

2010/12/10 Dirk Möbius <dm...@scoop-gmbh.de>

> Note that Java6 comes with "native" splash screen support; by putting an
> image into the META-INF section of the main jar file, or by specifying it on
> the command line:
>
>
> http://java.sun.com/developer/technicalArticles/J2SE/Desktop/javase6/splashscreen/
>
> The advantage of this approach is that the splash screen will be shown most
> instantly, before Swing or Pivot have been initialized.
>
> Dirk.
>
>
> Zitat von Jérôme Serré <je...@gmail.com>:
>
>
>  Thank you very much. I will study that.
>> At the moment I have a splash but when I move the windows, with mouse,
>> during the loading of my app there is an error.
>>
>> De : Chris Bartlett [mailto:cbartlett.x@gmail.com]
>> Envoyé : vendredi 10 décembre 2010 14:06
>> À : user@pivot.apache.org
>> Objet : Re: Window without control button
>>
>> Jérôme,
>>
>> I have hacked together a simple demo app (built against the Pivot 2.0
>> trunk)
>> that shows an undecorated splash screen before showing the main
>> application.
>> It might help you if you want the splash screen to be undecorated window.
>> (Logo taken from
>> http://svn.apache.org/repos/asf/pivot/project/logo/logo-256x256.png)
>>
>> Note that there is a hack in there to change the decoration state of the
>> native frame, but as stated in the comments, at the moment I don't really
>> have time to look for a proper way of doing it.
>>
>> I intend to use splash screens similar this in my applications, but was
>> planning to write a SplashWindow class (which would extend
>> org.apache.pivot.wtk.Window).  This class would be passed a BXML resource
>> file to display along with one or more Tasks to complete.  It would take
>> care of the running of the tasks, placement & sizing of the window etc.
>>
>> Chris
>>
>> On 10 December 2010 15:12, Jérôme Serré <je...@gmail.com>
>> wrote:
>> Hi all,
>>
>> I would like to use a splash window without control button but I don’t
>> know
>> how to do this.
>> Someone can help me please ?
>>
>> Thanks
>>
>> Jérôme
>>
>> ____________________________
>> La gestion de votre cave
>>  <http://85.216.59.161:8000/cave> http://85.216.59.161:8000/cave
>>
>>
>>
>>
>>
>
>
> --
> Dirk Möbius
>
> SCOOP GmbH
> Am Kielshof 29
> D-51105 Köln
> Fon   +49 221 801916-0
> Fax   +49 221 801916-17
> Mobil +49 170 7363035
> www.scoop-gmbh.de
> Sitz der Gesellschaft: Köln
> Handelsregister: Köln
> Handelsregisternummer: HRB 36623
> Geschäftsführer:
> Dr. Oleg Balovnev
> Frank Heinen
> Dr. Wolfgang Reddig
> Roland Scheel
>
>
>


-- 
Luiz Gustavo S. de Souza

http://luizgustavoss.wordpress.com
http://luizgustavoss.blogspot.com
http://twitter.com/lugustso

RE: Window without control button

Posted by Jérôme Serré <je...@gmail.com>.
Thank you, very interresting

-----Message d'origine-----
De : Dirk Möbius [mailto:dmoebius@scoop-gmbh.de] 
Envoyé : vendredi 10 décembre 2010 14:35
À : user@pivot.apache.org
Objet : RE: Window without control button

Note that Java6 comes with "native" splash screen support; by putting  
an image into the META-INF section of the main jar file, or by  
specifying it on the command line:

http://java.sun.com/developer/technicalArticles/J2SE/Desktop/javase6/splashs
creen/

The advantage of this approach is that the splash screen will be shown  
most instantly, before Swing or Pivot have been initialized.

Dirk.


Zitat von Jérôme Serré <je...@gmail.com>:

> Thank you very much. I will study that.
> At the moment I have a splash but when I move the windows, with mouse,
> during the loading of my app there is an error.
>
> De : Chris Bartlett [mailto:cbartlett.x@gmail.com]
> Envoyé : vendredi 10 décembre 2010 14:06
> À : user@pivot.apache.org
> Objet : Re: Window without control button
>
> Jérôme,
>
> I have hacked together a simple demo app (built against the Pivot 2.0
trunk)
> that shows an undecorated splash screen before showing the main
application.
> It might help you if you want the splash screen to be undecorated window.
> (Logo taken from
> http://svn.apache.org/repos/asf/pivot/project/logo/logo-256x256.png)
>
> Note that there is a hack in there to change the decoration state of the
> native frame, but as stated in the comments, at the moment I don't really
> have time to look for a proper way of doing it.
>
> I intend to use splash screens similar this in my applications, but was
> planning to write a SplashWindow class (which would extend
> org.apache.pivot.wtk.Window).  This class would be passed a BXML resource
> file to display along with one or more Tasks to complete.  It would take
> care of the running of the tasks, placement & sizing of the window etc.
>
> Chris
>
> On 10 December 2010 15:12, Jérôme Serré <je...@gmail.com>
> wrote:
> Hi all,
>
> I would like to use a splash window without control button but I don’t
know
> how to do this.
> Someone can help me please ?
>
> Thanks
>
> Jérôme
>
> ____________________________
> La gestion de votre cave
>  <http://85.216.59.161:8000/cave> http://85.216.59.161:8000/cave
>
>
>
>



-- 
Dirk Möbius

SCOOP GmbH
Am Kielshof 29
D-51105 Köln
Fon   +49 221 801916-0
Fax   +49 221 801916-17
Mobil +49 170 7363035
www.scoop-gmbh.de
Sitz der Gesellschaft: Köln
Handelsregister: Köln
Handelsregisternummer: HRB 36623
Geschäftsführer:
Dr. Oleg Balovnev
Frank Heinen
Dr. Wolfgang Reddig
Roland Scheel



RE: Window without control button

Posted by Dirk Möbius <dm...@scoop-gmbh.de>.
Note that Java6 comes with "native" splash screen support; by putting  
an image into the META-INF section of the main jar file, or by  
specifying it on the command line:

http://java.sun.com/developer/technicalArticles/J2SE/Desktop/javase6/splashscreen/

The advantage of this approach is that the splash screen will be shown  
most instantly, before Swing or Pivot have been initialized.

Dirk.


Zitat von Jérôme Serré <je...@gmail.com>:

> Thank you very much. I will study that.
> At the moment I have a splash but when I move the windows, with mouse,
> during the loading of my app there is an error.
>
> De : Chris Bartlett [mailto:cbartlett.x@gmail.com]
> Envoyé : vendredi 10 décembre 2010 14:06
> À : user@pivot.apache.org
> Objet : Re: Window without control button
>
> Jérôme,
>
> I have hacked together a simple demo app (built against the Pivot 2.0 trunk)
> that shows an undecorated splash screen before showing the main application.
> It might help you if you want the splash screen to be undecorated window.
> (Logo taken from
> http://svn.apache.org/repos/asf/pivot/project/logo/logo-256x256.png)
>
> Note that there is a hack in there to change the decoration state of the
> native frame, but as stated in the comments, at the moment I don't really
> have time to look for a proper way of doing it.
>
> I intend to use splash screens similar this in my applications, but was
> planning to write a SplashWindow class (which would extend
> org.apache.pivot.wtk.Window).  This class would be passed a BXML resource
> file to display along with one or more Tasks to complete.  It would take
> care of the running of the tasks, placement & sizing of the window etc.
>
> Chris
>
> On 10 December 2010 15:12, Jérôme Serré <je...@gmail.com>
> wrote:
> Hi all,
>
> I would like to use a splash window without control button but I don’t know
> how to do this.
> Someone can help me please ?
>
> Thanks
>
> Jérôme
>
> ____________________________
> La gestion de votre cave
>  <http://85.216.59.161:8000/cave> http://85.216.59.161:8000/cave
>
>
>
>



-- 
Dirk Möbius

SCOOP GmbH
Am Kielshof 29
D-51105 Köln
Fon   +49 221 801916-0
Fax   +49 221 801916-17
Mobil +49 170 7363035
www.scoop-gmbh.de
Sitz der Gesellschaft: Köln
Handelsregister: Köln
Handelsregisternummer: HRB 36623
Geschäftsführer:
Dr. Oleg Balovnev
Frank Heinen
Dr. Wolfgang Reddig
Roland Scheel



RE: Window without control button

Posted by Jérôme Serré <je...@gmail.com>.
Thank you very much. I will study that.
At the moment I have a splash but when I move the windows, with mouse,
during the loading of my app there is an error.
 
De : Chris Bartlett [mailto:cbartlett.x@gmail.com] 
Envoyé : vendredi 10 décembre 2010 14:06
À : user@pivot.apache.org
Objet : Re: Window without control button
 
Jérôme,
 
I have hacked together a simple demo app (built against the Pivot 2.0 trunk)
that shows an undecorated splash screen before showing the main application.
It might help you if you want the splash screen to be undecorated window.
(Logo taken from
http://svn.apache.org/repos/asf/pivot/project/logo/logo-256x256.png)
 
Note that there is a hack in there to change the decoration state of the
native frame, but as stated in the comments, at the moment I don't really
have time to look for a proper way of doing it.
 
I intend to use splash screens similar this in my applications, but was
planning to write a SplashWindow class (which would extend
org.apache.pivot.wtk.Window).  This class would be passed a BXML resource
file to display along with one or more Tasks to complete.  It would take
care of the running of the tasks, placement & sizing of the window etc.
 
Chris
 
On 10 December 2010 15:12, Jérôme Serré <je...@gmail.com>
wrote:
Hi all,

I would like to use a splash window without control button but I don’t know
how to do this.
Someone can help me please ?

Thanks

Jérôme

____________________________
La gestion de votre cave
 <http://85.216.59.161:8000/cave> http://85.216.59.161:8000/cave


 

Re: Window without control button

Posted by Chris Bartlett <cb...@gmail.com>.
Jérôme,

I have hacked together a simple demo app (built against the Pivot 2.0 trunk)
that shows an undecorated splash screen before showing the main application.
 It might help you if you want the splash screen to be undecorated window.
 (Logo taken from
http://svn.apache.org/repos/asf/pivot/project/logo/logo-256x256.png)

Note that there is a hack in there to change the decoration state of the
native frame, but as stated in the comments, at the moment I don't really
have time to look for a proper way of doing it.

I intend to use splash screens similar this in my applications, but was
planning to write a SplashWindow class (which would extend
org.apache.pivot.wtk.Window).  This class would be passed a BXML resource
file to display along with one or more Tasks to complete.  It would take
care of the running of the tasks, placement & sizing of the window etc.

Chris

On 10 December 2010 15:12, Jérôme Serré <je...@gmail.com>wrote:

> Hi all,
>
> I would like to use a splash window without control button but I don’t know
> how to do this.
> Someone can help me please ?
>
> Thanks
>
> Jérôme
>
> ____________________________
> La gestion de votre cave
>  <http://85.216.59.161:8000/cave> http://85.216.59.161:8000/cave
>
>
>

RE: Window without control button

Posted by Jérôme Serré <je...@gmail.com>.
Thank you for your response.

-----Message d'origine-----
De : Greg Brown [mailto:gk_brown@verizon.net] 
Envoyé : vendredi 10 décembre 2010 13:36
À : user@pivot.apache.org
Objet : Re: Window without control button

You can open a window that does not have a close button - you'll just need
to close it programmatically yourself, either after some timeout or maybe
when the user presses Escape. For a timeout, see
ApplicationContext#scheduleCallback(). For Escape key presses, you can
attach a ComponentKeyListener to your window.

On Dec 10, 2010, at 3:12 AM, Jérôme Serré wrote:

> Hi all,
> 
> I would like to use a splash window without control button but I don’t
know
> how to do this.
> Someone can help me please ?
> 
> Thanks
> 
> Jérôme
> 
> ____________________________
> La gestion de votre cave
> <http://85.216.59.161:8000/cave> http://85.216.59.161:8000/cave
> 
> 


Re: Window without control button

Posted by Greg Brown <gk...@verizon.net>.
You can open a window that does not have a close button - you'll just need to close it programmatically yourself, either after some timeout or maybe when the user presses Escape. For a timeout, see ApplicationContext#scheduleCallback(). For Escape key presses, you can attach a ComponentKeyListener to your window.

On Dec 10, 2010, at 3:12 AM, Jérôme Serré wrote:

> Hi all,
> 
> I would like to use a splash window without control button but I don’t know
> how to do this.
> Someone can help me please ?
> 
> Thanks
> 
> Jérôme
> 
> ____________________________
> La gestion de votre cave
> <http://85.216.59.161:8000/cave> http://85.216.59.161:8000/cave
> 
> 


RE: Window without control button

Posted by Jérôme Serré <je...@gmail.com>.
It works, thanks.
Jérôme
 
De : Luiz Gustavo [mailto:luizgustavoss@gmail.com] 
Envoyé : samedi 18 décembre 2010 16:47
À : user@pivot.apache.org
Objet : Re: Window without control button
 
Hi Jérôme,

take a look at this style:

<Frame icon="@application_form.png" title="Frame Title"
    xmlns:bxml="http://pivot.apache.org/bxml"
    xmlns:content="org.apache.pivot.wtk.content"
    xmlns="org.apache.pivot.wtk" 
    preferredWidth="400" preferredHeight="420"
   maximized="false"
    styles="{padding:{top:0, left:4, bottom:4, right:4},
showWindowControls:true}">


Cheers,

Luiz Gustavo


2010/12/10 Jérôme Serré <je...@gmail.com>
Hi all,

I would like to use a splash window without control button but I don’t know
how to do this.
Someone can help me please ?

Thanks

Jérôme

____________________________
La gestion de votre cave
 <http://85.216.59.161:8000/cave> http://85.216.59.161:8000/cave





-- 
Luiz Gustavo S. de Souza

http://luizgustavoss.wordpress.com
http://luizgustavoss.blogspot.com
http://twitter.com/lugustso

RE: Window without control button

Posted by Jérôme Serré <je...@gmail.com>.
Thanks, i try it asap.
 
De : Luiz Gustavo [mailto:luizgustavoss@gmail.com] 
Envoyé : samedi 18 décembre 2010 16:47
À : user@pivot.apache.org
Objet : Re: Window without control button
 
Hi Jérôme,

take a look at this style:

<Frame icon="@application_form.png" title="Frame Title"
    xmlns:bxml="http://pivot.apache.org/bxml"
    xmlns:content="org.apache.pivot.wtk.content"
    xmlns="org.apache.pivot.wtk" 
    preferredWidth="400" preferredHeight="420"
   maximized="false"
    styles="{padding:{top:0, left:4, bottom:4, right:4},
showWindowControls:true}">


Cheers,

Luiz Gustavo


2010/12/10 Jérôme Serré <je...@gmail.com>
Hi all,

I would like to use a splash window without control button but I don’t know
how to do this.
Someone can help me please ?

Thanks

Jérôme

____________________________
La gestion de votre cave
 <http://85.216.59.161:8000/cave> http://85.216.59.161:8000/cave





-- 
Luiz Gustavo S. de Souza

http://luizgustavoss.wordpress.com
http://luizgustavoss.blogspot.com
http://twitter.com/lugustso

Re: Window without control button

Posted by Luiz Gustavo <lu...@gmail.com>.
Hi Jérôme,

take a look at this style:

<Frame icon="@application_form.png" title="Frame Title"
    xmlns:bxml="http://pivot.apache.org/bxml"
    xmlns:content="org.apache.pivot.wtk.content"
    xmlns="org.apache.pivot.wtk"
    preferredWidth="400" preferredHeight="420"
   maximized="false"
    styles="{padding:{top:0, left:4, bottom:4, right:4}, *
showWindowControls:true*}">


Cheers,

Luiz Gustavo


2010/12/10 Jérôme Serré <je...@gmail.com>

> Hi all,
>
> I would like to use a splash window without control button but I don’t know
> how to do this.
> Someone can help me please ?
>
> Thanks
>
> Jérôme
>
> ____________________________
> La gestion de votre cave
>  <http://85.216.59.161:8000/cave> http://85.216.59.161:8000/cave
>
>
>


-- 
Luiz Gustavo S. de Souza

http://luizgustavoss.wordpress.com
http://luizgustavoss.blogspot.com
http://twitter.com/lugustso