You need an instance of WorkerClass
first
Workerclass worker = new WorkerClass();
WorkerClass.ExampleSwingWorker1 trying = worker.new ExampleSwingWorker1();
trying.execute();
Read more: Inner classes|Nested classes
Note: If it doesn't use WorkerClass instance method's think it to make it static
then you don't need an instance of WorkerClass to create a ExampleSwingWorker1
instance.
Note2: It's recommended that you add @Override
annotation. Reasons? Read here