computer science: awt

Réussis tes devoirs et examens dès maintenant avec Quizwiz!

create a color using

3 integers from 0 to 255 for red, green, and blue.

awt stands for

Abstract Windowing Toolkit

awt doesn't follow

MVC

grid layout

arrange components into a set number of rows and columns

border layout

arrange into five separate areas: center, north, south, east, west

layouts

choose how java will arrange the components in a JPanel

awt components are heavyweight

components

flow layout

default layout, arranges one component after another

awt is old

framework for creating GUIs

more code is needed to

implement awt controls functionally

awt components require

java.awt.package

awt supports

limited number of GUI controls

create a font using a given

name, style, and size

Color color3

new Color(0, 0, 0); // black

Color color6

new Color(0, 0, 255); // blue

Color color5

new Color(0, 255, 0); // green

Color color8

new Color(0, 255, 255); // cyan-teal

Color color2

new Color(127, 127, 127); // gray

Color color4

new Color(255, 0, 0); // red

Color color9

new Color(255, 0, 255); // magenta-purple

Color color7

new Color(255, 255, 0); // yellow

Color color1

new Color(255, 255, 255); // white

Font font1

new Font("Arial", Font.PLAIN, 25);

Font font2

new Font("Comic Sans MS", Font.BOLD, 50);

Font font3

new Font("Verdana", Font.ITALIC, 30);

awt doesn't support

pluggable look and feel

awt programs are not

portable

null layout

programmer must choose x and y coordinates for all components


Ensembles d'études connexes

Intro to Anesthesia(and Patient Prep)

View Set

Personal Finance Notes Unit 2: Chapter 5

View Set

MN Real Estate Salesperson Course I Final

View Set

Chapter 21 - The Statement of Cash Flows Revisited

View Set

Scientists and what they discovered- atoms

View Set

Osgood Schlatter Syndrome/Sinding Larson Johansson Syndrome

View Set