001 package jagafa;
002
003 import jagafa.scores.SchieberScoreTable;
004 import jagafa.view.newui.RoundController2;
005 import jagafa.view.newui.TabbedView;
006
007 import java.awt.BorderLayout;
008
009 import javax.swing.JFrame;
010
011 public class NewViewTest {
012
013 /**
014 * @param args
015 */
016 public static void main(String[] args) {
017 /* This round controller holds both the views and the game engine
018 * They can be accessed by its get...() methods.
019 */
020 RoundController2 controller = new RoundController2();
021 controller.startRound(new SchieberScoreTable(2000));
022
023 /* This is the tabbed view displaying the different views of the
024 * controller.
025 */
026 TabbedView tabbed = new TabbedView(controller);
027
028 /* The frame holding the tabbed view */
029 JFrame frame = new JFrame();
030 frame.setVisible(true);
031 frame.setLayout(new BorderLayout());
032 frame.getContentPane().add(tabbed, BorderLayout.CENTER);
033 frame.pack();
034
035 frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
036 frame.validate();
037 }
038
039 }