File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes Where to put Search in the GUI Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "Where to put Search in the GUI" Watch "Where to put Search in the GUI" New topic

Where to put Search in the GUI

Aruneesh Salhotra
Ranch Hand

Joined: May 12, 2004
Posts: 167
I wasnt exactly sure where to put the search in the GUI.
I am using a JTable in a scrollpane, and the frame is has a borderlayout.

North I have the toolbar, center is the jtable, south is a place holder for something like status.

What is the best approach for search that people have followed.
1. InputBox
2. two text fields and then a search button
3. any other
Eiji Seki
Ranch Hand

Joined: Feb 15, 2006
Posts: 88
2-3 choices, radio buttons
few choices, select
many choices, text input (combo filtering optional)
suggestions and new input, combo

Notice that few and many are relative. :roll:

It does not look quering db for choices (since you would have to do that everytime an input object is used), so i guess we should use a regular text input for each field.

I am far from the GUI implementation and never wrote a Swing interface.
Lol I guess I just shouldn't be answering this topic, but...

SCJD URLyBird (WIP)<br />SCJP 1.5
I agree. Here's the link:
subject: Where to put Search in the GUI
It's not a secret anymore!