Component getGameComponent() {
        if (Signlink.mainapp != null) {
            return Signlink.mainapp;
        }
        if (super.frame != null) {
            return super.frame;
        } else {
            return this;
        }
    }