i\'m working on my first GUI program and almost finished the last class is a jFrame that has a .txt file and a button to close the window and i don\'t know how to append my
where to place my .txt file?
You can try any one
// Read from same package 
InputStream in = getClass().getResourceAsStream("abc.txt");
// Read from resources folder parallel to src in your project
File file = new File("resources/abc.txt");
// Read from src/resources folder
InputStream in = getClass().getResourceAsStream("/resources/abc.txt");

--EDIT--
Must read A Visual Guide to Layout Managers.
Here is some points from your code:
null layout Rules.setLayout(null);JFrame#setVisible(true); in the end when all the components are addedSwingUtilities.invokeLater() to initialize the GUI