public CPanel editClassTypeInputPanel(final ClassType ct) {


        CPanel mainPanel = new CPanel(new BorderLayout(),INPUT_PANEL_PIC);
        CPanel contentPanel = new CPanel(new BorderLayout());
        CPanel labelPanel = new CPanel(new GridLayout(6, 1));
        CPanel textPanel = new CPanel(new GridLayout(6, 1));
        CPanel wrapPanel = new CPanel(new BorderLayout());
        CPanel infoPanel = new CPanel(new BorderLayout());

        wrapPanel.add(new JScrollPane(txtaInfo), BorderLayout.CENTER);

        labelPanel.add(new JLabel(resourse.getString("NAME_TXT")));
        textPanel.add(cbClassName);
        cbClassName.setSelectedItem(ct.getName());
        labelPanel.add(new JLabel(resourse.getString("TYPE_TXT")));
        textPanel.add(cbClassType);

        cbClassType.setSelectedIndex(ct.getType());
        labelPanel.add(new JLabel(resourse.getString("LESSON_WEEK_TXT")));
        textPanel.add(lessonWeek);
        lessonWeek.setSelectedItem(ct.getLessonWeek() + "");
        labelPanel.add(new JLabel(resourse.getString("FEE_45_TXT")));
        textPanel.add(feeLesson45);
        feeLesson45.setText(ct.getFeeLesson45() + "");
        labelPanel.add(new JLabel(resourse.getString("FEE_60_TXT")));
        textPanel.add(feeLesson60);
        feeLesson60.setText(ct.getFeeLesson60() + "");
        infoPanel.add(new JLabel(resourse.getString("INFO_TXT")), BorderLayout.WEST);
        infoPanel.add(wrapPanel, BorderLayout.CENTER);
        txtaInfo.setText(ct.getInfo());
        //create button panel
        CPanel buttonPanel = new CPanel();
        //create Add button
        JButton editButton = new JButton(resourse.getString("SAVE_TXT"));


        editButton.addActionListener(new ActionListener() {
            @Override
            public void actionPerformed(ActionEvent e) {

                String ctName = cbClassName.getSelectedItem().toString();
                int ctType = cbClassType.getSelectedIndex();
                int ctWeek = lessonWeek.getSelectedIndex() + 1;
                String ct45 = feeLesson45.getText().trim();
                String ct60 = feeLesson60.getText().trim();
                String ctInfo = txtaInfo.getText().trim();
                String message = "";

                if (ct45.isEmpty() && ct60.isEmpty()) {
                    message = resourse.getString("EMPTY_CLASSTYPE_FEE45_OR_FEE60");
                } else {
                    if (ct45.isEmpty()) {
                        ct45 = "0";
                    } else if (!ct45.matches("^[0-9.]*$")) {
                        message += resourse.getString("INVALID_FEE45");
                    }
                    if (ct60.isEmpty()) {
                        ct60 = "0";
                    } else if (!ct60.matches("^[0-9.]*$")) {
                        message += resourse.getString("INVALID_FEE60");
                    }
                }
                if (ctInfo.isEmpty()) {
                    message = "";
                } else if (!ctInfo.matches("^[a-zA-Z0-9]*")) {
                    message += "";
                }

                if (message.isEmpty()) {
                    ct.setName(ctName);
                    ct.setType(ctType);
                    ct.setLessonWeek(ctWeek);
                    ct.setFeeLesson45(Float.parseFloat(ct45));
                    ct.setFeeLesson60(Float.parseFloat(ct60));
                    JOptionPane.showMessageDialog(null, "Account has been changed successful!");
                    ctGUI.updateContainerPanel();
                    dispose();
                } else {
                    JOptionPane.showMessageDialog(null, message);
                }
            }
        });


        //create cancel button and add dispose listener
        JButton cancelButton = new JButton(resourse.getString("CANCEL_TXT"));
        cancelButton.addActionListener(new ActionListener() {
            @Override
            public void actionPerformed(ActionEvent e) {
                dispose();
            }
        });

        buttonPanel.add(editButton);
        buttonPanel.add(cancelButton);
        contentPanel.add(labelPanel, BorderLayout.WEST);
        contentPanel.add(textPanel, BorderLayout.CENTER);
        contentPanel.add(infoPanel, BorderLayout.SOUTH);
        mainPanel.add(contentPanel, BorderLayout.NORTH);
        mainPanel.add(buttonPanel, BorderLayout.SOUTH);
        contentPanel.setBorder(BorderFactory.createTitledBorder(resourse.getString("EDIT_TXT")));



        return mainPanel;

    }