diff options
Diffstat (limited to 'src/com/joshwalters/bookcatalog/AddBook.java')
-rw-r--r-- | src/com/joshwalters/bookcatalog/AddBook.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/com/joshwalters/bookcatalog/AddBook.java b/src/com/joshwalters/bookcatalog/AddBook.java index 05b227c..eab5879 100644 --- a/src/com/joshwalters/bookcatalog/AddBook.java +++ b/src/com/joshwalters/bookcatalog/AddBook.java @@ -48,6 +48,7 @@ class AddBook implements ActionListener { private ISBNLookup bookLookup = null; private BookDatabase bookDatabase = null; private JTable bookCatalogTable = null; + private JTextField notes = null; /** * Get the different objects needed for the class to function. @@ -57,10 +58,11 @@ class AddBook implements ActionListener { * @param bookCatalogTable */ public AddBook(BookDatabase bookDatabase, ISBNLookup bookLookup, - JTable bookCatalogTable) { + JTable bookCatalogTable, JTextField notes) { this.bookDatabase = bookDatabase; this.bookLookup = bookLookup; this.bookCatalogTable = bookCatalogTable; + this.notes = notes; } /** @@ -79,7 +81,7 @@ class AddBook implements ActionListener { .getAuthor(), bookLookup.getDate(), bookLookup .getDescription(), bookLookup.getISBN(), bookLookup .getPrice(), bookLookup.getPublisher(), bookLookup - .getSubject()); + .getSubject(), this.notes.getText()); // Play the beep sound to alert the user that the book was added to // the database. new PlayWavSoundFile("data/sounds/beep.wav").start(); |