Table of Contents
Using AWT Components
PPT Slide
AWT Components
Frame
How to Use Buttons?
How to Use Labels?
How to Use Checkboxes?
How to Use Choices?
How to Use TextField & TextArea
How to Use Lists?
How to Use Menus?
How to Use Canvases and Graphics Primitives?
drawLine(x1,y1,x2,y2)
fillOval(x,y,w,h)drawOval(x,y,w,h)
fillPolygon(int[] xs, int[] ys)drawPolygon(int[] xs, int[] ys)
fillRect(x,y,w,h)drawRect(x,y,w,h)
fillRoundRect(x,y,w,h,rw,rh)drawRoundRect(x,y,w,h,rw,rh)
fillArc(x,y,w,h,sa,a)drawArc(x,y,w,h,sa,a)
drawString(s,x,y)FontMetrics
drawString, Font, & FontMetrics
Layout of Components
Use Layout Managers
How to Use BorderLayout?
How to Use FlowLayout?
How to Use CardLayout?
How to Use GridLayout?
Absolute Positioning
|
Author: Prefrerred User
Email: zhou@sci.brooklyn.cuny.edu
Home Page: www.sci.brooklyn.cuny.edu/~zhou
|