This program displays all odd numbers between 1 and 49 (including 1 and 49) ... and displays the sum of all those odd numbers at the end. Less than 30 lines!
I would avoid graphics for a while. If I were you I would learn key concepts like Object Orientation in Java. That is, learn things like classes, inheritance, abstraction, polymorphism, and interfaces.
Looks promising. Keep working on Java. It's a good "learning" language. There's a lot of other good things out there, though. If you ever need help, just ask me :)