• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Why is this happening?

 
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.










 
Bartender
Posts: 5167
11
Netbeans IDE Opera Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ertan, I had asked you to please BeForthrightWhenCrossPostingToOtherSites
http://www.dreamincode.net/forums/topic/377406-jcombobox-null-pointer-exception/
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic