Paintable Widgets

Beschreibung

Computer Programming (Java) Karteikarten am Paintable Widgets, erstellt von desnunan am 22/03/2014.
desnunan
Karteikarten von desnunan, aktualisiert more than 1 year ago
desnunan
Erstellt von desnunan vor mehr als 10 Jahre
30
0

Zusammenfassung der Ressource

Frage Antworten
What is the syntax for constructing an Image? Image image = new ImageIcon ("catzilla.jpg"). getImage(); Put this code in paintComponent() to display a JPEG
What is the syntax for putting a JPEG on a widget? graphics.drawImage (myPic,x,y,this);
How do you draw 2D graphics on a widget? Use a graphics object to paint shapes. Typical methods to call on a Graphics object are: graphics.setcolor (Color.blue); graphics.fillRect (x,y,width,height);
Zusammenfassung anzeigen Zusammenfassung ausblenden

ähnlicher Inhalt

Java Week 5 Object Oriented Programming
Troy Bowlin
Making a GUI
desnunan
Java Practice 1
Ummm No
PEGA CSSA Prep
Wendell Phipps
Getting a User Event
desnunan
Listener
desnunan
Handling Swing Component Events
desnunan
Playing with Swing Components
desnunan
Make a JScrollPane
desnunan
Java Practice 2
Ummm No
Servion - Java Questionnaire
rohit.benedict