Example usage for java.awt AWTException toString

List of usage examples for java.awt AWTException toString

Introduction

In this page you can find the example usage for java.awt AWTException toString.

Prototype

public String toString() 

Source Link

Document

Returns a short description of this throwable.

Usage

From source file:com.au.splashinc.JControl.MainCLI.java

public static void main(String[] args) throws AWTException, InterruptedException {
    MyControllers myControllers = new MyControllers();
    ArrayList<Controller> controllers = myControllers.GetControllers();
    myControllers = new MyControllers(true);
    ArrayList<Controller> controllers2 = myControllers.GetControllers();

    System.out.println("Let's do this");
    System.out.println("Length without all USB: " + controllers.size());
    System.out.println("Length with all USB: " + controllers2.size());
    AControllerLoader mjs = new DarkForcesJsonLoader("This is a test");
    mjs.LoadConfig();/*from w w w.  j  a v  a  2  s .c om*/
    //JSONObject obj = new JSONObject();
    //obj.put("Hello", "World");
    //System.out.println("JSON String: " + obj.toJSONString());
    if (controllers.size() > 0) {
        try {
            MyController controller = new MyController(controllers.get(0));
            AControllerAction buttonAction = new SimpleControllerAction(controller, mjs);
            while (true) {
                buttonAction.Execute();
                Thread.sleep(20);
            }
        } catch (AWTException ex) {
            System.out.println(ex.toString());
        }
    }
}