private JPanel getSelectBahanMakananPanel(){
        JPanel panel = new JPanel(new BorderLayout());
        JPanel panelKategori = new JPanel(new FlowLayout());
        panelKategori.add(new JLabel("Pilih Golongan :"));
        comboBoxKategoriMakanan = new JComboBox<>(makanDikonsumsiController.getListStringGolongan());
        comboBoxKategoriMakanan.addActionListener(new  ActionListener() {

            @Override
            public void actionPerformed(ActionEvent e) {
                customTableModelBahanMakanan.filter(comboBoxKategoriMakanan.getSelectedItem().toString(), 5);
            }
        });
        panelKategori.add(comboBoxKategoriMakanan);
        
        JPanel panelTable = new JPanel(new BorderLayout());
        customTableModelBahanMakanan = new CustomTableModel<BahanMakanan>() {

            @Override
            public Object getDataItem(BahanMakanan data, int column) {
                if (column == 0) {
                    return data.getIdBahanMakanan() ;
                } else if (column == 1) {
                    return data.getNamaBahanMakanan() ;
                } else if (column == 2) {
                    return data.getSatuanUrt()+ "";
                } else if (column == 3) {
                    return data.getSatuanPenukar()+ "";
                } else if (column == 4) {
                    return data.getBeratSatuanUrt()+ "";
                } else if (column == 5) {
                    return data.getGolongan().getNamaGolongan()+ "";
                } else if (column == 6) {
                    return data.getKarbohidrat()+ "";
                } else if (column == 7) {
                    return data.getProtein()+ "";
                } else if (column == 8) {
                    return data.getKalori()+ "";
                } else {
                    return data.getLemak()+ "";
                }
            }
        };
        
        customTableModelBahanMakanan.setColumnName(kategori);
        customTableModelBahanMakanan.setListData(makanDikonsumsiController.getListBahanMakanan());
        tableBahanMakanan = new JTable(customTableModelBahanMakanan);
        tableBahanMakanan.addMouseListener(new MouseAdapter() {
            @Override
            public void mouseClicked(MouseEvent e) {
                JTable table = (JTable) e.getSource();
                Point p = e.getPoint();
                int selectedIndex = table.rowAtPoint(p);
                Long id = (Long) table.getValueAt(selectedIndex, 0);
                makanDikonsumsiController.setCurrentBahanMakananByid(id);
                textFieldNamaMakanan.setText(makanDikonsumsiController.getCurrentBahanMakanan().getNamaBahanMakanan());
                labelSatuanUrt.setText(makanDikonsumsiController.getCurrentBahanMakanan().getSatuanUrt());
            }
        });
        customTableModelBahanMakanan.createRowSorter(tableBahanMakanan);
        JScrollPane scrollPane = new JScrollPane(tableBahanMakanan);
        panelTable.add(scrollPane);
        
        panel.add(panelKategori, BorderLayout.NORTH);
        panel.add(panelTable, BorderLayout.CENTER);
//        customTableModelBahanMakanan.filter(comboBoxKategoriMakanan.getSelectedItem().toString(), 5);
        return panel;
    }