Loading...
Processing Forum
Recent Topics
All Forums
Screen name:
und3r74k3r
und3r74k3r's Profile
1
Posts
1
Responses
0
Followers
Activity Trend
Last 30 days
Last 30 days
Date Interval
From Date :
To Date :
Go
Loading Chart...
Posts
Responses
PM
Show:
All
Discussions
Questions
Expanded view
List view
Private Message
Problem with class
[5 Replies]
16-Mar-2012 03:51 AM
Forum:
Programming Questions
Hello,
I have a problem with a class in processing. Here is my code:
Buttons[] Button = new Buttons[1];
public class Buttons {
public int x;
}
void setup(){
size(480, 800);
orientation(PORTRAIT);
}
void draw(){
Button[0].x = 10;
fill(0);
text(Button[0].x,10,10);
}
And my Error is: NullPointerException. Why?
«Prev
Next »
Moderate user : und3r74k3r
Forum