qwerky | 3 Jul 18:58
Picon

[scala.swing] WindowClosing event not working


reactions += {
            case WindowClosing(`mainFrame`) =>
                println("Exiting")
}

not called on closing.
other events working ok.

what i'm doing wrong ? and where can i find good tutorial/examples on
scala.swing - api documentation is very scarce.
--

-- 
View this message in context: http://www.nabble.com/-scala.swing--WindowClosing-event-not-working-tp24326042p24326042.html
Sent from the Scala mailing list archive at Nabble.com.

gvelez | 4 Jul 07:17
Picon

Scala programmers in US?


Hello all

Its likely in the next month we'll be able to hire a few programmers for a
semantic-web related job.  We've heard about Scala and its sounds promising,
but I'm not finding Scala resumes on Monster.com or Craigslist.org.  Is
there a Scala job board somewhere?  Ideally we want someone who is located
in or would relocate to New York, but remote work might be possible.  

I'm not ready yet to actually post the job opening, but trying to do a bit
of research ahead of time.

Thanks!

Golda
Head of Engineering
Disruptive Logic, Ltd
(520) 440-1420
gvelez17 <at> gmail.com
--

-- 
View this message in context: http://www.nabble.com/Scala-programmers-in-US--tp24331451p24331451.html
Sent from the Scala mailing list archive at Nabble.com.

David MacIver | 4 Jul 11:55
Picon

Re: Scala programmers in US?

Hi,

There isn't a specific job board, but the general consensus seems to
be that it's absolutely fine to post job listings to the mailing list.

Regards,
David

2009/7/4 gvelez <gvelez17 <at> gmail.com>:
>
> Hello all
>
> Its likely in the next month we'll be able to hire a few programmers for a
> semantic-web related job.  We've heard about Scala and its sounds promising,
> but I'm not finding Scala resumes on Monster.com or Craigslist.org.  Is
> there a Scala job board somewhere?  Ideally we want someone who is located
> in or would relocate to New York, but remote work might be possible.
>
> I'm not ready yet to actually post the job opening, but trying to do a bit
> of research ahead of time.
>
> Thanks!
>
> Golda
> Head of Engineering
> Disruptive Logic, Ltd
> (520) 440-1420
> gvelez17 <at> gmail.com
> --
> View this message in context: http://www.nabble.com/Scala-programmers-in-US--tp24331451p24331451.html
(Continue reading)

martin odersky | 4 Jul 12:17
Picon
Picon
Favicon

Re: Scala programmers in US?

On Sat, Jul 4, 2009 at 11:55 AM, David MacIver<david.maciver <at> gmail.com> wrote:
> Hi,
>
> There isn't a specific job board, but the general consensus seems to
> be that it's absolutely fine to post job listings to the mailing list.
>
Indeed. I know that there are a fair number of programmers with good
Scala knowledge who are looking for employment. But so far the mode
was that these programmers were looking at job ads from employers,
either on this list or in the job listings at the sygneca wiki.
I really want to encourage everyone in that category to post your
resume on job sites. It's the best way to get the ball rolling.

Cheers

 -- Martin

qwerky | 5 Jul 13:18
Picon

How to catch WindowClosing event in MainFrame ?


subj
--

-- 
View this message in context: http://www.nabble.com/How-to-catch-WindowClosing-event-in-MainFrame---tp24342133p24342133.html
Sent from the Scala mailing list archive at Nabble.com.

Neil Bartlett | 5 Jul 13:24
Picon
Gravatar

Re: How to catch WindowClosing event in MainFrame ?


http://www.google.com/search?&q=java+swing+tutorial

Regards
Neil

qwerky wrote:
> 
> subj
> 

--

-- 
View this message in context: http://www.nabble.com/How-to-catch-WindowClosing-event-in-MainFrame---tp24342133p24342177.html
Sent from the Scala mailing list archive at Nabble.com.

qwerky | 5 Jul 15:06
Picon

Re: How to catch WindowClosing event in MainFrame ?


Not working :

    override def top = new MainFrame {
        val mainFrame = this
        .................................................................
        listenTo( genStartButton, mainFrame )
        reactions += {
            case WindowClosing(`mainFrame`) =>
                println("Closing")
        }
        peer.setDefaultCloseOperation(WindowConstants.DO_NOTHING_ON_CLOSE)
    }

WindowActivated, WindowDeactivated, WindowDeiconified working.

--

-- 
View this message in context: http://www.nabble.com/How-to-catch-WindowClosing-event-in-MainFrame---tp24342133p24342950.html
Sent from the Scala mailing list archive at Nabble.com.

Johannes Rudolph | 5 Jul 15:49

Re: Re: How to catch WindowClosing event in MainFrame ?

Looking at the source code, I would guess the problem is, that
MainFrame itself registers a reaction to listen for WindowClosing
which calls System.exit. After this reaction would be called your
reaction would be called -- if the process had not already exited by
then...

See http://lampsvn.epfl.ch/trac/scala/browser/scala/tags/R_2_7_5_final/src/swing/scala/swing/MainFrame.scala

On Sun, Jul 5, 2009 at 3:06 PM, qwerky<ukpyr666 <at> gmail.com> wrote:
>
> Not working :
>
>    override def top = new MainFrame {
>        val mainFrame = this
>        .................................................................
>        listenTo( genStartButton, mainFrame )
>        reactions += {
>            case WindowClosing(`mainFrame`) =>
>                println("Closing")
>        }
>        peer.setDefaultCloseOperation(WindowConstants.DO_NOTHING_ON_CLOSE)
>    }
>
>
> WindowActivated, WindowDeactivated, WindowDeiconified working.
>
> --
> View this message in context: http://www.nabble.com/How-to-catch-WindowClosing-event-in-MainFrame---tp24342133p24342950.html
> Sent from the Scala mailing list archive at Nabble.com.
>
(Continue reading)

qwerky | 5 Jul 16:16
Picon

Re: Re: How to catch WindowClosing event in MainFrame ?


thanks, change to [i]override def top = new Frame[/i] fixed problem.

--

-- 
View this message in context: http://www.nabble.com/How-to-catch-WindowClosing-event-in-MainFrame---tp24342133p24343455.html
Sent from the Scala mailing list archive at Nabble.com.

Ingo Maier | 5 Jul 22:20
Picon
Picon
Favicon

Re: Re: How to catch WindowClosing event in MainFrame ?

This has already been fixed in trunk.

Ingo

Johannes Rudolph wrote:
> Looking at the source code, I would guess the problem is, that
> MainFrame itself registers a reaction to listen for WindowClosing
> which calls System.exit. After this reaction would be called your
> reaction would be called -- if the process had not already exited by
> then...
> 
> See http://lampsvn.epfl.ch/trac/scala/browser/scala/tags/R_2_7_5_final/src/swing/scala/swing/MainFrame.scala
> 
> On Sun, Jul 5, 2009 at 3:06 PM, qwerky<ukpyr666 <at> gmail.com> wrote:
>> Not working :
>>
>>    override def top = new MainFrame {
>>        val mainFrame = this
>>        .................................................................
>>        listenTo( genStartButton, mainFrame )
>>        reactions += {
>>            case WindowClosing(`mainFrame`) =>
>>                println("Closing")
>>        }
>>        peer.setDefaultCloseOperation(WindowConstants.DO_NOTHING_ON_CLOSE)
>>    }
>>
>>
>> WindowActivated, WindowDeactivated, WindowDeiconified working.
>>
(Continue reading)


Gmane