That's mostly correct, but you can't compare String objects with == symbols. They check if two objects are identical (unless using primitives like int or double), which fails even if they have the same data.
Instead, use userName.equals("Medic")
huehuehue
-
You're working with Swing elements there. Swing's a popular and reasonably powerful GUI that makes graphics less of a nightmare than more low-level stuff. I use it quite frequently. For example, this applet I created shows how closely different amino acids match up based off of a set of weights.
It can get convoluted, though, and you have to be careful to avoid making stupid stuff happen (a common problem when it comes to graphics!)