Joris Verbaenen

Greenhorn
+ Follow
since Jan 26, 2012
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Joris Verbaenen

Hi everybody,

Seven years ago, I got some Java course at the university. Now, with some free time, I'm trying to pick things up again and I'm programming a (little) game. Somebody wrote a nice tutorial about it, and I'm trying to follow it. But I can't seem to get the hang of JFrame.

I would like to have a JFrame. I define different classes, each representing a different screen (a starting screen, a playing screen, losing- or winning screen). But, when my program runs, I just have an empty JFrame. None of the labels is showing.

All of the "screen"-type classes have the same structure, so I just show you my starting class ("applicationmain") and the "startingscreen" class.

ApplicationMain:



and the StartScreen class:



I would appreciate any help! Looking already two evenings at these classes and can't seem to find my problem.
12 years ago