SAN FRANCISCO -- Professional golfer Dustin Johnson showed off his golf swing at AT&T Park on Wednesday, splashing several balls into McCovey Cove.

The Giants teamed up with TaylorMade Golf for the event, which took place before batting practice prior to the game against the Astros. Johnson hit balls with his driver from home plate and was later joined by Giants players and personnel, who tried their hand at sending golf balls toward McCovey Cove.

"If it was a baseball, I'd be a little nervous, but a golf ball, I can handle that," Johnson said.

After Johnson, Wednesday starter Matt Cain wowed the crowd with an especially long drive on his only swing -- only after Giants general manager Brian Sabean jokingly said he was going to go back inside if Cain took a swing. Sabean was seen jokingly looking away as Cain swung.

"One swing was enough for him," manager Bruce Bochy said.

In February, Cain's golf swing caught the attention of the golf world at the AT&T Pebble Beach National Pro-Am's celebrity shootout when he hit a 330-yard drive.

"I knew he was a pretty good golfer. They were telling me about that before," Johnson said.

Johnson, who played baseball up until high school, said he occasionally finds his way into batting cages.

"If I wasn't playing the U.S. Open tomorrow, I'd probably [take batting practice]," Johnson said.

Lincecum looks to make mental adjustment

SAN FRANCISCO -- Sounding more like a psychologist than a struggling pitcher, Tim Lincecum spoke Wednesday of the need to get "in touch with my identity" and regain the swagger he maintained while winning two Cy Young Awards and dominating the 2010 postseason.

Lincecum, who owns an unsightly 2-7 record with a 6.00 ERA, said that his path to recovery must involve "remembering who I am, remembering what I've done and taking that out there with me. Not going out there gloatful, but [with] kind of a sense of arrogance a little bit."

To that end, Lincecum discussed his slump Wednesday with pitching coach Dave Righetti and bullpen coach Mark Gardner. They had him watch video of his 14-strikeout, two-hit gem in Game 1 of the 2010 Division Series against Atlanta, which the Giants won, 1-0. The objective, Lincecum said, was "trying to get that feel back and knowing what that mindset was."

Lincecum pointed out that his fastball that night hovered in the 90-91 mph range, which is his usual velocity now.

"I was spotting my fastball better," Lincecum said. "... I was just executing pitches."

Lincecum also believes that before he can command his pitches, he must command himself.

"It's just getting back to being yourself and knowing who that is," he said. "I know a lot of it has been mental. I feel like that is just coming in touch with my identity and who I am and what I've done."

Lincecum senses that a steady mindset will lead to steadier pitching. Because, at one point or another, various aspects of his game have betrayed him.

"At one point it's a bad inning, and another it's walks, and another it's not being aggressive in the strike zone or throwing too many secondary pitches," he said. "Those kind of things get in your head, when it comes down to just executing what pitch the catcher [calls]. ... I'm just looking for that break where I'm trusting my stuff out there 100 percent of the time."

Manager Bruce Bochy seconded Lincecum's realizations.

"You have to have that confidence and you have to realize you have a gift," Bochy said. "Don't let that self-doubt creep in there. ... It doesn't matter what we think; we know how good he is. It's always up to the player to believe in how good he is. This is how he has to hit the mound."