#Code won't compile | Netbeans IDE
3 messages · Page 1 of 1 (latest)
⌛ This post has been reserved for your question.
Hey @devout garden! Please use
/closeor theClose Postbutton above when you're finished. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.
TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.
tfTest is a JTextField array with a size of 4. In your switch-case inside the addUIControls method you try to assign an element to index 4 of the array yielding an IndexOutOfBoundsException