Examples of PlayerCellRenderer


Examples of net.alteiar.campaign.player.gui.players.PlayerCellRenderer

    gbc_lblProp.gridx = 0;
    gbc_lblProp.gridy = 1;
    panelShared.add(lblProp, gbc_lblProp);

    comboBoxProp = new JComboBox<>();
    comboBoxProp.setRenderer(new PlayerCellRenderer());
    comboboxModel = new DefaultComboBoxModel<Player>();
    comboBoxProp.setModel(comboboxModel);
    GridBagConstraints gbc_comboBoxProp = new GridBagConstraints();
    gbc_comboBoxProp.insets = new Insets(0, 0, 5, 5);
    gbc_comboBoxProp.fill = GridBagConstraints.HORIZONTAL;
    gbc_comboBoxProp.gridx = 1;
    gbc_comboBoxProp.gridy = 1;
    panelShared.add(comboBoxProp, gbc_comboBoxProp);

    JPanel panel = new JPanel();
    GridBagConstraints gbc_panel = new GridBagConstraints();
    gbc_panel.insets = new Insets(0, 0, 5, 0);
    gbc_panel.gridwidth = 3;
    gbc_panel.fill = GridBagConstraints.BOTH;
    gbc_panel.gridx = 0;
    gbc_panel.gridy = 2;
    panelShared.add(panel, gbc_panel);

    playersEditors = new MyDoubleList<>("Interdit", "Authoriser");
    playersEditors.setCellRenderer(new PlayerCellRenderer());
    playersEditors.setBorder(BorderFactory
        .createTitledBorder("Édition du document"));
    panel.add(playersEditors);

    playersUsers = new MyDoubleList<>("Interdit", "Authoriser");
    playersUsers.setCellRenderer(new PlayerCellRenderer());
    playersUsers.setBorder(BorderFactory
        .createTitledBorder("Vision du document"));
    GridBagConstraints gbc_panel_1 = new GridBagConstraints();
    gbc_panel_1.gridwidth = 3;
    gbc_panel_1.insets = new Insets(0, 0, 0, 5);
View Full Code Here

Examples of net.alteiar.campaign.player.gui.players.PlayerCellRenderer

    List<Player> players = getAvaiblePlayers();

    playerList = new MyList<Player>(players);
    playerList.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
    playerList.setLayoutOrientation(JList.VERTICAL);
    playerList.setCellRenderer(new PlayerCellRenderer());
    playerList.setSelectedIndex(0);

    JScrollPane listScroller = new JScrollPane(playerList);
    listScroller.setPreferredSize(new Dimension(PREFERED_PLAYER_LIST_WIDTH,
        PREFERED_PLAYER_LIST_HEIGHT));
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.