changed JFrame to JDialog in detectiveNotes