Use official Oracle tutorial. It has more than enough info for you to understand Java and Swing.