Προγραμματισμός ΙΙ: Γραφικές Εφαρμογές

Προγραμματισμός ΙΙ

Γραφικές Εφαρμογές

Γραφικά

Χρήσιμες μεθόδοι AWT

Παράδειγμα drawRect

Παράδειγμα

Το κέντρο του τετραγώνου είναι (99,89) και έχει πλευρά μήκους 38.

drawRect(int x, int y, int width, int height);

x = ?
y = ?
width = ?
height = ?

Παράδειγμα

x = 80
y = 70
width = 38
height = 38


Creative Commons Licence
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.