Fixed one error by adding javax.swing.*