Package jimmm.gui

Examples of jimmm.gui.PlayerCardsLayoutManager$CardComparator


  public static void main(String[] args) {
    JFrame mainFrame = new JFrame("Testduell");
    JFrame.setDefaultLookAndFeelDecorated(true);
    mainFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    PlayerCardsLayoutManager lm = new PlayerCardsLayoutManager(false);
    mainFrame.setLayout(lm);
    mainFrame.setBounds(100, 100, 1000, 500);
   
   
    for(Color c : Color.values()) {
      for(Value v : Value.values()) {
        CardPanel cp = new CardPanel(new Card(v, c, true));
        mainFrame.add(cp);
      }
     
    }
   
    System.out.println("Computed size: " + lm.preferredLayoutSize(mainFrame.getContentPane()));
   
    mainFrame.pack();

   
    mainFrame.setVisible(true);
View Full Code Here

TOP

Related Classes of jimmm.gui.PlayerCardsLayoutManager$CardComparator

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.