private fun ChainBuilder(frame: javax.swing.JFrame) { super(java.awt.BorderLayout()) frame = frame THIS = this val customPanel: javax.swing.JPanel = createCustomizationPanel() val presetPanel: javax.swing.JPanel = createPresetPanel() label = javax.swing.JLabel( "Click the \"Begin Generating\" button" + " to begin generating phrases", javax.swing.JLabel.CENTER ) val padding: javax.swing.border.Border = javax.swing.BorderFactory.createEmptyBorder(20, 20, 5, 20) customPanel.setBorder(padding) presetPanel.setBorder(padding) val tabbedPane: javax.swing.JTabbedPane = javax.swing.JTabbedPane() tabbedPane.addTab("Build your own", null, customPanel, customizationPanelDescription) tabbedPane.addTab("Presets", null, presetPanel, presetPanelDescription) add(tabbedPane, java.awt.BorderLayout.CENTER) add(label, java.awt.BorderLayout.PAGE_END) label.setBorder(javax.swing.BorderFactory.createEmptyBorder(10, 10, 10, 10)) }
Creates the GUI shown inside the frame 's content pane .