Gen. NE WIN dominated the government from 1962 to 1988 , first as military ruler , then as self-appointed president , and later as political kingpin .