This page is no longer maintained — Please continue to the home page at www.scala-lang.org

Modal Dialog in scala.swing

1 reply
mailleux
Joined: 2008-08-23,
User offline. Last seen 4 years 7 weeks ago.
I was wondering if there is a way to create modal custom dialogs  using scala.swing. Up to now I've gone arround this requirement by creating normal Frames, but I now need to block access to the other windows (or think of another way of blocking input). Is there a way to create a Modal Dialog?

Thomas
Victor Mateus O...
Joined: 2009-02-09,
User offline. Last seen 42 years 45 weeks ago.
Re: Modal Dialog in scala.swing
Hi,

I have created a wrapper for JDialog class, but until now I haven't had time to talk about with Ingo...

By now, i have just the basics:
class VDialog(owner: Frame) extends UIElement with RootPanel with Publisher
{
  override lazy val peer = new JDialog(owner.peer)
  //stuff for modallity
}

The name is VDialog because the scala swing alread have a Dialog object... I need talk with Ingo to resolve that issue.

[]s
Victor

On Thu, Mar 5, 2009 at 3:37 PM, Thomas Sant Ana <mailleux@gmail.com> wrote:
I was wondering if there is a way to create modal custom dialogs  using scala.swing. Up to now I've gone arround this requirement by creating normal Frames, but I now need to block access to the other windows (or think of another way of blocking input). Is there a way to create a Modal Dialog?

Thomas



--
GNU/Linux user #5f5f5f - http://counter.li.org

Copyright © 2012 École Polytechnique Fédérale de Lausanne (EPFL), Lausanne, Switzerland