![]() |
|
|||||||
|
|
Thread Tools | Search this Thread | Rate Thread |
|
#11
|
||||
|
||||
Re: Exception in thread "main" java.lang.NullPointerExceptionRefer back to post #9, I already gave you a hint, but if you still get stuck, post another reply.
__________________
Use the force...read the source!! WYCIWYG -- what you code is what you get! Last edited by TurboPT : 17-Jun-2009 at 18:22.
|
||||
|
#12
|
|||
|
|||
Re: Exception in thread "main" java.lang.NullPointerExceptionthanx for yr help turbo.... i did get yr hint but the prob is if i initialize like this
JAVA Code:
the executable jar does run from the command prompt but only a minimized blank frame comes up with nothing on it... and an error on the console Code:
Also I when i try running it from intelliJ the KeyListener n action listeners do not respond because I guess i initialized "new"..... Where am i wrong? i cant figure out.... is it that because i m using intelliJ and in the "TaxLotTool.form" GUI i have used GridBagLayout(IntelliJ) for the layout manager in some panels including the main panel? I have even included the forms_rt.jar of intelliJ in the jar's classpath. |
|
#13
|
||||
|
||||
Re: Exception in thread "main" java.lang.NullPointerException1. I don't see (unless I missed it) where the controls are added to the UI? That would explain the 'blank frame'.
2. For the exception, it appears that 'mainPanel' is not initialized, so that could still 'bomb' main, at this statement: JAVA Code:
In the constructor, I didn't suggest that you place a try around every listener (doesn't hurt anything), I was referring to the first statement in the constructor for addShutdownHook() because the Java API mentions three different exceptions that could possibly be thrown by that call. __________________
Use the force...read the source!! WYCIWYG -- what you code is what you get! |
Recent GIDBlog
Problems with the Navy (Chiefs) by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Thread Stopping Exception | Gix | .NET Forum | 12 | 28-Nov-2006 05:30 |
| Thread | itch | C++ Forum | 7 | 10-May-2006 16:10 |
| please help in solving: Exception in thread "main" java.lang.nullpointerexception | vkiran_v | Java Forum | 8 | 09-May-2006 08:06 |
| C++ Copy Constructor & Exception issues | greymalkin | C++ Forum | 3 | 05-Oct-2005 22:36 |
| Sending message to GUI thread that ISNT the main thread | mpviii | MS Visual C++ / MFC Forum | 1 | 20-Apr-2005 13:49 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The