/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package hirka;

import java.awt.BorderLayout;
import java.awt.Dimension;
import java.util.ArrayList;
import javax.swing.JFrame;

/**
 *
 * @author dimitri
 */
public class Frame extends JFrame {
    private ArrayList<String> listeChars;
    private Panel panel;

    public Frame() {
        Chars chars = new Chars();
        this.listeChars = chars.getChars(); 
        this.panel = new Panel(this.listeChars);
        
        this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        
        this.setLayout(new BorderLayout());
        this.add(this.panel, BorderLayout.CENTER);
        this.add(new Bouton("Random", this.panel), BorderLayout.SOUTH);
        this.setTitle("Hiragana/Katakana");
        this.setSize(new Dimension(200,200));
        this.setResizable(false);
        this.setVisible(true);
    }
}
