There are plenty of towns with great schools within a 45 minute commute to NYC, however I would need to know your price range and size of house (# of bedrooms) you will be needing in order to recommend specific areas. If I can be of any assistance, please don't hesitate to contact me at your convenience.
Many people move to Verona because they like the schools there. The mid-town direct train is conveniently located in Montclair. Depending on what your price range is and what you are looking for in a property, several towns could work well for you: Montclair, Glen Ridge, Verona, Little Falls, or Maplewood.
If you'd like some assistance or are interested in more options, I'd be glad to help you find the right area for you.
Prudential New Jersey Properties