First: I'm new to this. I've searched around a bit but think a human might be able to answer my question better than the search engines so far.
So I understand that you create a class representing your GUI, add a bunch of controls to it, then start running it. My question is twofold: one relates to structure, one relates to how to access a text box.
So here's the code:
Here are the questions:
1. Let's say I want to open a file and input all the contents into the JTextArea "txtBox". How do I access that control to add text to it?
2. Where should I do that? To clarify: what method should I add or utilize to do that. I don't think it should be in the constructor JCheck() if I insert multiple files - should I create another function to do this? And where should I call it from? The run() function?
I know these are fairly entry level questions but I'd like to set myself straight before I start writing poorly formed Java code and any references you can point me to would be awesome too.