In creating a GUI, I needed to use a JTabbedPane stored inside of a JFrame. I also needed to update the JTabbedPane tabs, but wasn't sure how to do this.
I am new to programming using java graphics, so I first tried using method SwingUtilities.updateComponentTreeUI() to update the JFrame as a whole. This worked to update the window appropriately, but threw a NullPointerException. The program still continued to run.
Does anybody know why this is happening? I will include my code if needed, but I wasn't sure if this is an error that will always occur when trying to update a JFrame containing a JTabbedPane or if it actually may have something to do with the code I have written.
Thanks!