Package totalcross

Class TotalCrossApplication


  • public class TotalCrossApplication
    extends java.lang.Object
    This class represents a runnable Totalcross Java Application. It supports the same arguments supported by Launcher. See the example bellow:
    
     import totalcross.TotalCrossApplication;
     import totalcross.sample.main.TCSample;
     
     public class TCSampleApplication {
     
       public static void main(String[] args) {
         TotalCrossApplication.run(TCSample.class, "/scr", "360x568");
       }
     }
     
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void run​(java.lang.Class<? extends MainWindow> clazz, java.lang.String... args)
      Runs a TotalCross application on Java using the totalcross.Launcher, it receives classes that extends MainWindow and the Launcher arguments.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • run

        public static void run​(java.lang.Class<? extends MainWindow> clazz,
                               java.lang.String... args)
        Runs a TotalCross application on Java using the totalcross.Launcher, it receives classes that extends MainWindow and the Launcher arguments.
        Parameters:
        clazz - the class that extends MainWindow
        args - Launcher arguments
        See Also:
        MainWindow, Launcher