First, the code:
tab_textArea_file.addTab(docLabel, null, scrollPane_textArea, null);
So the situation is that I have a list of files the user can select from. When a user clicks on a file, the contents of the file is read and loaded into a textArea. “docLabel” (which is in the code above) is the string that’s suppose to change to the name of the file selected, but it doesn’t. Is it possible for to change the name within docLabel from the code above? I’ve tested it with a JOptionPane (works), but it’s not working within a tab.
Have you tried something like