This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes Why can't i create a new object? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Reply Bookmark "Why can Watch "Why can New topic
Author

Why can't i create a new object?

Ramzi Hajaj
Greenhorn

Joined: Aug 19, 2012
Posts: 13
Hello everyone

I am having a simple error. I want to create a jframe to say a player already exists and have created a class in its own right. I am new to swing, so am not even sure if this is the right thing to do? Anyway there is an error when i try to create a new object and i cant for the life of me figure out what it is?



The error occurs in the else fragment. Thanks.
Greg Brannon
Bartender

Joined: Oct 24, 2010
Posts: 530
It would be easier to guess at an answer if you were to post the error message and stack trace, copied and pasted exactly as it appears at your end.

It would be even easier to give a complete answer if we could run the code, but that may not be necessary after seeing the error.


Learning Java using Eclipse on OpenSUSE 11.2
Linux user#: 501795
Ramzi Hajaj
Greenhorn

Joined: Aug 19, 2012
Posts: 13
i have resolved this. No worries!!!
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 32654
    
    4
Please tell us how you resolved it.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Why can't i create a new object?
 
Similar Threads
Demon Threads
Help me on userlogin
Instantiate a inner class object
How to call Stored Procedure using jdbcTemplate and store result in object DTO/String/List/Result se
Initializing method local String object.