pivot-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jamal BERRICH <jberr...@gmail.com>
Subject Pivot and JInternalFrame
Date Tue, 12 Oct 2010 09:40:47 GMT
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 ? :(

Mime
View raw message