aspose file tools*
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


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Beginning Java
Reply locked New topic
Author

need help with jcombobox

Karen Wilson
Ranch Hand

Joined: Nov 19, 2012
Posts: 68
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

Joined: Oct 27, 2005
Posts: 19720
    
  20

Please UseOneThreadPerQuestion. Let's continue here.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: need help with jcombobox