Example usage for org.springframework.amqp.rabbit.stocks.ui StockPanel StockPanel

List of usage examples for org.springframework.amqp.rabbit.stocks.ui StockPanel StockPanel

Introduction

In this page you can find the example usage for org.springframework.amqp.rabbit.stocks.ui StockPanel StockPanel.

Prototype

public StockPanel(StockController controller) 

Source Link

Usage

From source file:org.springframework.amqp.rabbit.stocks.ui.StockPanel.java

public static void main(String[] a) {
    ConfigurableApplicationContext context = new ClassPathXmlApplicationContext("client-bootstrap-config.xml");
    StockController controller = context.getBean(StockController.class);
    JFrame f = new JFrame("Rabbit Stock Demo");
    f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    //TODO consider @Configurable
    f.add(new StockPanel(controller));
    f.pack();// ww  w.j a v  a  2s  . c  om
    f.setVisible(true);
}