How to Repair Leaking Window in Vinyl Siding

What’s the best way to repair a leaking window on a home that’s surrounded by vinyl siding? Water only comes in during heavy rains. My dining room double-window appears to have a broken J-channel. The subfloor under the middle of…