title: Creating JButtons dynamically with WindowBuilder
body: <p>In Eclipse, I am using WindowBuilder to develop a GUI. I am trying to dynamically create and add buttons and labels to a panel, and then update the GUI when another button is pressed to display the next set of buttons/labels. </p>
  
  <p>I have been trying for hours and just cannot get it to work. The code I have is generating the first 5 buttons successfully, but then when I click 'Next' (the button that should update the GUI) it doesn't work. However, I am using sysout.println and can see that the actual text values of the JLabels I am trying to change are changing, it's just not updating on the GUI. The GUI will eventually read data from a database and populate the labels/buttons according to that, but initially I am just trying to get it to work with manually created objects. </p>