18.11.2013 Aufrufe

Grafikprogrammierung in Java

Grafikprogrammierung in Java

Grafikprogrammierung in Java

MEHR ANZEIGEN
WENIGER ANZEIGEN

Sie wollen auch ein ePaper? Erhöhen Sie die Reichweite Ihrer Titel.

YUMPU macht aus Druck-PDFs automatisch weboptimierte ePaper, die Google liebt.

Beispiel: JRadioButton<br />

Conta<strong>in</strong>er c;<br />

JRadioButton rb[] = new JRadioButton[4];<br />

...<br />

public Konstruktor() {<br />

c = getContentPane();<br />

c.setLayout(new FlowLayout());<br />

ButtonGroup bg = new ButtonGroup();<br />

for (<strong>in</strong>t i = 0; i < 4; i++) {<br />

rb[i] = new JRadioButton("Box " + (i+1));<br />

bg.add(rb[i]);<br />

c.add(rb[i]);<br />

}<br />

}<br />

11.6 Die Sw<strong>in</strong>g-Klassen 11-103

Hurra! Ihre Datei wurde hochgeladen und ist bereit für die Veröffentlichung.

Erfolgreich gespeichert!

Leider ist etwas schief gelaufen!