Win a copy of Head First Agile this week in the Agile forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Why is this happening?  RSS feed

 
Ertan Hasani
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello , can someone of you tell me why is this happening ?

I made an array of JComboBox , and I made a for loop to be shown on JFrame 10 JComboBoxes. But when I'm comment the code (picture1) , when I'm runnin the code everything is going fine (the JComboBoxes are not showing ) (picture2).

But when I'm uncommenting the code (picture3) , when I'm runnin the code , On the window is now showing anything (picture4) , and it show to me that the code has an error (picture5).
p.s The array of JComboBoxes should be shown next to Profesori label.










 
Darryl Burke
Bartender
Posts: 5167
11
Java Netbeans IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ertan, I had asked you to please BeForthrightWhenCrossPostingToOtherSites
http://www.dreamincode.net/forums/topic/377406-jcombobox-null-pointer-exception/
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!