((PatchEditorFrame) desktop.getSelectedFrame()).faderMoved((byte) i, (byte) msg.getData2());
((PatchEditorFrame) JSLDesktop.getSelectedFrame()).faderMoved((byte) i, (byte) msg.getData2());
    private static void sendFaderMessage(ShortMessage msg) {        int channel = msg.getChannel();	int controller = msg.getData1();        for (int i = 0; i < Constants.NUM_FADERS; i++) {	    if ((appConfig.getFaderController(i) == controller)		&& (appConfig.getFaderChannel(i) == channel)) {		((PatchEditorFrame) desktop.getSelectedFrame()).faderMoved((byte) i, (byte) msg.getData2());		break;	    }	}    }