Examples of SectionPanel


Examples of com.barrybecker4.game.common.ui.panel.SectionPanel

     * Should split this out into a separate PlayerCommandPanel class.
     */
    @Override
    protected JPanel createCustomInfoPanel() {

        commandPanel_ = new SectionPanel();

        //setCommandPanelTitle(Player player)

        JPanel bp = createPanel();
        bp.setBorder(createMarginBorder());
View Full Code Here

Examples of com.barrybecker4.game.common.ui.panel.SectionPanel

     * This panel shows information that is specific to the game type.
     * For Set, we have a button that allows the current player to enter his commands
     */
    @Override
    protected JPanel createCustomInfoPanel() {
        JPanel pp = new SectionPanel("Players");

        playerPanel_ = createPanel();
        playerPanel_.setLayout(new BorderLayout());
        playerPanel_.setBorder(createMarginBorder());

        insertPlayerTable();

        pp.add(playerPanel_);
        return pp;
    }
View Full Code Here

Examples of com.barrybecker4.game.common.ui.panel.SectionPanel

        p2CapturesLabel_ = new InfoLabel();

        p1TerritoryLabel_ = new InfoLabel();
        p2TerritoryLabel_ = new InfoLabel();

        JPanel capturesPanel = new SectionPanel(GameContext.getLabel("NUMBER_OF_CAPTURES"));
        PlayerList players = getController().getPlayers();
        JLabel p1 = new InfoLabel( players.getPlayer1().getName());
        JLabel p2 = new InfoLabel( players.getPlayer2().getName());
        capturesPanel.add(new RowEntryPanel( p1, p1CapturesLabel_ ));
        capturesPanel.add(new RowEntryPanel( p2, p2CapturesLabel_ ));

        JPanel territoryPanel = new SectionPanel(GameContext.getLabel("EST_TERRITORY"));
        JLabel blackTerr = new InfoLabel( GameContext.getLabel("EST_BLACK_TERR"));
        JLabel whiteTerr = new InfoLabel( GameContext.getLabel("EST_WHITE_TERR"));
        territoryPanel.add(new RowEntryPanel( blackTerr, p1TerritoryLabel_ ));
        territoryPanel.add(new RowEntryPanel( whiteTerr, p2TerritoryLabel_ ));

        customPanel.add( capturesPanel );
        customPanel.add( territoryPanel );

        return customPanel;
View Full Code Here

Examples of com.barrybecker4.game.common.ui.panel.SectionPanel

        return customPanel;
    }

    private JPanel createLegendPanel() {
        JPanel legendPanel = new SectionPanel("Group Health Legend");
        ContinuousColorLegend legend =
                new ContinuousColorLegend(null, GoBoardRenderer.COLORMAP, false);
        legendPanel.add(legend);
        return legendPanel;
    }
View Full Code Here

Examples of com.barrybecker4.game.common.ui.panel.SectionPanel

     * This panel shows information that is specific to the game type.
     * For Poker, we have a button that allows the current player to enter his commands
     */
    @Override
    protected JPanel createCustomInfoPanel() {
        commandPanel_ = new SectionPanel("");
        setCommandPanelTitle();

        // the command button
        JPanel bp = createPanel();
        bp.setBorder(createMarginBorder());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.