Hello everyone, I just stared learning
Java few weeks ago. When studying about how to create a JFrame in Swing, I came across the code (1) , in
Core Java 1.2 : Volume 1 Fundamentals:
My question is why the author create SimpleFrame class? Why dont just go straight forward like in the code (2)? Thanks so much.
Code (1)
---
Code (2):