Bookmark Topic Watch Topic
  • New Topic

need help with jcombobox

 
Karen Wilson
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
  • Report post to moderator
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
Sheriff
Pie
Posts: 20512
54
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Report post to moderator
Please UseOneThreadPerQuestion. Let's continue here.
 
    Bookmark Topic Watch Topic
  • New Topic