daniela butnar

Greenhorn
+ Follow
since Mar 16, 2009
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
(keep public parts private until JForum day)
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt
Moderation Tools

Recent posts by daniela butnar

Campbell Ritchie wrote:You will always get an error if you try to start an application from a class without a main method.
If you put "public" inside a method the compiler will always flag that as an error; you can't have methods inside methods.

By the way: it isn't public void paintComponent(Graphics g). If you use Java 1.4.2 or older it's protected void paintComponent(Graphics g) and if you use Java 5 or newer it's
@Override
protected void paintComponent(Graphics g)
.
And you always put
super.paintComponent(g);
as the first line of that method.



Hi,

I still don't understand.

I have this example, I don't have errors but it doesn't shows me anything.


I don't know what I do wrong. If you can, pleas help me.

Thank you.
8 years ago