23 lines
472 B
Groovy
23 lines
472 B
Groovy
package com.jdbernard.timestamper
|
|
|
|
import java.awt.Point
|
|
|
|
class PunchcardDialogController {
|
|
// these will be injected by Griffon
|
|
def model
|
|
def view
|
|
|
|
void mvcGroupInit(Map args) {
|
|
|
|
def loc = model.mainMVC.view.frame.location
|
|
Point p = new Point(0, (int) model.mainMVC.view.frame.bounds.height + 50)
|
|
p.translate((int) loc.x, (int) loc.y)
|
|
view.dialog.location = p
|
|
}
|
|
|
|
/*
|
|
def action = { evt = null ->
|
|
}
|
|
*/
|
|
}
|