{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

20091028-GraphicsOverview

20091028-GraphicsOverview - Things to mention public static...

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

View Full Document Right Arrow Icon
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 for Majors I 1
Background image of page 1

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

View Full Document Right Arrow Icon
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 for Majors I 2
Background image of page 2
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 for Majors I 3
Background image of page 3

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

View Full Document Right Arrow Icon
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 for Majors I 4
Background image of page 4
Image of page 5
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}