• Post Reply Bookmark Topic Watch Topic
  • New Topic

jList does't update the answer after changing the selection

 
Adrian Bodolan
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello everyone!
I have a problem with a Netbeans app which gives me trouble for the last few days.
I want to calculate with a formula some inputs (some from text fields, radio buttons and a jlist)
The problems so far are this:

1. If I want to calculate the result without selecting something in the list, it gives me an error

I want to be able to ignore the list items if the user want to.

2. If I select one item in the list (or multiple, does't matter) along with the text fields (which will be always filled with something), it works! The result is acurrate BUT, when I want to change the selection in the list and press again calculate, it doesn't change the result. It stays the same...forever. The textfields or the radio buttons are updating fine though.

I will post my code (part of it, what I think is relevant) and a screenshot from the app.



Please, help me out with this!


 
Adrian Bodolan
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Guys? Anybody please?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!