Ok, I will post the code for the three classes as it's not too long.
package guiDemonstration; import java.awt.*; import java.awt.event.*; import javax.swing.*; import javax.swing.event.ChangeEvent; import javax.swing.event.ChangeListener; public class TabbedGUI { //create fields ...