O'Reilly logo

Java™ Application Development on Linux® by Michael Schwarz, Carl Albing

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required