Programming > GUIDELINES > Arizona State University CSE 205 View.java (All)
Arizona State University CSE 205 View.java //****************************************************************************** ******************** // CLASS: View // // DESCRIPTION // The View clas... s implements the GUI. It is a subclass of JFrame and implements // the ActionListener interface so that we can respond to user-initiated GUI // events. // // // COURSE AND PROJECT INFO // CSE E205 Object Oriented Programming and Data Structures, SummerB 2020 // Project Number: 3 // // AUTHOR: //****************************************************************************** ******************** package proj3; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing.BoxLayout; import javax.swing.JButton; import javax.swing.JFrame; import javax.swing.JLabel; import javax.swing.JOptionPane; import javax.swing.JPanel; import javax.swing.JTextField; /** * The View class implements the GUI. It is a subclass of JFrame and implements * the ActionListener interface so that we can respond to user-initiated GUI * events. */ public class View extends JFrame implements ActionListener { /** * The width of the View frame. */ public static final int FRAME_WIDTH = 525; /** * The height of the View frame. */ public static final int FRAME_HEIGHT = 225; /** * When the View() ctor is called from Main.run() to create the View, run() * passes a reference to the Main object as the argument to View(). We save * that reference into mMain and then later we can use mMain to communicate * with the Main class. * * mMain is made accessible within this class via accessor/mutator methods * getMain() and setMain(). It shall not be directly accessed. */ private Main mMain = new Main(); /* * Declare GUI related instance variables for the buttons and text fields. */ private JButton mClearButton; private JTextField[] mExamText; private JButton mExitButton; private JTextField[] mHomeworkText; ::::::::::::::::::::::::::::::::::::::::::CONTINUED IN THE ATTACHMENT :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: [Show More]
Last updated: 2 years ago
Preview 1 out of 7 pages
Buy this document to get the full access instantly
Instant Download Access after purchase
Buy NowInstant download
We Accept:
Can't find what you want? Try our AI powered Search
Connected school, study & course
About the document
Uploaded On
Dec 09, 2021
Number of pages
7
Written in
This document has been written for:
Uploaded
Dec 09, 2021
Downloads
0
Views
165
In Scholarfriends, a student can earn by offering help to other student. Students can help other students with materials by upploading their notes and earn money.
We're available through e-mail, Twitter, Facebook, and live chat.
FAQ
Questions? Leave a message!
Copyright © Scholarfriends · High quality services·