Examples of InfoLabel


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

     * Constructor
     */
    SetGeneralInfoPanel(Player player) {
        SectionPanel.styleSectionPanel(this, GameContext.getLabel("GENERAL_INFO"));

        JLabel numSetsOnBoardText = new InfoLabel(GameContext.getLabel("NUMBER_OF_SETS_ON_BOARD"));
        numSetsOnBoardLabel_ = new InfoLabel( " " );

        JLabel numCardsRemainingText = new InfoLabel( GameContext.getLabel("NUMBER_OF_CARDS_REMAINING"));
        numCardsRemainingLabel_ = new InfoLabel( " " );
        numCardsRemainingLabel_.setHorizontalAlignment(JLabel.LEFT);

        add(new RowEntryPanel(numSetsOnBoardText, numSetsOnBoardLabel_));
        add(new RowEntryPanel(numCardsRemainingText, numCardsRemainingLabel_));

View Full Code Here

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

     */
    public TwoPlayerGeneralInfoPanel(Player player) {

        SectionPanel.styleSectionPanel(this, GameContext.getLabel("GENERAL_INFO"));

        JLabel turnLabel = new InfoLabel(GameContext.getLabel("PLAYER_TO_MOVE"));
        initPlayerLabel(player);

        JLabel moveNumTextLabel = new InfoLabel( GameContext.getLabel("CURRENT_MOVE_NUM"));
        moveNumTextLabel.setHorizontalAlignment(JLabel.LEFT);
        moveNumLabel_ = new JLabel("1");

        Object[] args = {player.getName()};
        String m = MessageFormat.format(GameContext.getLabel("CHANCE_OF_WINNING"), args );
        JLabel chanceOfWinningTextLabel = new InfoLabel( m );
        chanceOfWinningTextLabel.setHorizontalAlignment(JLabel.LEFT);
        chanceOfWinningLabel_ = new InfoLabel( "   " );
        //showRecommendedMove_ = new JCheckBox( "Show recommended move", false );

        add(new RowEntryPanel(turnLabel, playerLabel_));
        add(new RowEntryPanel(moveNumTextLabel, moveNumLabel_));
        add(new RowEntryPanel(chanceOfWinningTextLabel, chanceOfWinningLabel_));
View Full Code Here

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

    protected JPanel createCustomInfoPanel() {

        JPanel customPanel = createPanel();
        customPanel.setLayout( new BoxLayout( customPanel, BoxLayout.Y_AXIS ) );

        p1CapturesLabel_ = new InfoLabel();
        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 );
View Full Code Here

Examples of com.mystictri.neotextureedit.ChannelParameterEditorPanel.InfoLabel

    else if (param.getClass() == ColorGradientParam.class)
      return new GradientEditorPanel((ColorGradientParam) param);
    else if (param.getClass() == ImageParam.class)
      return new ImageParameterEditor((ImageParam) param);
    else if (param.getClass() == InfoParam.class)
      return new InfoLabel((InfoParam) param);
    else if (param.getClass() == Matrix3x3Param.class)
      return new Matrix3x3ParameterEditor((Matrix3x3Param) param);
    else
      return null;
  }
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.