You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pivot.apache.org by sm...@apache.org on 2012/05/14 13:09:51 UTC

svn commit: r1338155 - in /pivot/site/trunk/deploy/tutorials: hello-bxml.html hello-world.html

Author: smartini
Date: Mon May 14 11:09:50 2012
New Revision: 1338155

URL: http://svn.apache.org/viewvc?rev=1338155&view=rev
Log:
small updates to some tutorials

Modified:
    pivot/site/trunk/deploy/tutorials/hello-bxml.html
    pivot/site/trunk/deploy/tutorials/hello-world.html

Modified: pivot/site/trunk/deploy/tutorials/hello-bxml.html
URL: http://svn.apache.org/viewvc/pivot/site/trunk/deploy/tutorials/hello-bxml.html?rev=1338155&r1=1338154&r2=1338155&view=diff
==============================================================================
--- pivot/site/trunk/deploy/tutorials/hello-bxml.html (original)
+++ pivot/site/trunk/deploy/tutorials/hello-bxml.html Mon May 14 11:09:50 2012
@@ -242,6 +242,18 @@ limitations under the License.
             of the examples in the following sections are executed using this class.
             Scripting is discussed in more detail in the <a href="scripting.html">Scripting</a> section.
         </p>
+
+        <p>
+            Note that you can even add the main() method to be able to run the class as 
+            Standard Java Application in the usual way.
+        </p>
+        <pre class="brush:java">
+                public static void main(String[] args) {
+                    DesktopApplicationContext.main(HelloBXML.class, args);
+                }
+            
+        </pre>
+
     </div><p>Next: <a href="component-and-container.html">Component &amp; Container</a></p></div></div></div><div id="footer" class="group"><div class="footerLogo">Copyright (c) 1999-2012<br>The Apache Software Foundation.</div><div class="footerLinks"><ul class="footerMenuGr"><li><strong>Demos</strong><ul><li><a href="/demos/kitchen-sink.html" target="_new">"Kitchen Sink"</a></li><li><a href="/demos/component-explorer.html" target="_new">Component Explorer</a></li><li><a href="http://cwiki.apache.org/confluence/display/PIVOT/Other+Demos" target="_new">Charting</a></li><li><a href="/demos/">More Demos</a></li></ul></li><li><strong>Documentation</strong><ul><li><a href="/getting-started.html">Getting Started</a></li><li><a href="/tutorials/">Tutorial</a></li><li><a href="/faq.html">FAQ</a></li><li><a href="/2.0.1/docs/api/">Javadoc (2.0.1)</a></li></ul></li><li><strong>Get Involved</strong><ul><li><a href="/svn.html">SVN Repositories</a></li><li><a href="/lists.html">Mailing 
 Lists</a></li><li><a href="http://issues.apache.org/jira/browse/PIVOT">Bug Database</a></li><li><a href="http://cwiki.apache.org/PIVOT/">Wiki</a></li></ul></li><li><strong>Related</strong><ul><li><a href="http://code.google.com/a/apache-extras.org/p/pivot-jfree/">JFreeChart Provider</a></li><li><a href="http://code.google.com/a/apache-extras.org/p/pivot-common/">Pivot-Common</a></li><li><a href="http://code.google.com/a/apache-extras.org/p/pivot-contrib/">Pivot-Contrib</a></li><li><a href="http://code.google.com/a/apache-extras.org/p/pivot-multilang/">Pivot-Multilang</a></li></ul></li><li><strong>About</strong><ul><li><a href="/who-we-are.html">Who We Are</a></li><li><a href="/contact.html">Contact</a></li><li><a href="http://cwiki.apache.org/confluence/display/PIVOT/News">News</a></li><li><a href="/legal.html">Legal/License</a></li></ul></li></ul></div><div class="footerLinks">
                 	Apache Pivot, Pivot, Apache, and the Apache Pivot project logo are trademarks of The Apache Software Foundation.
                 </div></div></div></body></html>
\ No newline at end of file

Modified: pivot/site/trunk/deploy/tutorials/hello-world.html
URL: http://svn.apache.org/viewvc/pivot/site/trunk/deploy/tutorials/hello-world.html?rev=1338155&r1=1338154&r2=1338155&view=diff
==============================================================================
--- pivot/site/trunk/deploy/tutorials/hello-world.html (original)
+++ pivot/site/trunk/deploy/tutorials/hello-world.html Mon May 14 11:09:50 2012
@@ -216,6 +216,17 @@ limitations under the License.
             <tt>DesktopApplicationContext</tt> loader application.
         </p>
 
+        <p>
+            Note that you can even add the main() method to be able to run the class as 
+            Standard Java Application in the usual way.
+        </p>
+        <pre class="brush:java">
+                public static void main(String[] args) {
+                    DesktopApplicationContext.main(HelloJava.class, args);
+                }
+            
+        </pre>
+
         <h3>The Window Class</h3>
         <p>
             A window is the top-level entry point into an application's user interface. Almost all