Grafikprogrammierung in Java
Grafikprogrammierung in Java
Grafikprogrammierung in Java
Sie wollen auch ein ePaper? Erhöhen Sie die Reichweite Ihrer Titel.
YUMPU macht aus Druck-PDFs automatisch weboptimierte ePaper, die Google liebt.
public void pa<strong>in</strong>t(Graphics g) {<br />
showStatus("Rollbalkenwert ist " + schieberWert);<br />
g.setColor(Color.red);<br />
g.drawRect(40,80,60,100);<br />
g.fillRect(40,80,60,schieberWert);<br />
g.setColor(Color.blue);<br />
g.drawRect(120,80,60,100);<br />
g.fillRect(120,80 + schieberWert,60,100 - schieberWert);<br />
g.setColor(Color.green);<br />
g.drawRect(200,80,60,100);<br />
g.fillRect(200,80,60,100 - schieberWert);<br />
}<br />
11.5 Applets 11-75