Control the GUI with java code without XML entirely