public void initialize() {
        
        setTitle("Manage Teams");
        setBounds(100, 100, 464, 362);
        getContentPane().setLayout(new BorderLayout());
        {
            JPanel buttonPane = new JPanel();
            buttonPane.setLayout(new FlowLayout(FlowLayout.RIGHT));
            getContentPane().add(buttonPane, BorderLayout.SOUTH);
            {
                JButton okButton = new JButton("OK");
                okButton.addActionListener(new ActionListener() {
                    public void actionPerformed(ActionEvent e) {
                        teamsChanged = true;
                        setVisible(false);
                        dispose();
                    }
                });
                okButton.setActionCommand("OK");
                buttonPane.add(okButton);
                getRootPane().setDefaultButton(okButton);
            }
            {
                JButton cancelButton = new JButton("Cancel");
                cancelButton.addActionListener(new ActionListener() {
                    public void actionPerformed(ActionEvent e) {
                        teamsChanged = false;
                        setVisible(false);
                        dispose();
                    }
                });
                cancelButton.setActionCommand("Cancel");
                buttonPane.add(cancelButton);
            }
        }
        {
            JToolBar toolBar = new JToolBar();
            toolBar.setFloatable(false);
            getContentPane().add(toolBar, BorderLayout.NORTH);
            {
                JButton btnAddTeam = toolBar.add(addTeamAction);
                btnAddTeam.addActionListener(new ActionListener() {
                    public void actionPerformed(ActionEvent arg0) {
                        teams.add(new Team("Pavadinimas"));
                        model.addRow(new Object[] {
                                teams.get(teams.size()-1).getName(), 
                                teams.get(teams.size()-1).getPoints()
                                });
                    }
                });
                btnAddTeam.setHorizontalAlignment(SwingConstants.LEFT);
                btnAddTeam.setHorizontalTextPosition(SwingConstants.TRAILING);
                btnAddTeam.setIconTextGap(5);
                btnAddTeam.setIcon(new ImageIcon(ManageTeams.class.getResource("/images/Add.png")));
                btnAddTeam.setFocusable(false);
                btnAddTeam.setMargin(new Insets(0, 10, 0, 5));
                btnAddTeam.setToolTipText("Add new team");
                btnAddTeam.setText("Add Team");
            }
            {
                JButton btnRemoveTeams = toolBar.add(removeSelectedAction);
                btnRemoveTeams.addActionListener(new ActionListener() {
                    public void actionPerformed(ActionEvent arg0) {
                        removeSelected();
                    }
                });
                btnRemoveTeams.setIcon(new ImageIcon(ManageTeams.class.getResource("/images/Delete.png")));
                btnRemoveTeams.setIconTextGap(5);
                btnRemoveTeams.setHorizontalTextPosition(SwingConstants.TRAILING);
                btnRemoveTeams.setHorizontalAlignment(SwingConstants.LEFT);
                btnRemoveTeams.setFocusable(false);
                btnRemoveTeams.setMargin(new Insets(0, 5, 0, 5));
                btnRemoveTeams.setToolTipText("Remove selected teams");
                btnRemoveTeams.setText("Remove Selected");
            }
        }
        {
            JScrollPane scrollPane = new JScrollPane();
            getContentPane().add(scrollPane, BorderLayout.CENTER);
            {
                if (teams.size() > 0) {
                    for (int i = 0; i < teams.size(); i++) {
                        model.addRow(new Object[] {
                                teams.get(i).getName(), 
                                teams.get(i).getPoints()
                                });
                    }
                }
                
                model.addTableModelListener(new TableModelListener() {
                    public void tableChanged(TableModelEvent e) {
                        int row = e.getFirstRow();
                        int column = e.getColumn();
                        
                        if (row >= 0 && column >= 0) {
                            if (model.getValueAt(row, column) != null) {
                                switch(column) {
                                    case 0: teams.get(row).setName((String)model.getValueAt(row, column));
                                            break;
                                    case 1: teams.get(row).setPoints((Integer)model.getValueAt(row, column));
                                            break;
                                    default: break;
                                }
                            }
                        }
                        
                    }
                });
                
                table = new JTable();
                table.setModel(model);
                //table.getColumnModel().getColumn(1).setMaxWidth(75);
                scrollPane.setViewportView(table);
            }
        }
    }