You want 'resFrame' to be resistortests object:

resistortests resFrame = new resistortests();

Then set the name of the frame in the resistortests() constructor. You should also respect Java...