Sveta Nartano

Greenhorn
+ Follow
since Feb 06, 2010
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 Sveta Nartano

Hi Nicol!

Main problem here - that you create your class extending JFrame, but you never add any components to the instance of THIS class. Besides you add all the components to the frame that is created in the getJFrame method, which is never called in your code.

You should replace your method



with constructor:


and call it from such main method:




Having your code you can use such main method:


But it's NOT appropriate in this context, because you don't really EXTEND JFrame class (you even don't need to write "extends JFrame" in declaration). You just create some GUICreator class that constructs and fill JFrame instance in getJFrame method.

14 years ago
Hi, everybody!

Today I've passed my SCJP6 with 90%! I'm very happy!

As many people say - exam was much easier that mock tests, sometimes even queerly easier:).
I was surprised that during final review you can't review your answers of drug and drop questions, you can only reset them and reanswer. I did not risk to do this, so I think some of my mistakes were there.

I was also surprised that the questions were not divided in equal parts between themes. It seemed to me that the lion's share of questions concerned flow control and exceptions. But it can be my subjective feeling.

I never wrote anything on JavaRanch forums, but I was reading much. So, I would like to say thank you to:
- All who is writing on this forum, helping and giving hope :)
- Katherine Sierra and Bert Bates for the wonderful book
- authours of ExamLab mock tests - frightening but very useful

All you helped me lot.

14 years ago