File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes null pointer exception in gridbag need help Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "null pointer exception in gridbag need help" Watch "null pointer exception in gridbag need help" New topic
Author

null pointer exception in gridbag need help

payal sharma
Ranch Hand

Joined: Oct 04, 2000
Posts: 57
I am getting null pointer exception in my code by using panel in place of contentPane.I need help whether this is right way to design form and write code.I also want to add scrollPanes here.Please help me as some here are experience programmer.
deekasha gunwant
Ranch Hand

Joined: May 06, 2000
Posts: 396
Hi payal,
can u mention the line that is giving exception.
regards
deekasha

payal sharma
Ranch Hand

Joined: Oct 04, 2000
Posts: 57
I find the problem.I was using JLabel declaration two times so it was giving problem.I cwas not able to paste whole of my code as it is very very long.
payal
 
 
subject: null pointer exception in gridbag need help