Testing java.swing