my dog learned polymorphism
The moose likes Beginning Java and the fly likes need help with jcombobox Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Reply locked New topic

need help with jcombobox

Karen Wilson
Ranch Hand

Joined: Nov 19, 2012
Posts: 70
I am creating a project that is connected to a database. The database contains details about houses i.e address, number of rooms, price etc.
I have two frames in the project - first frame has a text box for the user to enter the location of the house they want to search for and a combobox with different price ranges (Any, €100,000 - €150,000, €150,000 - €200,000, €200,000 - €250,000, €250,000 - €350,000, €350,000 - €500,000, over €500,000).
The second frame then display all houses with the location that the user entered.

I have the search function working for when the user enters a location, but now i need to add code for the combobox.

I am not sure how to display the houses within the price range selected from the combobox

here is the code from the first frame

and here is the code to display the results of the search in the second frame:

i tried adding some code for price but it does nothing

i couldnt paste all the code here because you can only post 80 characters in each code block
Rob Spoor

Joined: Oct 27, 2005
Posts: 20269

Please UseOneThreadPerQuestion. Let's continue here.

How To Ask Questions How To Answer Questions
I agree. Here's the link:
subject: need help with jcombobox
jQuery in Action, 3rd edition