buy them when you get there. There are places where you can buy swim trunks but for pools Koreans prefer the tight nut-huggers. I got some pretty sweet ones online but if you are leaving in a few days, just buy them there.
Last time I went to Thailand, the shops were full of cheap western style "swim-ish" shorts.