src/Pure/Tools/java_monitor.scala
changeset 72977 e028331c578b
parent 72976 51442c6dc296
child 72981 c78d1dfc6571
equal deleted inserted replaced
72976:51442c6dc296 72977:e028331c578b
    41       }
    41       }
    42 
    42 
    43       val jconsole = new JConsole(false)
    43       val jconsole = new JConsole(false)
    44 
    44 
    45       val screen = GUI.mouse_location()
    45       val screen = GUI.mouse_location()
    46       val width = 1200 min screen.bounds.width
    46       val width = (1200 max (screen.bounds.width / 2)) min screen.bounds.width
    47       val height = 900 min screen.bounds.height
    47       val height = (900 max (screen.bounds.height / 2)) min screen.bounds.height
    48       jconsole.setBounds(
    48       jconsole.setBounds(
    49         screen.bounds.x + (screen.bounds.width - width) / 2,
    49         screen.bounds.x + (screen.bounds.width - width) / 2,
    50         screen.bounds.y + (screen.bounds.height - height) / 2,
    50         screen.bounds.y + (screen.bounds.height - height) / 2,
    51         width, height)
    51         width, height)
    52 
    52