![]() On exit, using a WindowListener to check the exit before the closing action of the frame, if there are no unsaved modification then exit, else popup a message that ask if want to save before exit, the popup message is a JOptionPane.Īt this point I need to do only the pop up message when closing the window and I need to do some fixes to the layout, as you can see in the screen below. JFrame cannot be resizable in this application (setResizable(false)) This project use the GroupLayout as Layout Manager. SaveBtn is a JButton, when pressed write the new value to the file (or in the DB). Totals are three JTextField, not editable, when start application they contains the previous month total. ![]() ![]() Advanced Setting is a JCheckBox, if selected enable editing to tfAccrual and Constant Loss. By default is not editable.ĬalcBtn is a JButton, which at click calc the total. Constant loss is a JTable, and contains only standard monthly expenses. The first four text fields are JTextFields, tfAccrual is not editable (setEnabled(false)) and by default set to 200.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |