changed configuration for swing