Quoted By:
There's nothing to be ashamed of.
IMO when a person has done something 'shameful', the best way to overcome judgement from others is by being candid about what happened, and communicating the steps you are taking to change things. People are usually very receptive to self-awareness and self-betterment.
People judge alcoholics all the time. On the other hand, people RESPECT alcoholics who work really hard to stay sober. Alcoholics who are candid about their addiction and communicate the choices they make to stay on top of their addiction are well-respected.
People treat mental illnesses similarly. People might feel weird about the fact that you were involuntarily committed, but they will ultimately respect your efforts to avoid falling off the deep end again. You can't change having mental health issues (or maybe you can - I don't know what you're dealing with here), but you CAN change your methods for managing it. You CAN find support systems among your friends. You CAN start therapy or medication or something. Think about what you can do to make things better, and if you ever find yourself needing to tell someone "yeah, I was committed", you can follow it up with the good news: "It gave me a safe space to think things through. I've started therapy and I'm getting into sewing to keep me busy. I'm on new medication now, and I've worked out a safety net among my friends so I can go to them for help when things start going south. I'm doing much better." (or something to that effect).
You're good, man. You'll be ok.