Package javax.swing

Examples of javax.swing.JColorChooser.showDialog()


    }

    @Action
    public void setBackgroundColor() {
        JColorChooser clr = new JColorChooser();
        maps_color = clr.showDialog(this.getComponent(), "Wybierz kolor tła", maps_color);
        Paint(canvas1.getGraphics());
    }

    @Action
    public void setPawnColor() {
View Full Code Here


    }

    @Action
    public void setPawnColor() {
        JColorChooser clr = new JColorChooser();
        pawn_color = clr.showDialog(this.getComponent(), "Wybierz kolor pionka", pawn_color);
        Paint(canvas1.getGraphics());
    }

    @Action
    public void setFilledPawnColor() {
View Full Code Here

    }

    @Action
    public void setFilledPawnColor() {
        JColorChooser clr = new JColorChooser();
        pawn_fill_color = clr.showDialog(this.getComponent(), "Wybierz kolor wypełnienia pionka", pawn_fill_color);
        Paint(canvas1.getGraphics());
    }

    @Action
    public void setSelectedColor() {
View Full Code Here

    }

    @Action
    public void setSelectedColor() {
        JColorChooser clr = new JColorChooser();
        selected_color = clr.showDialog(this.getComponent(), "Wybierz kolor zaznaczonego pola", selected_color);
        Paint(canvas1.getGraphics());
    }

    public void checkGame() {
        if (game.endGame()) {
View Full Code Here

        left.setPreferredSize(new Dimension(100, 100));

        openb.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent event) {
                JColorChooser clr = new JColorChooser();
                Color color = clr.showDialog(panel, "Choose Color", Color.white);
                left.setBackground(color);
            }
        });

        JPanel right = new JPanel();
View Full Code Here

    {
        Component cmpRoot = BtnChoiceColorAbs._s_getTopParent_(this);

        JColorChooser chooser = new JColorChooser();
       
        Color col = chooser.showDialog(
            cmpRoot, "Choose color", getBackground());

        if (col != null)
            setBackground(col);
View Full Code Here

            final JButton hBoxButton = new JButton(Messages.getMessage("PdfPreferences.ChangeHighlightColor"));
            hBoxButton.addActionListener(new ActionListener(){
                public void actionPerformed(ActionEvent e) {
                    JColorChooser cc = new JColorChooser(currentBox);
                    Color c = cc.showDialog(null, "Highlight Color", currentBox);
                    highlightBoxColor.setBackground(c);

                }
            });
View Full Code Here

            final JButton hTextButton = new JButton(Messages.getMessage("PdfPreferences.ChangeHighlightTextColor"));
            hTextButton.addActionListener(new ActionListener(){
                public void actionPerformed(ActionEvent e) {
                    JColorChooser cc = new JColorChooser(currentText);
                    Color c = cc.showDialog(null, "Highlighted Text Color", currentText);
                    highlightTextColor.setBackground(c);
                }
            });

            final JLabel hCompLabel = new JLabel(Messages.getMessage("PdfPreferences.ChangeHighlightTransparency"));
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.