wireless networking setup and configuration

A topic that I would like to have presented is explaining wireless.

I have set up wireless ethernet by guess and by golly, but I would like to know the "proper" way of doing it, so that I can go to an Internet cafe and have it work, or I can go home and have it work there as well.

How does the computer decide which ethernet card to use, and how can I change it on the fly?