20091028-GraphicsOverview

20091028-GraphicsOverview - CSE 115/503 Introduction to...

Info iconThis preview shows pages 1–5. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: CSE 115/503 Introduction to Computer Science Things to mention public static void main(String args) imports comments block comments /* */ single-line comments // javadoc comments and tags (?) /** */ CSE 115/503 Introduction to Computer Science 11 CSE 115/503 Introduction to Computer Science Using the Java graphics classes In this slide set we will explain the basics of how to create graphical programs. Some advanced issues will be glossed over (e.g. thread safety, graphics library design). In CSE116 we will revisit these and other more advanced topics. CSE 115/503 Introduction to Computer Science 22 CSE 115/503 Introduction to Computer Science Graphical elements There are two basic types of graphical elements: Containers able to hold graphical objects, such as containers and components Components must be put into containers able to generate events when manipulated CSE 115/503 Introduction to Computer Science 33 CSE 115/503 Introduction to Computer Science Containers Top-level containers some containers are called top-level because they do not need to be place inside any other containers javax.swing.JFrame is an example (JDialog and JApplet are others) Other containers (not top-level) most containers must be placed inside some other container javax.swing.JPanel is an example CSE 115/503 Introduction to Computer Science 44 CSE 115/503 Introduction to Computer Science...
View Full Document

Page1 / 15

20091028-GraphicsOverview - CSE 115/503 Introduction to...

This preview shows document pages 1 - 5. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online