Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

comboBox problem need help bad  RSS feed

 
Kendra Payne
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
newbie here. I have a program I am working on and-it opens with a splash screen then the following code runs. The problem is when I do a sort by...it comes up please enter comboBoxChanged with a field below it. I am so confused and don't know what the problem is. I realllllly appreciate your help.

 
Michael Dunn
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
looks like this is the offending bit of code



if you step through from the first line:
if (arg == "title");
1) should be arg.equals("title")
2) whether true or false, the if() won't do anything because of the trailing ; (semi-colon)
3) again, whether true of false, the code will continue to the next line
search(arg, title);
which appears to produce a JOptionPane.

this will be repeated for the other if()'s
 
Kendra Payne
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
THANK YOU, THANK YOU, THANK YOU!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!