You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@pivot.apache.org by noobmike <md...@lakeheadu.ca> on 2011/05/10 16:34:33 UTC

widgets

Hey Guys,

I know this maybe a very primitive question, but can someone give me an idea
or point me to a source on how to create a simple widget using Apache pivot.
Is this even possible? I know pivot is all about IIA, I assume those are
very similar to widgets. 

Thanks! 

Mike. 

--
View this message in context: http://apache-pivot-users.399431.n3.nabble.com/widgets-tp2923278p2923278.html
Sent from the Apache Pivot - Users mailing list archive at Nabble.com.

RE: widgets

Posted by "Roger L. Whitcomb" <Ro...@ingres.com>.
Do you mean things like the Dashboard "widgets" in OSX?  

Roger Whitcomb | Architect, Engineering | Roger.Whitcomb@ingres.com |
Ingres | 500 Arguello Street | Suite 200 | Redwood City | CA | 94063 |
USA  +1 650-587-5596 | fax: +1 650-587-5550
-----Original Message-----
From: noobmike [mailto:mdrioux@lakeheadu.ca] 
Sent: Tuesday, May 10, 2011 8:25 AM
To: user@pivot.apache.org
Subject: Re: widgets


OK. That's very OS-specific. You may be able to do this with a Pivot
app,
but the Pivot platform does not include support for doing so.



Oh I see. Someone pointed me in this direction for things like that.
When
you say I may be able to do this with a Pivot app, but the Pivot
platform
does not include support for doing so, do you mean that this is not the
purpose for that type of "widget" ? What do you mean by support. 

Thanks for the responses, I am supposed to be spending all summer on
this
type or research and development and want to make sure I'm not going
into a
dead end. 

Thanks again. 

--
View this message in context:
http://apache-pivot-users.399431.n3.nabble.com/widgets-tp2923280p2923450
.html
Sent from the Apache Pivot - Users mailing list archive at Nabble.com.

Re: widgets

Posted by noobmike <md...@lakeheadu.ca>.
OK, thanks for clarifying. Why a gadget as opposed to a regular application?

I'm not sure, that's a good question Ill have to ask my supervisor. I had
very little information to start with. It was a "Create a widget to help
people learn. Use Apache Pivot" type thing. You guys are making my life a
lot easier. Thanks for that. And thanks for the links to other help. 

And thanks to Sandro, I think that's exactly the problem. Sorry to all for
this confusion! 

I'm going to try to figure this all out. 

I'm sure Ill have more questions for you Pivot/Java Experts! 

Thanks! 

Mike.



--
View this message in context: http://apache-pivot-users.399431.n3.nabble.com/widgets-tp2923280p2923704.html
Sent from the Apache Pivot - Users mailing list archive at Nabble.com.

Re: widgets

Posted by Greg Brown <gk...@verizon.net>.
OK, thanks for clarifying. Why a gadget as opposed to a regular application?

On May 10, 2011, at 11:51 AM, noobmike wrote:

> To gk_brown: 
> 
> I think they are considered "widgets" for OSX and "gadgets" for Windows.
> These are some of the things I mean. My goal is to develop some for learning
> purposes. I.E a translator for someone taking a language course. Or an Atlas
> for someone taking a geography course... etc.  Here is a website with
> something along the lines of what I'm trying to do. 
> 
> http://www.redmondpie.com/top-5-must-have-desktop-gadgets-for-windows-7/
> 
> To Roger: 
> 
> I think so, but I would be doing it for the Windows equivalent. I do have a
> mac as well and could use that, but the person who I am researching for
> wants windows "widgets" although I believe she meant "gadgets" now that I
> have dove deeper into this topic.
> 
> thanks, 
> 
> Mike. 
> 
> --
> View this message in context: http://apache-pivot-users.399431.n3.nabble.com/widgets-tp2923280p2923576.html
> Sent from the Apache Pivot - Users mailing list archive at Nabble.com.


Re: widgets

Posted by noobmike <md...@lakeheadu.ca>.
To gk_brown: 

I think they are considered "widgets" for OSX and "gadgets" for Windows.
These are some of the things I mean. My goal is to develop some for learning
purposes. I.E a translator for someone taking a language course. Or an Atlas
for someone taking a geography course... etc.  Here is a website with
something along the lines of what I'm trying to do. 

http://www.redmondpie.com/top-5-must-have-desktop-gadgets-for-windows-7/

To Roger: 

I think so, but I would be doing it for the Windows equivalent. I do have a
mac as well and could use that, but the person who I am researching for
wants windows "widgets" although I believe she meant "gadgets" now that I
have dove deeper into this topic.

thanks, 

Mike. 

--
View this message in context: http://apache-pivot-users.399431.n3.nabble.com/widgets-tp2923280p2923576.html
Sent from the Apache Pivot - Users mailing list archive at Nabble.com.

Re: widgets

Posted by Sandro Martini <sa...@gmail.com>.
Hi all,

>> By Widget I mean something that I can install to my desktop, and have it
>> stay there without having to use the browser, or use an IDE to compile
>> and run it.
>
>OK. That's very OS-specific. You may be able to do this with a Pivot app,
but the Pivot platform does not include support for doing so.

This is more a Deploy-related problem than a Pivot issue ... and you can use
usual Java options for deploy such Applications/RIAs/IIAs, for example you
can deploy with a zip, a Setup inside a jar (or an exe for Windows or an sh
for Linux), and for example you can use Java Web Start to download your
application the first time and have it working outside the browser and maybe
then working off-line if desired.


Under examples (under trunk) you can find some deployment example, but if we
can help, ask to us.

Bye,
Sandro


--
View this message in context: http://apache-pivot-users.399431.n3.nabble.com/widgets-tp2923280p2923632.html
Sent from the Apache Pivot - Users mailing list archive at Nabble.com.

Re: widgets

Posted by Greg Brown <gk...@verizon.net>.
> Then I tried Launch4j, It took me a while to figure out what was going on,
> then I found a 
> great tutorial online to help me through actually creating the .exe. When I
> tried to run it
> I get the error "Could not find the main class: DeploymentExample.jar.
> Program will exit" 

Seems like you may be trying to launch a class named "DeploymentExample.jar" rather than "DeploymentExample".

> I am curious though, on the Apache site it directly says "Apache Pivot is an
> open-source platform for building installable Internet applications (IIAs)."
> Does Apache Pivot just supply the ease of creating the 
> GUI and the ability to use BXML and other JVM Languages?

Yes.

> Does it supply any
> way of deploying an application like any of the tutorials as a .exe? or as a
> widget/gadget. 

No - that's where tools like Launch4J, AppBundler, Ant, Eclipse, etc. come in. 

Pivot is primarily a tool for building apps. How you package that app is up to you.

G


Re: widgets

Posted by Andrei Pozolotin <an...@gmail.com>.
here is a sample app template
https://github.com/carrot-garden/carrot-vision

user experience is good and the technology easy to work with. :-)

-------- Original Message  --------
Subject: Re: widgets
From: Greg Brown <gk...@verizon.net>
To: user@pivot.apache.org
Date: Wed 11 May 2011 02:04:05 PM CDT
> JNLP is sometimes also referred to as "Java Web Start":
>
> http://en.wikipedia.org/wiki/Java_Web_Start
>
> I personally find the user experience to be poor and the technology
> difficult to work with, but to each his own.  :-)
>
> G
>
> On May 11, 2011, at 2:57 PM, Andrei Pozolotin wrote:
>
>> I suggest to use jnlp for pivot delivery:
>> https://github.com/carrot-garden/carrot-jnlper
>>
>>
>> -------- Original Message  --------
>> Subject: Re: widgets
>> From: noobmike <md...@lakeheadu.ca>
>> To: user@pivot.apache.org
>> Date: Wed 11 May 2011 01:25:37 PM CDT
>>> Hello again fellas 
>>>
>>> I tried a bunch of the ideas you suggested and I came up empty, well pretty
>>> much empty. 
>>> First I tried the deployment example and I got it to work, but only from the
>>> same way as 
>>> before. Running it in eclipse as a pivot application. 
>>>
>>> Then I tried Launch4j, It took me a while to figure out what was going on,
>>> then I found a 
>>> great tutorial online to help me through actually creating the .exe. When I
>>> tried to run it
>>> I get the error "Could not find the main class: DeploymentExample.jar.
>>> Program will exit" 
>>> (I named my App DeploymentExample then exported the .jar from Eclipse) I'm
>>> not sure if
>>> this error is telling me it cant find the jar file, or it cant find a main
>>> method in the jar. (I 
>>> assume the first, but I added it directly to the Main Class: section of the
>>> Launce4j GUI)
>>>
>>> Then I tried some other things like creating a main method and calling the
>>> Startup method
>>> and things of this nature all which didn't really produce anything. So I'm
>>> not to sure of where
>>> to head from here. If anyone has any idea please let me know. 
>>>
>>> I am curious though, on the Apache site it directly says "Apache Pivot is an
>>> open-source platform for building installable Internet applications (IIAs)."
>>> Does Apache Pivot just supply the ease of creating the 
>>> GUI and the ability to use BXML and other JVM Languages? Does it supply any
>>> way of deploying an application like any of the tutorials as a .exe? or as a
>>> widget/gadget. 
>>>
>>> Thanks
>>>
>>> Mike. 
>>>
>>>
>>> --
>>> View this message in context: http://apache-pivot-users.399431.n3.nabble.com/widgets-tp2923280p2928513.html
>>> Sent from the Apache Pivot - Users mailing list archive at Nabble.com <http://Nabble.com>.
>>>
>>>   
>>
>


Re: widgets

Posted by Greg Brown <gk...@verizon.net>.
JNLP is sometimes also referred to as "Java Web Start":

http://en.wikipedia.org/wiki/Java_Web_Start

I personally find the user experience to be poor and the technology difficult to work with, but to each his own.  :-)

G

On May 11, 2011, at 2:57 PM, Andrei Pozolotin wrote:

> I suggest to use jnlp for pivot delivery:
> https://github.com/carrot-garden/carrot-jnlper
> 
> 
> -------- Original Message  --------
> Subject: Re: widgets
> From: noobmike <md...@lakeheadu.ca>
> To: user@pivot.apache.org
> Date: Wed 11 May 2011 01:25:37 PM CDT
>> Hello again fellas 
>> 
>> I tried a bunch of the ideas you suggested and I came up empty, well pretty
>> much empty. 
>> First I tried the deployment example and I got it to work, but only from the
>> same way as 
>> before. Running it in eclipse as a pivot application. 
>> 
>> Then I tried Launch4j, It took me a while to figure out what was going on,
>> then I found a 
>> great tutorial online to help me through actually creating the .exe. When I
>> tried to run it
>> I get the error "Could not find the main class: DeploymentExample.jar.
>> Program will exit" 
>> (I named my App DeploymentExample then exported the .jar from Eclipse) I'm
>> not sure if
>> this error is telling me it cant find the jar file, or it cant find a main
>> method in the jar. (I 
>> assume the first, but I added it directly to the Main Class: section of the
>> Launce4j GUI)
>> 
>> Then I tried some other things like creating a main method and calling the
>> Startup method
>> and things of this nature all which didn't really produce anything. So I'm
>> not to sure of where
>> to head from here. If anyone has any idea please let me know. 
>> 
>> I am curious though, on the Apache site it directly says "Apache Pivot is an
>> open-source platform for building installable Internet applications (IIAs)."
>> Does Apache Pivot just supply the ease of creating the 
>> GUI and the ability to use BXML and other JVM Languages? Does it supply any
>> way of deploying an application like any of the tutorials as a .exe? or as a
>> widget/gadget. 
>> 
>> Thanks
>> 
>> Mike. 
>> 
>> 
>> --
>> View this message in context: http://apache-pivot-users.399431.n3.nabble.com/widgets-tp2923280p2928513.html
>> Sent from the Apache Pivot - Users mailing list archive at Nabble.com.
>> 
>>   
> 


Re: widgets

Posted by Andrei Pozolotin <an...@gmail.com>.
I suggest to use jnlp for pivot delivery:
https://github.com/carrot-garden/carrot-jnlper


-------- Original Message  --------
Subject: Re: widgets
From: noobmike <md...@lakeheadu.ca>
To: user@pivot.apache.org
Date: Wed 11 May 2011 01:25:37 PM CDT
> Hello again fellas 
>
> I tried a bunch of the ideas you suggested and I came up empty, well pretty
> much empty. 
> First I tried the deployment example and I got it to work, but only from the
> same way as 
> before. Running it in eclipse as a pivot application. 
>
> Then I tried Launch4j, It took me a while to figure out what was going on,
> then I found a 
> great tutorial online to help me through actually creating the .exe. When I
> tried to run it
> I get the error "Could not find the main class: DeploymentExample.jar.
> Program will exit" 
> (I named my App DeploymentExample then exported the .jar from Eclipse) I'm
> not sure if
> this error is telling me it cant find the jar file, or it cant find a main
> method in the jar. (I 
> assume the first, but I added it directly to the Main Class: section of the
> Launce4j GUI)
>
> Then I tried some other things like creating a main method and calling the
> Startup method
> and things of this nature all which didn't really produce anything. So I'm
> not to sure of where
> to head from here. If anyone has any idea please let me know. 
>
> I am curious though, on the Apache site it directly says "Apache Pivot is an
> open-source platform for building installable Internet applications (IIAs)."
> Does Apache Pivot just supply the ease of creating the 
> GUI and the ability to use BXML and other JVM Languages? Does it supply any
> way of deploying an application like any of the tutorials as a .exe? or as a
> widget/gadget. 
>
> Thanks
>
> Mike. 
>
>
> --
> View this message in context: http://apache-pivot-users.399431.n3.nabble.com/widgets-tp2923280p2928513.html
> Sent from the Apache Pivot - Users mailing list archive at Nabble.com.
>
>   


Re: widgets

Posted by noobmike <md...@lakeheadu.ca>.
Hello again fellas 

I tried a bunch of the ideas you suggested and I came up empty, well pretty
much empty. 
First I tried the deployment example and I got it to work, but only from the
same way as 
before. Running it in eclipse as a pivot application. 

Then I tried Launch4j, It took me a while to figure out what was going on,
then I found a 
great tutorial online to help me through actually creating the .exe. When I
tried to run it
I get the error "Could not find the main class: DeploymentExample.jar.
Program will exit" 
(I named my App DeploymentExample then exported the .jar from Eclipse) I'm
not sure if
this error is telling me it cant find the jar file, or it cant find a main
method in the jar. (I 
assume the first, but I added it directly to the Main Class: section of the
Launce4j GUI)

Then I tried some other things like creating a main method and calling the
Startup method
and things of this nature all which didn't really produce anything. So I'm
not to sure of where
to head from here. If anyone has any idea please let me know. 

I am curious though, on the Apache site it directly says "Apache Pivot is an
open-source platform for building installable Internet applications (IIAs)."
Does Apache Pivot just supply the ease of creating the 
GUI and the ability to use BXML and other JVM Languages? Does it supply any
way of deploying an application like any of the tutorials as a .exe? or as a
widget/gadget. 

Thanks

Mike. 


--
View this message in context: http://apache-pivot-users.399431.n3.nabble.com/widgets-tp2923280p2928513.html
Sent from the Apache Pivot - Users mailing list archive at Nabble.com.

Re: widgets

Posted by Greg Brown <gk...@verizon.net>.
> I have read a few times that "Pivot applications are written using a
> combination of Java and XML and can be run either as an applet or as a
> standalone (optionally offline) desktop application." 
> 
> I think that may be what I want. Or something close enough. Could you point
> me to some examples of that?  
> 
> Or maybe explain how to get something like the tutorial examples to be
> IIA's? or more specifically make it possible for someone to install it and
> run it with out eclipse or a different IDE. 

Take a look at this example:

http://svn.apache.org/repos/asf/pivot/trunk/examples/src/org/apache/pivot/examples/deployment/

An Ant build script for this project is here:

http://svn.apache.org/repos/asf/pivot/trunk/deployment-example.xml

To build a Windows .exe file, you'll need Launch4J:

http://launch4j.sourceforge.net/index.html

To build a Mac app bundle, you'll need a Mac and JarBundler:

http://informagen.com/JarBundler/

G


Re: widgets

Posted by noobmike <md...@lakeheadu.ca>.
Also, 

I have read a few times that "Pivot applications are written using a
combination of Java and XML and can be run either as an applet or as a
standalone (optionally offline) desktop application." 

I think that may be what I want. Or something close enough. Could you point
me to some examples of that?  

Or maybe explain how to get something like the tutorial examples to be
IIA's? or more specifically make it possible for someone to install it and
run it with out eclipse or a different IDE. 

I hope my questions are clear. 

Thank you! All of you are extremely helpful. 

Mike. 

--
View this message in context: http://apache-pivot-users.399431.n3.nabble.com/widgets-tp2923280p2923624.html
Sent from the Apache Pivot - Users mailing list archive at Nabble.com.

Re: widgets

Posted by Greg Brown <gk...@verizon.net>.
Maybe I am still not understanding what you mean by "widget". Can you point me to some examples?

On May 10, 2011, at 11:24 AM, noobmike wrote:

> 
> OK. That's very OS-specific. You may be able to do this with a Pivot app,
> but the Pivot platform does not include support for doing so.
> 
> 
> 
> Oh I see. Someone pointed me in this direction for things like that. When
> you say I may be able to do this with a Pivot app, but the Pivot platform
> does not include support for doing so, do you mean that this is not the
> purpose for that type of "widget" ? What do you mean by support. 
> 
> Thanks for the responses, I am supposed to be spending all summer on this
> type or research and development and want to make sure I'm not going into a
> dead end. 
> 
> Thanks again. 
> 
> --
> View this message in context: http://apache-pivot-users.399431.n3.nabble.com/widgets-tp2923280p2923450.html
> Sent from the Apache Pivot - Users mailing list archive at Nabble.com.


Re: widgets

Posted by noobmike <md...@lakeheadu.ca>.
OK. That's very OS-specific. You may be able to do this with a Pivot app,
but the Pivot platform does not include support for doing so.



Oh I see. Someone pointed me in this direction for things like that. When
you say I may be able to do this with a Pivot app, but the Pivot platform
does not include support for doing so, do you mean that this is not the
purpose for that type of "widget" ? What do you mean by support. 

Thanks for the responses, I am supposed to be spending all summer on this
type or research and development and want to make sure I'm not going into a
dead end. 

Thanks again. 

--
View this message in context: http://apache-pivot-users.399431.n3.nabble.com/widgets-tp2923280p2923450.html
Sent from the Apache Pivot - Users mailing list archive at Nabble.com.

Re: widgets

Posted by Greg Brown <gk...@verizon.net>.
> By Widget I mean something that I can install to my desktop, and have it
> stay there without having to use the browser, or use an IDE to compile and
> run it. 

OK. That's very OS-specific. You may be able to do this with a Pivot app, but the Pivot platform does not include support for doing so.



Re: widgets

Posted by noobmike <md...@lakeheadu.ca>.
Maybe my definition of "widget" is wrong, my apologies for that, but

By Widget I mean something that I can install to my desktop, and have it
stay there without having to use the browser, or use an IDE to compile and
run it. 

for example using a box pane with 2 text fields and 2 buttons to convert
celsius to fahrenheit. Or anything along those lines.  Maybe an animated
clock or a Calendar.  

Thanks! 

Also I'm not sure if when I reply to one person, the other gets it. I
apologize if you get this twice. 

Mike. 

--
View this message in context: http://apache-pivot-users.399431.n3.nabble.com/widgets-tp2923280p2923408.html
Sent from the Apache Pivot - Users mailing list archive at Nabble.com.

Re: widgets

Posted by Greg Brown <gk...@verizon.net>.
I'm not sure what you mean by "widget". Can you elaborate?

On May 10, 2011, at 10:34 AM, noobmike wrote:

> Hey Guys,
> 
> I know this maybe a very primitive question, but can someone give me an idea
> or point me to a source on how to create a simple widget using Apache pivot.
> Is this even possible? I know pivot is all about IIA, I assume those are
> very similar to widgets. 
> 
> Thanks! 
> 
> Mike. 
> 
> --
> View this message in context: http://apache-pivot-users.399431.n3.nabble.com/widgets-tp2923278p2923278.html
> Sent from the Apache Pivot - Users mailing list archive at Nabble.com.