Game            game = new Game(); BoardView1        bv; BoardEditor        be;  frame.removeAll();  bv = new BoardView1(game, frame);  be = new BoardEditor(frame, game.board, bv); game.board.addBoardListener(be); be.setSize(120, 120);  be.addKeyListener(bv); bv.addKeyListener(be);  GridBagLayout gridbag = new GridBagLayout(); GridBagConstraints c = new GridBagConstraints(); frame.setLayout(gridbag);  c.fill = GridBagConstraints.NONE; c.weightx = 1.0;    c.weighty = 1.0;  c.fill = GridBagConstraints.BOTH; addBag(bv, gridbag, c); c.fill = GridBagConstraints.VERTICAL; c.weightx = 0.0; c.gridwidth = GridBagConstraints.REMAINDER; addBag(be, gridbag, c);  frame.validate();  new AlertDialog(frame, "Please read the editor-readme.txt", "Instructions for using the editor may be found in editor-readme.txt.").show();
BoardEditor editor = new BoardEditor(); launch(editor.getFrame());
    public void showEditor() {        Game            game = new Game();        BoardView1        bv;        BoardEditor        be;        frame.removeAll();        bv = new BoardView1(game, frame);        be = new BoardEditor(frame, game.board, bv);        game.board.addBoardListener(be);        be.setSize(120, 120);        be.addKeyListener(bv);        bv.addKeyListener(be);        GridBagLayout gridbag = new GridBagLayout();        GridBagConstraints c = new GridBagConstraints();        frame.setLayout(gridbag);        c.fill = GridBagConstraints.NONE;        c.weightx = 1.0;    c.weighty = 1.0;        c.fill = GridBagConstraints.BOTH;        addBag(bv, gridbag, c);        c.fill = GridBagConstraints.VERTICAL;        c.weightx = 0.0;        c.gridwidth = GridBagConstraints.REMAINDER;        addBag(be, gridbag, c);        frame.validate();        new AlertDialog(frame, "Please read the editor-readme.txt", "Instructions for using the editor may be found in editor-readme.txt.").show();    }