Hi Beda,
It sounds like you have a study book for the
SCJP 1.2 exam! That is a very old exam and it did include some I/O and AWT questions. The newer exams (1.4 and 1.5) don't have AWT or Swing as topics, although the 1.5 exam does have I/O as a topic.
hth,
Bert