• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

null pointer exception in gridbag need help

 
payal sharma
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 396
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi payal,
can u mention the line that is giving exception.
regards
deekasha

 
payal sharma
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic