Appendix B. A Java Swing GUI for BudgetPro
This is the listing of the GUI for BudgetPro. For a discussion, see Chapter 16.
1 package net.multitool.gui; 2 3 import java.awt.*; 4 import java.awt.event.*; 5 import javax.swing.*; 6 import javax.swing.event.*; 7 import javax.swing.table.*; 8 import java.util.*; 9 import net.multitool.core.*; 10 11 /** 12 * This class is the main application class for the BudgetPro gui 13 */ 14 15 public class 16 BudgetPro 17 { 18 Account top; 19 Account current; 20 21 // gui components 22 private JFrame frame; // needed by dialogs to root themselves 23 private JLabel nam; 24 private JLabel tot; 25 private JLabel val; 26 private JButton upton = new JButton( new ImageIcon("net/multitool/gui/back.gif")); 27 private JButton ...
Get Java™ Application Development on Linux® now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.