Package org.newdawn.slick

Examples of org.newdawn.slick.CanvasGameContainer$Container


   *
   * @param argv The arguments to pass into the test
   */
  public static void main(String[] argv) {
    try {
      CanvasGameContainer container = new CanvasGameContainer(new CanvasContainerTest());
     
      Frame frame = new Frame("Test");
      frame.setLayout(new GridLayout(1,2));
      frame.setSize(500,500);
      frame.add(container);
     
      frame.addWindowListener(new WindowAdapter() {
        public void windowClosing(WindowEvent e) {
          System.exit(0);
        }
      });
      frame.setVisible(true);
      container.start();
    } catch (Exception e) {
      e.printStackTrace();
    }
  }
View Full Code Here


        return factory.createLocator(field);
    }

    private Object decorateContainer(final ClassLoader loader, final Field field) {
        final WebElement wrappedElement = proxyForLocator(loader, createLocator(field));
        final Container container = containerFactory.create((Class<? extends Container>) field.getType(), wrappedElement);

        PageFactory.initElements(new ExtendedFieldDecorator(wrappedElement), container);
        return container;
    }
View Full Code Here

TOP

Related Classes of org.newdawn.slick.CanvasGameContainer$Container

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.