Commit 98f6d9c5 authored by Fardale's avatar Fardale

Merge branch 'master' of gitlab.crans.org:arrighi/prog2

parents 366441b4 4770a5dd
......@@ -4,7 +4,7 @@ import Array._
import java.awt.{Color, Graphics2D}
import javax.swing.ImageIcon
object HelloWorld extends SimpleSwingApplication {
object CercleInvocation extends SimpleSwingApplication {
def top = new MainFrame {
// Valeurs et variables.
private var jeu = new Demineur
......@@ -27,12 +27,12 @@ object HelloWorld extends SimpleSwingApplication {
}
}
val but_fac = new RadioButton("Facile")
val but_moy = new RadioButton("Moyen")
val but_dur = new RadioButton("Difficile")
val but_per = new RadioButton("Personnalisé")
val mutex = new ButtonGroup
val radios = List(but_fac, but_moy, but_dur, but_per)
private val but_fac = new RadioButton("Facile")
private val but_moy = new RadioButton("Moyen")
private val but_dur = new RadioButton("Difficile")
private val but_per = new RadioButton("Personnalisé")
private val mutex = new ButtonGroup
private val radios = List(but_fac, but_moy, but_dur, but_per)
mutex.buttons ++= radios
mutex.select(but_fac)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment