Example usage for javax.swing JPanel setName

List of usage examples for javax.swing JPanel setName

Introduction

In this page you can find the example usage for javax.swing JPanel setName.

Prototype

public void setName(String name) 

Source Link

Document

Sets the name of the component to the specified string.

Usage

From source file:com.haulmont.cuba.desktop.LoginDialog.java

protected void assignTestIdsIfNeeded(JPanel panel) {
    if (App.getInstance().isTestMode()) {
        panel.setName("contentPane");
        nameField.setName("nameField");
        passwordField.setName("passwordField");
        loginBtn.setName("loginBtn");
        localeCombo.setName("localeCombo");
    }/*  w w  w. j a  v a  2s  . c  o  m*/
}

From source file:com.haulmont.cuba.desktop.App.java

protected JComponent createCenterPane() {
    JPanel pane = new JPanel(new BorderLayout());
    pane.add(createTabsPane(), BorderLayout.CENTER);
    if (isTestMode()) {
        pane.setName("centerPane");
    }/*ww w  . j a va 2 s .  c  om*/
    return pane;
}

From source file:com.haulmont.cuba.desktop.App.java

protected JComponent createTopPane() {
    JPanel toolBar = new JPanel(new BorderLayout());
    toolBar.add(createMenuBar(), BorderLayout.CENTER);

    if (isTestMode()) {
        toolBar.setName("toolBar");
    }//  w w w. j a  va 2  s.com

    return toolBar;
}

From source file:com.polivoto.vistas.Charts.java

private void crearPieChart(Pregunta pregunta) {
    JTabbedPane tabPanel = new JTabbedPane();
    panelGrafica.add(tabPanel);/*from   w  w w  . ja  v  a2s.c om*/

    //Calcular el nmero N de perfiles. Si N=1, no discriminar por pestanas. 
    //Si son N perfiles (N>2), hacer N+1 pestanas (la ltima representa la
    //suma de los resultados sin segregacin.
    int n = pregunta.obtenerCantidadDePerfiles();
    System.out.println(" n " + n);
    if (n > 1) {
        for (int i = 0; i < n; i++) {
            JPanel panel = hacerPiePanel(pregunta, pregunta.obtenerResultadoPorPerfil(i).getOpciones());
            panel.setName(pregunta.obtenerResultadoPorPerfil(i).getPerfil());
            tabPanel.addTab(panel.getName(), panel);

        }
    }

    JPanel panel = hacerPiePanel(pregunta, pregunta.obtenerOpciones());
    panel.setName("Todos");
    tabPanel.addTab(panel.getName(), panel);
    tabPanel.setFont(new Font("Roboto", 0, 24));
    tabPanel.addChangeListener(new ChangeListener() {

        @Override
        public void stateChanged(ChangeEvent e) {
            tabIndex = ((JTabbedPane) (e.getSource())).getSelectedIndex();
        }
    });
    tabPanel.setSelectedIndex(tabIndex);
    panelGrafica.add(tabPanel, BorderLayout.CENTER);
    panelGrafica.repaint();
    panelGrafica.revalidate();
}

From source file:com.haulmont.cuba.desktop.App.java

protected Container createContentPane() {
    JPanel pane = new JPanel(new BorderLayout());
    pane.add(createTopPane(), BorderLayout.NORTH);
    pane.add(createCenterPane(), BorderLayout.CENTER);
    pane.add(createBottomPane(), BorderLayout.SOUTH);

    if (isTestMode()) {
        pane.setName("contentPane");
    }/*from ww w  . j a v a  2  s  .c o  m*/

    return pane;
}

From source file:com.mgmtp.perfload.loadprofiles.ui.dialog.SettingsDialog.java

private void initComponents() {
    getContentPane().setLayout(new MigLayout("", "[grow]", "[][grow][grow][grow][]"));
    {//from   w w w  . j ava2s. c o m
        JPanel pnlConfigurations = new JPanel();
        pnlConfigurations.setBorder(new TitledBorder(null, "Saved Configurations", TitledBorder.LEADING,
                TitledBorder.TOP, null, null));
        pnlConfigurations.setName("pnlConfigurations");
        getContentPane().add(pnlConfigurations, "cell 0 0, growx");
        pnlConfigurations.setLayout(new MigLayout("", "[grow]", "[]"));
        {
            JLabel lblFileName = new JLabel("File Name");
            lblFileName.setName("lblFileName");
            pnlConfigurations.add(lblFileName, "flowx,cell 0 0");
        }
        {
            cboConfigurationFile = new JComboBox() {
                @Override
                public void setSelectedItem(final Object anObject) {
                    if (checkDirty()) {
                        super.setSelectedItem(anObject);
                    }
                }
            };
            cboConfigurationFile.addItemListener(new CboConfigurationFileItemListener());
            pnlConfigurations.add(cboConfigurationFile, "cell 0 0,growx");
            cboConfigurationFile.setName("cboConfigurationFile");
        }
        {
            JButton btnNewConfigurationFile = new JButtonExt("New...");
            btnNewConfigurationFile.addActionListener(new BtnNewConfigurationFileActionListener());
            pnlConfigurations.add(btnNewConfigurationFile, "cell 0 0, sg btns");
            btnNewConfigurationFile.setName("btnNewButton");
        }
        {
            JButton btnCopy = new JButtonExt("Copy...");
            btnCopy.addActionListener(new BtnCopyActionListener());
            btnCopy.setName("btnCopy");
            pnlConfigurations.add(btnCopy, "cell 0 0, sg btns");
        }
        {
            JButton btnDelete = new JButtonExt("Delete...");
            btnDelete.addActionListener(new BtnDeleteActionListener());
            btnDelete.setName("btnDelete");
            pnlConfigurations.add(btnDelete, "cell 0 0, sg btns");
        }
    }
    {
        JPanel pnlOperations = new JPanel();
        getContentPane().add(pnlOperations, "cell 0 1, grow");
        pnlOperations.setBorder(
                new TitledBorder(null, "Operations", TitledBorder.LEADING, TitledBorder.TOP, null, null));
        pnlOperations.setName("pnlOperations");
        pnlOperations.setLayout(new MigLayout("insets 4", "[grow][110!]", "[][]"));
        {
            JScrollPane spOperations = new JScrollPane();
            spOperations.setName("spOperations");
            pnlOperations.add(spOperations, "cell 0 0 1 2, height 180::, grow");
            {
                tblOperations = new JTableExt();
                tblOperations.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
                tblOperations.setFillsViewportHeight(true);
                tblOperations.setName("tblOperations");
                spOperations.setViewportView(tblOperations);
            }
        }
        {
            JButton btnAddOperation = new JButtonExt("Add Operation");
            btnAddOperation.addActionListener(new BtnAddOperationActionListener());
            btnAddOperation.setMargin(new Insets(2, 2, 2, 2));
            btnAddOperation.setName("btnAddOperation");
            pnlOperations.add(btnAddOperation, "cell 1 0, grow");
        }
        {
            JButton btnRemoveOperation = new JButtonExt("Delete Operation");
            btnRemoveOperation.addActionListener(new BtnRemoveOperationActionListener());
            btnRemoveOperation.setMargin(new Insets(2, 2, 2, 2));
            btnRemoveOperation.setName("btnRemoveOperation");
            pnlOperations.add(btnRemoveOperation, "cell 1 1, growx, top");
        }
    }

    {
        JPanel pnlTargets = new JPanel();
        getContentPane().add(pnlTargets, "cell 0 2, grow");
        pnlTargets.setBorder(
                new TitledBorder(null, "Targets", TitledBorder.LEADING, TitledBorder.TOP, null, null));
        pnlTargets.setName("pnlTargets");
        pnlTargets.setLayout(new MigLayout("insets 4", "[grow][110!]", "[][]"));
        {
            JScrollPane spTargets = new JScrollPane();
            spTargets.setName("spTargets");
            pnlTargets.add(spTargets, "cell 0 0 1 2, height 50::, grow");
            {
                tblTargets = new JTableExt();
                tblTargets.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
                tblTargets.setFillsViewportHeight(true);
                tblTargets.setName("tblTargets");
                spTargets.setViewportView(tblTargets);
            }
        }
        {
            JButton btnAddTarget = new JButtonExt("Add Target");
            btnAddTarget.addActionListener(new BtnAddTargetActionListener());
            btnAddTarget.setMargin(new Insets(2, 2, 2, 2));
            btnAddTarget.setName("btnAddClientConfig");
            pnlTargets.add(btnAddTarget, "cell 1 0, growx");
        }
        {
            JButton btnRemoveTarget = new JButtonExt("Delete Target");
            btnRemoveTarget.addActionListener(new BtnRemoveTargetActionListener());
            btnRemoveTarget.setMargin(new Insets(2, 2, 2, 2));
            btnRemoveTarget.setName("btnRemoveClientConfig");
            pnlTargets.add(btnRemoveTarget, "cell 1 1, growx, top");
        }
    }

    {
        JPanel pnlClients = new JPanel();
        getContentPane().add(pnlClients, "cell 0 3, grow");
        pnlClients.setBorder(
                new TitledBorder(null, "Clients", TitledBorder.LEADING, TitledBorder.TOP, null, null));
        pnlClients.setName("pnlClientConfigs");
        pnlClients.setLayout(new MigLayout("insets 4", "[grow][110!]", "[][]"));
        {
            JScrollPane spClients = new JScrollPane();
            spClients.setName("spClients");
            pnlClients.add(spClients, "cell 0 0 1 2, height 50::, grow");
            {
                tblClients = new JTableExt();
                tblClients.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
                tblClients.setFillsViewportHeight(true);
                tblClients.setName("tblClients");
                spClients.setViewportView(tblClients);
            }
        }
        {
            JButton btnAddClient = new JButtonExt("Add Client");
            btnAddClient.addActionListener(new BtnAddClientActionListener());
            btnAddClient.setMargin(new Insets(2, 2, 2, 2));
            btnAddClient.setName("btnAddClient");
            pnlClients.add(btnAddClient, "cell 1 0, growx");
        }
        {
            JButton btnRemoveClient = new JButtonExt("Delete Client");
            btnRemoveClient.addActionListener(new BtnRemoveClientActionListener());
            btnRemoveClient.setMargin(new Insets(2, 2, 2, 2));
            btnRemoveClient.setName("btnRemoveClient");
            pnlClients.add(btnRemoveClient, "cell 1 1, growx, top");
        }
    }

    {
        JButton btnOk = new JButtonExt("OK");
        getRootPane().setDefaultButton(btnOk);
        btnOk.addActionListener(new BtnOkActionListener());
        btnOk.setName("btnOk");
        getContentPane().add(btnOk, "cell 0 4,alignx right");
    }
    {
        JButton btnCancel = new JButtonExt("Cancel");
        btnCancel.addActionListener(new BtnCancelActionListener());
        btnCancel.setName("btnCancel");
        getContentPane().add(btnCancel, "cell 0 4,alignx right");
    }
}

From source file:com.view.TradeWindow.java

private void TraderBlockOrdersActionPerformed(java.awt.event.ActionEvent evt) {
    TableModel dtm = (TableModel) TraderIncomingRequestsTable.getModel();
    int nRow = dtm.getRowCount();
    int nCol = dtm.getColumnCount();
    Object[][] tableData = new Object[nRow][nCol];
    ArrayList<SingleOrder> parsedOrders = new ArrayList();
    ControllerBlockOrders control = new ControllerBlockOrders();

    for (int i = 0; i < nRow; i++) {
        for (int j = 0; j < nCol; j++) {
            tableData[i][j] = dtm.getValueAt(i, j);
        }// www .  j a  v a  2 s . c  o  m
        SingleOrder o = new SingleOrder();
        o.SingleOrderMakeBlocks(tableData[i]);
        parsedOrders.add(o);
    }
    singleOrderLists = control.MakeBlock(parsedOrders);
    showMessageDialog(null, "Blocks have been successfully completed.");
    //dtm.setRowCount(0);
    TraderPlatformBlockedRequests.setLayout(new BorderLayout());
    int count = 1;
    ArrayList<JScrollPane> paneList = new ArrayList<JScrollPane>();
    for (ArrayList<SingleOrder> b : singleOrderLists) {
        JTable jTable = new JTable();
        jTable.setModel(CTraderBlockOrder.getTableModel(b));
        Dimension d = jTable.getPreferredSize();
        // System.out.println(d);
        int rows = jTable.getRowCount();
        // System.out.println(rows);
        JScrollPane jPane = new JScrollPane();
        jPane.setPreferredSize(new Dimension(d.width, jTable.getRowHeight() * rows + 50));
        jPane.add(jTable);
        jPane.setViewportView(jTable);
        paneList.add(jPane);
        count++;
    }

    test.add(blockOptions);
    int i = 0;
    for (final JScrollPane j : paneList) {
        //   JButton btn = new JButton();
        //  btn.setText("Split Block");
        //     btn.setName(""+i);

        JPanel cPanel = new JPanel();
        /*  btn.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            JViewport viewport = j.getViewport(); 
            final JTable mytable = (JTable)viewport.getView();
            final ArrayList<Integer> index = new ArrayList<Integer>();
            for(int row = 0;row<mytable.getRowCount();row++){
                  if((boolean)mytable.getValueAt(row, 11)){
                     index.add(row);
                  }
            }
             SplitBlockActionPerformed(evt,index,cPanel,test);
         }
          });*/
        JCheckBox check = new JCheckBox();
        JLabel label = new JLabel();
        label.setText("Select Block");
        check.setName("" + i);
        check.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                SelectBlockActionPerformed(evt);
            }
        });
        JPanel splitOptions = new JPanel();
        splitOptions.add(label);
        splitOptions.add(check);
        splitOptions.setName("splitOpt");
        //  splitOptions.add(btn);
        cPanel.setName("cPanel" + i);
        cPanel.add(splitOptions);
        cPanel.add(j);
        cPanel.setLayout(new BoxLayout(cPanel, BoxLayout.Y_AXIS));
        test.add(cPanel);
        cPanelList.add(cPanel);
        i++;
    }

    test.setLayout(new BoxLayout(test, BoxLayout.Y_AXIS));
    JScrollPane p = new JScrollPane(test);
    p.setName("ParentP");
    TraderPlatformBlockedRequests.add(p);
    TraderPlatformBlockedRequests.validate();
    TraderPlatformTabbedPane.setSelectedIndex(TraderPlatformTabbedPane.getSelectedIndex() + 1);

}

From source file:net.sf.jasperreports.swing.JRViewerPanel.java

protected void refreshTabs() {
    pnlTabsChangeListenerEnabled = false;

    pnlTabs.removeAll();/*w w  w  .j  a va 2 s.  c om*/
    removeAll();

    JasperPrint jasperPrint = viewerContext.getJasperPrint();
    PrintParts parts = jasperPrint == null ? null : jasperPrint.getParts();
    if (parts == null || !parts.hasParts()) {
        add(scrollPane, java.awt.BorderLayout.CENTER);
    } else {
        if (!parts.startsAtZero()) {
            JPanel partTab = new JPanel();
            partTab.setLayout(new BorderLayout());
            partTab.setName(viewerContext.getJasperPrint().getName());
            pnlTabs.add(partTab);
        }

        for (Iterator<Entry<Integer, PrintPart>> it = parts.partsIterator(); it.hasNext();) {
            PrintPart part = it.next().getValue();
            JPanel partTab = new JPanel();
            partTab.setLayout(new BorderLayout());
            partTab.setName(part.getName());
            pnlTabs.add(partTab);
        }

        add(pnlTabs, java.awt.BorderLayout.CENTER);
    }

    pnlTabsChangeListenerEnabled = true;
}

From source file:game.Clue.ClueGameUI.java

private void CreateBoard() {

    //resize and center frame to fit all components of game(board,scorecard,buttons,etc)
    this.setSize(1030, 670);
    Dimension dimension = java.awt.Toolkit.getDefaultToolkit().getScreenSize();
    int x = (int) ((dimension.getWidth() - this.getWidth()) / 2);
    int y = (int) ((dimension.getHeight() - this.getHeight()) / 2);
    this.setLocation(x, y);

    NonCornerRoom NonCornerRoom_current;
    // Board gameBoard = new Board();
    ArrayList<String> RoomsAndHallways = new ArrayList<>(Arrays.asList("STUDY", "HALLWAY1", "HALL", "HALLWAY2",
            "LOUNGE", "HALLWAY3", "BLANK", "HALLWAY4", "BLANK", "HALLWAY5", "LIBRARY", "HALLWAY6",
            "BILLIARD ROOM", "HALLWAY7", "DINING ROOM", "HALLWAY8", "BLANK", "HALLWAY9", "BLANK", "HALLWAY10",
            "CONSERVATORY", "HALLWAY11", "BALL ROOM", "HALLWAY12", "KITCHEN"));
    ArrayList<String> RoomNames = new ArrayList<>(
            Arrays.asList("Hall", "Library", "BillardRoom", "BallRoom", "DiningRoom"));
    //RoomNames=["Hall","Library","BillardRoom","BallRoom","DiningRoom"];
    ArrayList<NonCornerRoom> NonCornerRooms = new ArrayList<>(Arrays.asList(new NonCornerRoom(""),
            new NonCornerRoom(""), new NonCornerRoom(""), new NonCornerRoom("")));
    for (int i = 0; i < 4; i++) {
        NonCornerRoom_current = NonCornerRooms.get(i);
        NonCornerRoom_current.setRoomName(RoomNames.get(i));
        System.out.println("jlayer=" + NonCornerRoom_current.getRoomName());

    }//  w w w .  j av  a 2s.  c  o m

    gameBoard = new JPanel();
    JPanel gameBoard_background = new JPanel();
    gameBoard_background.setLayout(new BorderLayout(1, 1));
    gameBoard_background.setPreferredSize(new Dimension(701, 590));
    gameBoard_background.setBounds(0, 0, 701, 590);
    jLayeredPane5.add(gameBoard, new Integer(1));
    gameBoard.setLayout(new GridLayout(5, 5));
    gameBoard.setOpaque(false);
    gameBoard.setPreferredSize(new Dimension(701, 590));
    gameBoard.setBounds(0, 0, 701, 590);
    Border roomBoarder = BorderFactory.createLineBorder(Color.white, 2);
    //draw rooms onto board
    for (int i = 0; i < 25; i++) {
        JPanel room_square = new JPanel(new BorderLayout());

        System.out.println(i);
        room_square.setName(RoomsAndHallways.get(i));

        System.out.println(RoomsAndHallways.get(i));
        gameBoard.add(room_square);

        int row = (i / 12) % 2;
        if (row == 0) {
            //room_square.setBackground(i % 2 == 0 ? Color.white : Color.gray);
            //room_square.setBorder(roomBoarder);
            room_square.setOpaque(false);

            //room_square.
            //room_square.add(new JLabel("Room# "+i));
        } else {
            //room_square.setBackground(i % 2 == 0 ? Color.gray : Color.white);
            //room_square.setBorder(roomBoarder);
            room_square.setOpaque(false);
            //room_square.add(new JLabel("Room# "+i));
        }

    }

    //add Players to board (use "for" statement later to reduce lines of code)
    ImageIcon player_icon = new ImageIcon(getClass().getResource("/resources/scarletphoto.png"),
            "MissScarlett");
    JPanel panel = (JPanel) gameBoard.getComponent(3); //MS SCARLET starting position
    player.setIcon(player_icon);
    player.setHorizontalAlignment(SwingConstants.CENTER);
    panel.add(player, SwingConstants.CENTER);

    ImageIcon player2_icon = new ImageIcon(getClass().getResource("/resources/mustardphoto.png"), "Mustard");
    JPanel panel2 = (JPanel) gameBoard.getComponent(9); //ColMustard starting position
    player2.setIcon(player2_icon);
    player2.setHorizontalAlignment(SwingConstants.CENTER);
    panel2.add(player2, SwingConstants.CENTER);
    //panel.add(player, SwingConstants.CENTER);

    ImageIcon player3_icon = new ImageIcon(getClass().getResource("/resources/plumphoto.png"), "ProfessorPlum");
    JPanel panel3 = (JPanel) gameBoard.getComponent(5); //Plum starting position
    player3.setIcon(player3_icon);
    player3.setHorizontalAlignment(SwingConstants.CENTER);
    panel3.add(player3, SwingConstants.CENTER);

    ImageIcon player4_icon = new ImageIcon(getClass().getResource("/resources/peacockphoto.png"), "MsPeacock");
    JPanel panel4 = (JPanel) gameBoard.getComponent(15); //Peacock starting position
    player4.setIcon(player4_icon);
    player4.setHorizontalAlignment(SwingConstants.CENTER);
    panel4.add(player4, SwingConstants.CENTER);

    ImageIcon player5_icon = new ImageIcon(getClass().getResource("/resources/greenphoto.png"), "Mr.Green");
    JPanel panel5 = (JPanel) gameBoard.getComponent(21); //MrGreen starting position
    player5.setIcon(player5_icon);
    player5.setHorizontalAlignment(SwingConstants.CENTER);
    panel5.add(player5, SwingConstants.CENTER);

    ImageIcon player6_icon = new ImageIcon(getClass().getResource("/resources/whitephoto.png"), "Ms.White");
    JPanel panel6 = (JPanel) gameBoard.getComponent(23); //MsWhite starting position
    player6.setIcon(player6_icon);
    player6.setHorizontalAlignment(SwingConstants.CENTER);
    panel6.add(player6, SwingConstants.CENTER);

    ImageIcon room_icon = new ImageIcon(getClass().getResource("/resources/newgamebackground-6.png"));
    JLabel room_icon_label = new JLabel();
    room_icon_label.setIcon(room_icon);

    gameBoard_background.add(room_icon_label);

    jLayeredPane5.add(gameBoard_background, new Integer(0));
    gameBoard_background.setVisible(true);
    room_icon_label.setVisible(true);
    //jLayeredPane5.add(room_icon_label,JLayeredPane.DRAG_LAYER);
    //jLayeredPane5.moveToFront(room_icon_label);

    //jPanel5.add(jLayeredPane1);
    //jPanel5.repaint();
    //jPanel5.setVisible(true);
    //System.out.println("JToggleButton2 Action Performed");
    packageGameState();

    //jPanel3.add(gameBoard, "card4");
}

From source file:com.mgmtp.perfload.loadprofiles.ui.AppFrame.java

/**
 * Mostly created by Eclipse WindowBuilder
 *//*from   w w  w  . jav  a  2s  .co m*/
private void initComponents() {
    setTitle("perfLoad - Load Profile Configurator");
    setSize(1032, 984);
    setLocationRelativeTo(null);
    setDefaultCloseOperation(WindowConstants.DO_NOTHING_ON_CLOSE);
    SwingUtils.setUIFontStyle(Font.PLAIN);
    {
        JMenuBar menuBar = new JMenuBar();
        menuBar.setName("menuBar");
        setJMenuBar(menuBar);
        initMenuBar(menuBar);
    }

    contentPane = new JPanel();
    contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
    setContentPane(contentPane);
    contentPane.setLayout(new MigLayout("insets 0", "[grow][]", "[25px][400][grow]"));
    {
        JToolBar toolBar = new JToolBar() {
            @Override
            protected JButton createActionComponent(final Action a) {
                JButton button = super.createActionComponent(a);
                button.setFocusable(false);
                button.setHideActionText(false);
                return button;
            }
        };
        toolBar.setName("toolBar");
        contentPane.add(toolBar, "cell 0 0 2 1,growx,aligny top");
        initToolBar(toolBar);
    }
    {
        JScrollPane spTree = new JScrollPane();
        spTree.setBorder(new CompoundBorder(
                new TitledBorder(UIManager.getBorder("TitledBorder.border"), "Load Profile Elements",
                        TitledBorder.LEADING, TitledBorder.TOP, null, new Color(0, 0, 0)),
                new EmptyBorder(4, 4, 4, 4)));
        contentPane.add(spTree, "cell 0 1,grow");
        spTree.setName("spTree");
        {
            tree = new JTree();
            tree.addKeyListener(new TreeKeyListener());
            tree.setBorder(new EtchedBorder(EtchedBorder.LOWERED, null, null));
            tree.addTreeSelectionListener(new TreeTreeSelectionListener());
            tree.setShowsRootHandles(true);
            tree.getSelectionModel().setSelectionMode(TreeSelectionModel.SINGLE_TREE_SELECTION);
            tree.setName("tree");
            spTree.setViewportView(tree);
        }
    }
    {
        JPanel pnlMain = new JPanel();
        contentPane.add(pnlMain, "cell 1 1");
        pnlMain.setName("pnlMain");
        pnlMain.setLayout(new MigLayout("insets 0", "[664!]", "[grow][]"));
        {
            JPanel pnlLoadProfileProperties = new JPanel();
            pnlLoadProfileProperties.setBorder(new TitledBorder(null, "Load Profile Properties",
                    TitledBorder.LEADING, TitledBorder.TOP, null, null));
            pnlLoadProfileProperties.setName("pnlLoadProfileProperties");
            pnlMain.add(pnlLoadProfileProperties, "flowx,cell 0 0,grow");
            pnlLoadProfileProperties
                    .setLayout(new MigLayout("insets 4", "[270,grow]8[]8[200]8[]8[200]", "[][][][grow]"));
            {
                lblName = new JLabel("Name");
                lblName.setDisplayedMnemonic('N');
                lblName.setHorizontalAlignment(SwingConstants.CENTER);
                lblName.setName("lblName");
                pnlLoadProfileProperties.add(lblName, "cell 0 0");
            }
            {
                JSeparator separator = new JSeparator();
                separator.setPreferredSize(new Dimension(0, 200));
                separator.setOrientation(SwingConstants.VERTICAL);
                separator.setName("separator");
                pnlLoadProfileProperties.add(separator, "cell 1 0 1 4, growy");
            }
            {
                JLabel lblClient = new JLabel("Clients");
                lblClient.setName("lblClient");
                pnlLoadProfileProperties.add(lblClient, "cell 2 0");
            }
            {
                JSeparator separator = new JSeparator();
                separator.setPreferredSize(new Dimension(0, 200));
                separator.setOrientation(SwingConstants.VERTICAL);
                separator.setName("separator");
                pnlLoadProfileProperties.add(separator, "cell 3 0 1 4, growy");
            }
            {
                lblTargets = new JLabel("Targets");
                lblTargets.setName("lblTargets");
                pnlLoadProfileProperties.add(lblTargets, "cell 4 0");
            }
            {
                txtName = new JTextField();
                lblName.setLabelFor(txtName);
                txtName.setColumns(10);
                txtName.setName("txtName");
                txtName.getDocument().addDocumentListener(dirtyListener);
                pnlLoadProfileProperties.add(txtName, "cell 0 1,growx");
            }
            {
                JScrollPane spClients = new JScrollPane();
                spClients.setBorder(new EtchedBorder(EtchedBorder.LOWERED, null, null));
                spClients.setName("spClients");
                pnlLoadProfileProperties.add(spClients, "cell 2 1 1 3,grow");
                {
                    tblClients = new JCheckListTable();
                    tblClients.setName("tblClients");
                    spClients.setViewportView(tblClients);
                    spClients.setColumnHeaderView(null);
                }
            }
            {
                JScrollPane spTargets = new JScrollPane();
                spTargets.setBorder(new EtchedBorder(EtchedBorder.LOWERED, null, null));
                spTargets.setName("spTargets");
                pnlLoadProfileProperties.add(spTargets, "cell 4 1 1 3,grow");
                {
                    tblTargets = new JCheckListTable();
                    tblTargets.setName("tblTargets");
                    spTargets.setViewportView(tblTargets);
                    spTargets.setColumnHeaderView(null);
                }
            }
            {
                lblDescription = new JLabel("Description");
                lblDescription.setDisplayedMnemonic('D');
                lblDescription.setName("lblDescription");
                pnlLoadProfileProperties.add(lblDescription, "cell 0 2");
            }
            {
                JScrollPane spDescription = new JScrollPane();
                spDescription.setBorder(new EtchedBorder(EtchedBorder.LOWERED, null, null));
                spDescription.setName("spDescription");
                pnlLoadProfileProperties.add(spDescription, "cell 0 3,height 50:50:,grow");
                {
                    taDescription = new JTextArea();
                    taDescription.setFont(txtName.getFont());
                    lblDescription.setLabelFor(taDescription);
                    taDescription.setRows(3);
                    taDescription.setName("taDescription");
                    taDescription.getDocument().addDocumentListener(dirtyListener);
                    spDescription.setViewportView(taDescription);
                }
            }
        }
        {
            JPanel pnlCurveAssignment = new JPanel();
            pnlCurveAssignment.setBorder(new TitledBorder(null, "Active Load Curve Assignment",
                    TitledBorder.LEADING, TitledBorder.TOP, null, null));
            pnlMain.add(pnlCurveAssignment, "cell 0 1,grow");
            pnlCurveAssignment.setLayout(new MigLayout("insets 4", "[grow]", "[grow][]"));
            {
                pnlCard = new JPanel();
                pnlCard.setName("pnlCard");
                pnlCurveAssignment.add(pnlCard, "cell 0 0,grow");
                cardLayout = new CardLayout(0, 0);
                pnlCard.setLayout(cardLayout);
                {
                    stairsPanel = new StairsPanel();
                    stairsPanel.setName("stairsPanel");
                    pnlCard.add(stairsPanel, "stairs");
                }
                {
                    oneTimePanel = new OneTimePanel();
                    oneTimePanel.setName("oneTimePanel");
                    pnlCard.add(oneTimePanel, "oneTime");
                }
                {
                    markerPanel = new MarkerPanel();
                    markerPanel.setName("markerPanel");
                    pnlCard.add(markerPanel, "marker");
                }
                {
                    JLabel lblNoActiveCurve = new JLabel("no active curve assignment");
                    lblNoActiveCurve.setHorizontalAlignment(SwingConstants.CENTER);
                    pnlCard.add(lblNoActiveCurve, "none");
                    lblNoActiveCurve.setName("lblNoActiveCurve");
                }
            }
            {
                btnOk = new JButtonExt("OK");
                getRootPane().setDefaultButton(btnOk);
                btnOk.setEnabled(false);
                btnOk.addActionListener(new BtnOkActionListener());
                btnOk.setMnemonic(KeyEvent.VK_O);
                btnOk.setName("btnOk");
                pnlCurveAssignment.add(btnOk, "cell 0 1,alignx right");
            }
            {
                btnCancel = new JButtonExt("Cancel");
                btnCancel.setEnabled(false);
                btnCancel.addActionListener(new BtnCancelActionListener());
                btnCancel.setMnemonic(KeyEvent.VK_C);
                btnCancel.setName("btnCancel");
                pnlCurveAssignment.add(btnCancel, "cell 0 1,alignx right");
            }
        }
    }
}