Initialize the contents of the frame.
()
| 143 | * Initialize the contents of the frame. |
| 144 | */ |
| 145 | private void initialize() { |
| 146 | this.panel_Setup = this; // new JPanel(); |
| 147 | SpringLayout sl_panel_Setup = new SpringLayout(); |
| 148 | this.panel_Setup.setLayout(sl_panel_Setup); |
| 149 | |
| 150 | this.btnContinue_SetupContinue = new JButton(Gui.CONTINUE_TEXT); |
| 151 | this.configureContinueButton(this.btnContinue_SetupContinue); |
| 152 | this.btnContinue_SetupContinue.addActionListener(arg0 -> this.uponContinueIntern.run()); |
| 153 | sl_panel_Setup.putConstraint(SpringLayout.SOUTH, this.btnContinue_SetupContinue, -10, SpringLayout.SOUTH, this.panel_Setup); |
| 154 | sl_panel_Setup.putConstraint(SpringLayout.EAST, this.btnContinue_SetupContinue, -10, SpringLayout.EAST, this.panel_Setup); |
| 155 | this.panel_Setup.add(this.btnContinue_SetupContinue); |
| 156 | |
| 157 | JButton btnSelectPath = new JButton(Gui.BROWSE_TEXT); |
| 158 | Gui.configureBrowseButton(btnSelectPath); // test |
| 159 | btnSelectPath.setFont(Gui.DEFAULT_FONT); |
| 160 | sl_panel_Setup.putConstraint(SpringLayout.EAST, btnSelectPath, 0, SpringLayout.EAST, this.btnContinue_SetupContinue); |
| 161 | btnSelectPath.addActionListener(e -> { |
| 162 | String path = this.textField_MinecraftPath.getText(); |
| 163 | this.selectMinecraftPath.run(path); |
| 164 | }); |
| 165 | this.panel_Setup.add(btnSelectPath); |
| 166 | |
| 167 | JButton btnNewButton = new JButton(Gui.BROWSE_TEXT); |
| 168 | sl_panel_Setup.putConstraint(SpringLayout.EAST, btnNewButton, -10, SpringLayout.EAST, this.panel_Setup); |
| 169 | btnNewButton.setFont(Gui.DEFAULT_FONT); |
| 170 | btnNewButton.addActionListener(e -> { |
| 171 | String path = this.textField_SourcePath.getText(); |
| 172 | this.selectSourcePath.run(path); |
| 173 | }); |
| 174 | this.panel_Setup.add(btnNewButton); |
| 175 | |
| 176 | this.textField_MinecraftPath = new JTextField(); |
| 177 | sl_panel_Setup.putConstraint(SpringLayout.SOUTH, btnSelectPath, 0, SpringLayout.SOUTH, this.textField_MinecraftPath); |
| 178 | sl_panel_Setup.putConstraint(SpringLayout.EAST, this.textField_MinecraftPath, -128, SpringLayout.EAST, this.panel_Setup); |
| 179 | sl_panel_Setup.putConstraint(SpringLayout.WEST, btnSelectPath, 6, SpringLayout.EAST, this.textField_MinecraftPath); |
| 180 | this.textField_MinecraftPath.setFont(Gui.DEFAULT_FONT); |
| 181 | this.addTextFieldChangeListener(this.textField_MinecraftPath, this.editedTextFieldMinecraftPathIntern); |
| 182 | this.panel_Setup.add(this.textField_MinecraftPath); |
| 183 | this.textField_MinecraftPath.setColumns(10); |
| 184 | |
| 185 | this.textField_SourcePath = new JTextField(); |
| 186 | sl_panel_Setup.putConstraint(SpringLayout.WEST, btnNewButton, 6, SpringLayout.EAST, this.textField_SourcePath); |
| 187 | sl_panel_Setup.putConstraint(SpringLayout.EAST, this.textField_SourcePath, -128, SpringLayout.EAST, this); |
| 188 | sl_panel_Setup.putConstraint(SpringLayout.SOUTH, btnNewButton, 0, SpringLayout.SOUTH, this.textField_SourcePath); |
| 189 | this.textField_SourcePath.setFont(Gui.DEFAULT_FONT); |
| 190 | this.addTextFieldChangeListener(this.textField_SourcePath, this.editedTextFieldSourcePathIntern); |
| 191 | this.panel_Setup.add(this.textField_SourcePath); |
| 192 | this.textField_SourcePath.setColumns(10); |
| 193 | |
| 194 | JLabel lbl_MinecraftPath = new JLabel("Minecraft Path"); |
| 195 | sl_panel_Setup.putConstraint(SpringLayout.WEST, this.textField_MinecraftPath, 0, SpringLayout.WEST, lbl_MinecraftPath); |
| 196 | lbl_MinecraftPath.setFont(Gui.DEFAULT_FONT); |
| 197 | sl_panel_Setup.putConstraint(SpringLayout.WEST, lbl_MinecraftPath, 10, SpringLayout.WEST, this.panel_Setup); |
| 198 | sl_panel_Setup.putConstraint(SpringLayout.NORTH, this.textField_MinecraftPath, 6, SpringLayout.SOUTH, lbl_MinecraftPath); |
| 199 | sl_panel_Setup.putConstraint(SpringLayout.NORTH, lbl_MinecraftPath, 10, SpringLayout.NORTH, this.panel_Setup); |
| 200 | this.panel_Setup.add(lbl_MinecraftPath); |
| 201 | |
| 202 | JLabel lbl_SourcePath = new JLabel("Steam Path"); |
no test coverage detected