private fun createLeftSide(): javax.swing.JPanel? { val leftPanel: javax.swing.JPanel = javax.swing.JPanel() listModel = CustomListModel() leftPanel.setLayout(java.awt.BorderLayout()) listBox = javax.swing.JList<String>(listModel) listBox.setCellRenderer(JlistRenderer()) listBox.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION) listBox.addListSelectionListener(CustomListSelectionListener()) val scrollPane: javax.swing.JScrollPane = javax.swing.JScrollPane(listBox) scrollPane.setBorder(javax.swing.BorderFactory.createEmptyBorder()) leftPanel.add(scrollPane, java.awt.BorderLayout.CENTER) scrollPane.setBorder(javax.swing.BorderFactory.createTitledBorder("Dialogue states:")) val controlPanel: javax.swing.JPanel = createControlPanel() leftPanel.add(controlPanel, java.awt.BorderLayout.SOUTH) return leftPanel }
Creates the panel on the left side of the window