This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
I am unsure of what to do. whenever i add it would get an error "Syntax error on token "list", VariableDeclaratorId expected after this token - Syntax error on". Also I would get another error, "Syntax error on token(s), misplaced construct(s)" Anybody willing to help?
It is suppose to be a simple GUI program as part of a game
John Jai wrote:You have placed the statements in the class body. The below statements should be moved to a method body.
Well... you should have a method that are called to build the ui when the constructor is called, that is correct.
But in this case, that is not the error, it is in the order that you have declared things.
Look at this:
You are using the variable pnl before it is declared. that is not possible. You need to create the Panel before you add anything to it. You can't draw on a paper that you don't have.
Joined: May 31, 2011
Ove Lindström wrote:You are using the variable pnl before it is declared. that is not possible. You need to create the Panel before you add anything to it. You can't draw on a paper that you don't have.
Joined: Oct 02, 2011
sorry for the late reply, but thanks for the answers