Package com.jcloisterzone.ui.component

Examples of com.jcloisterzone.ui.component.MultiLineLabel


    JLabel version = new JLabel(_("Version") + ": " + Application.VERSION + " (" + Application.BUILD_DATE + ")");
    version.setBounds(167, 77, 235, 21);
    contentPanel.add(version);

    MultiLineLabel license = new MultiLineLabel(_("Distributed under the terms of GNU Affero General Public License version 3"));
    license.setBounds(167, 123, 235, 37);
    license.setRows(3);
    contentPanel.add(license);

    JLabel lblAuthor = new JLabel("Roman KrejĨík <farin@farin.cz>");
    lblAuthor.setVerticalAlignment(SwingConstants.TOP);
    lblAuthor.setBounds(167, 98, 267, 26);
View Full Code Here


                    public void actionPerformed(ActionEvent e) {
                        client.createGame();
                    }
                });
                create.setFont(FONT_LARGE_BUTTON);
                createPanel.add(new MultiLineLabel(
                    _("Create a new local or network game. You can play against any number of computer players.")),
                "wrap, grow");


        JPanel connectPanel = new JPanel();
        connectPanel.setBorder(new TitledBorder(UIManager.getBorder("TitledBorder.border"), "", TitledBorder.LEADING, TitledBorder.TOP, null, new Color(0, 0, 0)));
        add(connectPanel, "grow, width :250:");
                connectPanel.setLayout(new MigLayout("", "[grow,center]", "20[40px]20[grow]"));

                JButton connect = new JButton(_("Connect"));
                connectPanel.add(connect, "wrap, alignx center,aligny top");
                connect.addActionListener(new ActionListener() {
                    public void actionPerformed(ActionEvent e) {
                        client.showConnectGamePanel();
                    }
                });
                connect.setFont(FONT_LARGE_BUTTON);
                connectPanel.add(new MultiLineLabel(
                    _("Connect to a remote JCloisterZone application with settled new game.")),
                "wrap, grow");


        JPanel loadPanel = new JPanel();
        loadPanel.setBorder(new TitledBorder(UIManager.getBorder("TitledBorder.border"), "", TitledBorder.LEADING, TitledBorder.TOP, null, new Color(0, 0, 0)));
        add(loadPanel, "grow, width :250:");
                loadPanel.setLayout(new MigLayout("", "[grow,center]", "20[40px]20[grow]"));

                JButton load = new JButton(_("Load game"));
                loadPanel.add(load, "wrap, alignx center,aligny top");
                load.addActionListener(new ActionListener() {
                    public void actionPerformed(ActionEvent e) {
                        client.handleLoad();
                    }
                });
                load.setFont(FONT_LARGE_BUTTON);
                loadPanel.add(new MultiLineLabel(
                    _("Load from a file previously saved game.")),
                "wrap, grow");
    }
View Full Code Here

TOP

Related Classes of com.jcloisterzone.ui.component.MultiLineLabel

Copyright © 2018 www.massapicom. 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.