Maybe you are talking about Batman Beyond.
"In the pilot episode, we see approximately 20 years into the future where an aging Batman, equipped with a high-tech Batsuit, takes on the kidnappers of Bunny Vreeland (possibly the daughter of Veronica Vreeland). During the battle, Batman suffers a heart attack, which forces him to betray a life-long principle by threatening a criminal with a gun. Because of this, Bruce Wayne reluctantly decides to retire the Batman persona.
The story then fast-forwards another twenty years, where Gotham City is now a futuristic megalopolis equipped with staggering high rises and hovering/flying vehicles. Bruce Wayne is now a recluse, living in bitter isolation with no companion but his guard dog, Ace. It is implied by virtue of his continuing to fight crime long after he should have, and his retaining of the costumes worn by Robin, Nightwing, and Batgirl, that even before he had a heart attack, something horrible transpired that caused Bruce to sever his ties with the Justice League and forbid his allies to ever again assume their alter-egos. (The events which caused all of this are revealed in Batman Beyond: Return of the Joker.)
In 2039 (100 years since Batman's first appearance in the real world), Terry McGinnis is an athletic 16-year-old high school student and reformed troublemaker with a deeply ingrained sense of personal justice. In the pilot episode, Terry saves a fellow passenger on a commuter rail from a member of the Jokerz gang, and later single-handedly takes on an entire gang of Jokerz to defend his girlfriend, ultimately resulting in a harrowing high-speed motorcycle chase through Neo-Gotham's expressways. The chase ends on the grounds of Wayne Manor, where a fleeing Terry runs into the elderly Bruce Wayne. Bruce and Terry fend off the Jokerz side-by-side, but the exertion aggravates Wayne's heart condition. Terry helps Bruce back to the manor and, while staying there, he discovers the entrance to the Batcave. Chased out by a recovered and angered Bruce, Terry comes home to discover that his father had been murdered, apparently by the vengeful Jokerz. Soon after, Terry finds out that the man actually responsible for the murder was Derek Powers, his father's employer. He "borrows" the Batsuit, intending to bring Powers to justice. Bruce initially opposes his efforts, but Terry is able to convince him otherwise, and subsequently defeats Powers. Realizing that crime and corruption are running rampant in Gotham, Bruce offers Terry the chance to assume the role of Batman.
Terry continues the battle against crime, tutored by Bruce and aided by a new, high-tech Batsuit that augments his abilities, fires Batarangs from the wrists, flies using jets fired from the feet, allows eavesdropping through a hypersensitive touch microphone, and provides camouflage abilities. He comes to have his own rogues gallery, such as the seductive shape-shifter Inque, the hypnotist Spellbinder, the bitter, deaf sound expert Shriek, the deadly assassin Curare, the insane terrorist Mad Stan, the African hunter Stalker, a new version of the Royal Flush Gang, and the Jokerz, a gang idolizing the notorious Joker. However, on occasion, Terry is also forced to face his mentor's old foes, such as the atrophying Mr. Freeze, Bane (elderly, wasted, and dying from his consumption of Venom, the substance that gave him his strength), the immortal Ra's al Ghul, and ultimately, the reborn Joker.
Terry's first foe is Derek Powers, a ruthless billionaire who took over Wayne Industries, converting it into Wayne-Powers, and is later accidentally mutated into a radioactive monstrosity known as Blight. Powers had Terry's father, Warren, murdered after Warren discovered that Powers was developing a biological weapons program. The first season ended with a showdown between Batman and Blight aboard an abandoned nuclear submarine, where Powers was in hiding after his identity as Blight was revealed to the world by his ambitious son Paxton, who planned to usurp his father as chairman of Wayne-Powers.
Maxine "Max" Gibson is a 17-year-old computer genius who discovers Batman's secret identity, and helps Terry with everything from computer hacking, to babysitting, to coming up with excuses for Terry's girlfriend Dana Tan. Max plays an integral part in Batman's war on crime, essentially as his Alfred.
Terry also finds one other ally, though a begrudging one: Barbara Gordon, the former Batgirl. Having followed in the footsteps of her father, James Gordon, Barbara is now Police Commissioner of Gotham City. In the episode "A Touch of Curare," Barbara reveals to Terry that she and Bruce had once been romantically involved. However, she is unhappy with the idea of a new Batman, especially a teenager, as she is still haunted by the same event that caused Bruce to go into isolation. However, she knows that she and the police under her command need Batman, whether she likes it or not. Further, she understands