pivot-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michal Margiel <michal.marg...@gmail.com>
Subject Re: Pivot and JInternalFrame
Date Tue, 12 Oct 2010 17:00:34 GMT
Is there any way to include pivot components into swing app not as a
separate window but as a panel?

2010/10/12 Jamal BERRICH <jberrich@gmail.com>

> Thats Work :D
> Thanksssssssssssssssss
>
>
> 2010/10/12 Greg Brown <gkbrown@mac.com>
>
>> Make sure you call createTimer() in your ApplicationContext subclass. See
>> the SwingDemo class for an example.
>>
>> FYI, since this question comes up fairly often, I just posted a blog entry
>> about it:
>>
>>
>> http://weblogs.java.net/blog/gkbrown/archive/2010/10/12/combining-swing-and-apache-pivot
>>
>> G
>>
>> On Oct 12, 2010, at 7:56 AM, Jamal BERRICH wrote:
>>
>> Hello,
>>        Now i will working wiith the trunk version.
>>        I will integret the swing-demo code in my application and i have
>> this exception in mouseover
>>        Unable to schedule callback: java.lang.NullPointerException
>>
>>
>>
>> 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>
>>>
>>>
>>>
>>
>>
>


-- 
Pozdrawiam/Best regards
MichaƂ Margiel

http://www.javarsovia.pl
http://www.linkedin.com/in/MichalMargiel
http://poligloci.margiel.eu

Mime
View raw message