I would like to place one gridpanel containing a moving background and on top if it I would like to display an other grid panel as the main content. How do I do this?
package o1.game
import scala.swing._
import scala.swing.event._
import java.awt.Color
import java.awt.event._
import java.awt.{geom}
object Problem extends SimpleSwingApplication {
val myGrid = new GridPanel(rows0=200,cols0=200){
override def paintComponent(g:Graphics2D){
}
contents += new GridPanel(rows0=200,cols0=200){
}
}
def top = new Frame{
contents = myGrid
}
}