I am fairly new to Java
and programming and want some advice on this test application I want to write.
The general Idea is that it will contain a list of books with a Title
, Author
, Date stamp
and a read or not
status.
The date stamp
must apply when then read status
becomes true.
It will have a GUI that displays the books in alphabetical order in a table format. If possible, I want the column names
to be filterable, i.e if you click title
it should sort by title
, click again and it sorts in descending order. Likewise with author
and status
.
I want to have a search
field that will be able to search books based on title
and author
.
I also want to be able to add books by clicking a button that brings up a pop up window to enter Title
, Author
, and read status
.
The application will run on a PC
and thus I think it will be fine to store state by serializing
.
I please need advice on a few elements, my plan is to:
Write the Book class
Create it's fields, constructors, getters and setters etc.
Write the Library class
Contains a list (what would be best to use here?
ArrayList
etc?) of the books in the library the worker class that will build the GUI, read in the objects and populate the Library to be used for the table information. I am sketchy on building a table like this, would I useJTable
?
One column must be a check box with the status
, which can be clicked and a pop up confirming to change the status.
I am sure I will have more questions once I have feedback :) thanks for any advice.