new class for swing