Examples of GradientButton


Examples of com.barrybecker4.ui.components.GradientButton

    /** create the OK Cancel buttons that go at the bottom */
    @Override
    protected JPanel createButtonsPanel() {
        JPanel buttonsPanel = new JPanel( new FlowLayout() );

        okButton_ =  new GradientButton();
        initBottomButton( okButton_, GameContext.getLabel("OK"), GameContext.getLabel("USE_OPTIONS") );
        initBottomButton(cancelButton, GameContext.getLabel("CANCEL"), GameContext.getLabel("RESUME") );

        buttonsPanel.add( okButton_ );
        buttonsPanel.add(cancelButton);
View Full Code Here

Examples of com.barrybecker4.ui.components.GradientButton

    @Override
    protected JPanel createButtonsPanel() {
        JPanel buttonsPanel = new JPanel( new FlowLayout() );

        startButton_ = new GradientButton();
        initBottomButton( startButton_, GameContext.getLabel("START_GAME"), GameContext.getLabel("START_GAME_TIP") );
        initBottomButton(cancelButton, GameContext.getLabel("CANCEL"), GameContext.getLabel("NGD_CANCEL_TIP") );

        buttonsPanel.add( startButton_ );
        buttonsPanel.add(cancelButton);
View Full Code Here

Examples of com.barrybecker4.ui.components.GradientButton

        //setCommandPanelTitle(Player player)

        JPanel bp = createPanel();
        bp.setBorder(createMarginBorder());

        commandButton_ = new GradientButton(GameContext.getLabel("ORDERS"));
        commandButton_.addActionListener(this);
        bp.add(commandButton_);

        passButton_ = new GradientButton(GameContext.getLabel("PASS"));
        passButton_.addActionListener(this);
        bp.add(passButton_);

        commandPanel_.add(bp);
        return commandPanel_;
View Full Code Here

Examples of com.barrybecker4.ui.components.GradientButton

        titleLabel.setIcon(player_.getIcon());
        titlePanel.add(titleLabel, BorderLayout.WEST);

        JPanel addremoveButtonsPanel = new JPanel();

        addOrderButton_ = new GradientButton(GameContext.getLabel("NEW_ORDER"));
        addOrderButton_.addActionListener(this);
        addremoveButtonsPanel.add(addOrderButton_, BorderLayout.CENTER);

        removeOrderButton_ = new GradientButton(GameContext.getLabel("REMOVE_ORDER"));
        removeOrderButton_.addActionListener(this);
        addremoveButtonsPanel.add(removeOrderButton_, BorderLayout.EAST);

        titlePanel.add(addremoveButtonsPanel, BorderLayout.EAST);
View Full Code Here

Examples of com.barrybecker4.ui.components.GradientButton

     */
    @Override
    protected JPanel createButtonsPanel() {
        JPanel buttonsPanel = new JPanel( new FlowLayout() );

        okButton_ = new GradientButton();
        initBottomButton( okButton_, GameContext.getLabel("OK"), GameContext.getLabel("PLACE_ORDER_TIP") );
        initBottomButton(cancelButton, GameContext.getLabel("CANCEL"), GameContext.getLabel("CANCEL") );

        buttonsPanel.add( okButton_ );
        buttonsPanel.add(cancelButton);
View Full Code Here

Examples of com.barrybecker4.ui.components.GradientButton

    @Override
    protected JPanel createButtonsPanel() {

        JPanel buttonsPanel = new JPanel( new FlowLayout() );

        okButton = new GradientButton();
        initBottomButton(okButton, GameContext.getLabel("OK"), GameContext.getLabel("PLACE_ORDER_TIP") );
        initBottomButton(cancelButton, GameContext.getLabel("CANCEL"), GameContext.getLabel("CANCEL") );

        buttonsPanel.add(okButton);
        buttonsPanel.add(cancelButton);
View Full Code Here

Examples of com.barrybecker4.ui.components.GradientButton

    private JPanel createRowOneControls() {

        JPanel rowOne = new JPanel();
        rowOne.setLayout(new BoxLayout(rowOne, BoxLayout.X_AXIS));

        generateButton_ = new GradientButton("Generate");
        generateButton_.addActionListener(this);

        validateButton_ = new GradientButton("Validate");
        validateButton_.addActionListener(this);

        solveButton_ = new GradientButton("Solve");
        solveButton_.addActionListener(this);

        sizeSelector_ = new SizeSelector();
        sizeSelector_.addItemListener(this);
View Full Code Here

Examples of com.barrybecker4.ui.components.GradientButton

        add(leftProbField);
        add(rightProbField);
        JPanel fill = new JPanel();
        fill.setPreferredSize(new Dimension(1000, 10));

        regenerateButton = new GradientButton( "Generate" );
        regenerateButton.addActionListener(this);
        add(regenerateButton);

        solveButton = new GradientButton( "Solve" );
        solveButton.addActionListener(this);
        add(solveButton);
        add(fill);
    }
View Full Code Here

Examples of com.barrybecker4.ui.components.GradientButton

     * @return image and sound buttons in a panel.
     */
    private JPanel createMediaButtons() {
        JPanel buttonPanel = new JPanel(new FlowLayout());

        showImageButton_ = new GradientButton("Image");
        showImageButton_.addActionListener(this);
        showImageButton_.setEnabled(scene_.getImage() != null);

        playSoundButton_ = new GradientButton("Sound");
        playSoundButton_.addActionListener(this);
        playSoundButton_.setEnabled(scene_.hasSound());

        buttonPanel.add(showImageButton_);
        buttonPanel.add(playSoundButton_);
View Full Code Here

Examples of com.barrybecker4.ui.components.GradientButton

        Player p1 = controller.getPlayers().getPlayer1();
        Player p2 = controller.getPlayers().getPlayer2();

        human1Button_ = new JRadioButton( human, p1.isHuman() );
        computer1Button_ = new JRadioButton( computer, !p2.isHuman() );
        editOptions1Button_ = new GradientButton(editWeights);
        editOptions1Button_.setEnabled(!p1.isHuman());
        JPanel firstP =
                createPlayerEntry( getPlayer1Label(), human1Button_, computer1Button_, editOptions1Button_);

        human2Button_ = new JRadioButton( human, p2.isHuman());
        computer2Button_ = new JRadioButton( computer, !p2.isHuman() );
        editOptions2Button_ = new GradientButton( editWeights );
        editOptions2Button_.setEnabled( !p2.isHuman() );
        JPanel secondP =
                createPlayerEntry( getPlayer2Label(), human2Button_, computer2Button_, editOptions2Button_);

        firstP.setAlignmentX( Component.LEFT_ALIGNMENT );
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.