DOC PREVIEW
TRINITY CSCI 1321 - Lecture Notes

This preview shows page 1-2 out of 6 pages.

Save
View full document
View full document
Premium Document
Do you want full access? Go Premium and unlock all 6 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 6 pages.
Access to all documents
Download any document
Ad free experience
Premium Document
Do you want full access? Go Premium and unlock all 6 pages.
Access to all documents
Download any document
Ad free experience

Unformatted text preview:

1More GUIs2-28-20062Opening Discussion■What did we talk about last class?■Do you have any questions about the reading?■Do you have any questions about the assignment?3In-Class Example Layout■Let's talk a bit about our in-class example for the semester. Last time we went through and talked about how we could lay out the GUI. I want to revise that discussion to something that might be a bit more flexible.■Now that want us to actually implement that GUI by writing code for it. I want you to write a DrawingApp class and have it so it brings up a frame that looks like what we discussed. You can put in the JTree even.4User I/O in GUIs■How did you do I/O in C/C++? Why won't that mechanism translate into a GUI?■How do we handle user I/O in a Java GUI?■Let's write a little GUI that includes a text field, a list, and the ability to add and remove from the list. For the list use JList. You will have to keep the strings that are added either in an array or a List object. Use the API.■Begin with the top part of the GUI that has a JTextField and two buttons. We'll pause to see what that looks like for someone then add in the JList.5Design of In-Class Example■Now we will work together on the code for the in-class example. We already wrote the top level GUI for it. Now we need to figure out what else goes into that GUI and how we will make the pieces fit together to accomplish our goal.6Minute Essay■How are event handling and anonymous inner classes linked?■We have no class on Thursday. Enjoy your time off, but consider doing some studying and rereading stuff. The midterm is a week from today. I'll be getting you a review sheet electronically. I will hold a review session on Monday afternoon, probably in this room. I'll give you the details via


View Full Document

TRINITY CSCI 1321 - Lecture Notes

Documents in this Course
Recursion

Recursion

11 pages

Iterators

Iterators

10 pages

Actors

Actors

9 pages

Recursion

Recursion

15 pages

Recursion

Recursion

10 pages

Threads

Threads

7 pages

Trees

Trees

11 pages

Load more
Download Lecture Notes
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view Lecture Notes and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view Lecture Notes 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?