English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

I have a problem - The bookkeeper @ school needs to keep track of books. I want to make a table that she can organize by any of the columns, like in iTunes, you can order the table by Artist, song, album, etc. Does anyone know how I would be able to program a code for a program like this using Java (I use BlueJ)?

2007-08-28 12:39:37 · 1 answers · asked by mbolling09 2 in Computers & Internet Programming & Design

1 answers

Without reference to Java particularly, it is nothing more than a database being sorted by various fields, the sort being triggered not by a menu item or a choice dialog but by buttons at the top of the column. You just redisplay the whole screen when done. The only tricky part is deciding what makes the most sense: resetting the view so the first item in the (sorted) column is at the top of the screen or the visible rows shown before the sort still show (like if rows 20-40 were showing before sort, after the sort, there are still 19 rows of the database above the screen image or the cursor row (as in spreadsheet) still shows on the screen after the sort, the view having been shifted if necessary to follow it.

2007-08-28 12:47:57 · answer #1 · answered by Mike1942f 7 · 0 0

fedest.com, questions and answers