pivot-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Luiz Gustavo <luizgustav...@gmail.com>
Subject Re: Pivot and JInternalFrame
Date Wed, 13 Oct 2010 11:41:02 GMT
Hi Greg,

I got this error after checking out of the source of the version 2.0.
Am I missing something?


Luiz Gustavo

2010/10/12 Greg Brown <gkbrown@mac.com>

> Hi Jamal,
>
> Pivot/Swing integration isn't fully supported in Pivot 1.5 and earlier.
> However, it is supported in Pivot 2.0. Here is an example:
>
>   http://ixnay.biz/pivot-demos/swing-demo.html
>
> The source code for this example is here:
>
>
> http://svn.apache.org/repos/asf/pivot/trunk/demos/src/org/apache/pivot/demos/swing/
>
> Pivot 2.0 hasn't been officially released yet, but we hope to get it out
> within the next month or so. In the meantime, you can build it from source:
>
>   http://svn.apache.org/repos/asf/pivot/trunk/
>
> Hope this helps.
>
> Greg
>
> On Oct 12, 2010, at 5:40 AM, Jamal BERRICH wrote:
>
> Hello evry body
>          I will writing in application in Swing and i want to integrate the
> pivote windows in the JInternalFrame using the Pivot 1.5.1 API.
>          The code is :
>
>          public class MDAdministrationPivotModuleMain extends
> ApplicationContext {
>                  ....
>                      public void inisialize() {
>                                internalFrame = new JInternalFrame("Pivot
> Components");
>                         addDisplay(getDisplay());
>                                WTKXSerializer wtkxSerializer = new
> WTKXSerializer();
>                                try {
>               window = (Window)wtkxSerializer.readObject(this,
> "hello.wtkx");
>                } catch (IOException e) {
>                                      e.printStackTrace();
>                } catch (SerializationException e) {
>      e.printStackTrace();
>                 }
>                                window.open(getDisplay());
>                                internalFrame.setSize(480, 360);
>                                internalFrame.add(getDisplayHost());
>                                internalFrame.setVisible(true);
>                                internalFrame.setResizable(true);
>                      }
>                  ....
>          }
>
>          The MDAdministrationPivotModuleMain is initialited in the main
> application that containt the jdesktop.
>
>          In the result, i don't have any thing in the JInternalFrame
> (internalFrame object)
>
>          The hello.wtkx code is :
>           <Window title="Hello WTKX!" maximized="true"
>     xmlns:wtkx="http://pivot.apache.org/wtkx"
>     xmlns="org.apache.pivot.wtk">
>     <content>
>         <Label text="Hello WTKX!final"
>             styles="{font:'Arial bold 24', color:'#ff0000',
>                 horizontalAlignment:'center',
> verticalAlignment:'center'}"/>
>     </content>
> </Window>
>
>         I don't know where i have the probleme ? :(
>
> <pivot.png>
>
>
>


-- 
Luiz Gustavo S. de Souza

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

Mime
View raw message