<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>Naotsugu</author_name>
  <author_url>https://blog.hatena.ne.jp/Naotsugu/</author_url>
  <blog_title>A Memorandum</blog_title>
  <blog_url>https://blog1.mammb.com/</blog_url>
  <categories>
    <anon>Scala</anon>
  </categories>
  <description>イベントの扱い SimpleSwingApplication を使用した簡単なイベント処理の例です。Frame にマウスクリック回数を表示する Label を配置します。 import swing._ object Counter extends SimpleSwingApplication { val label = new Label { text = &quot;0&quot; listenTo(mouse.clicks) reactions += { case e: event.MouseClicked =&gt; text = (Integer.parseInt(text) +1).toString } } …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog1.mammb.com%2Fentry%2F20100825%2F1282748414&quot; title=&quot;Scala の Swing サポート#2 イベント処理 - A Memorandum&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>http://cdn-ak.f.st-hatena.com/images/fotolife/N/Naotsugu/20100824/20100824232953.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2010-08-25 00:00:14</published>
  <title>Scala の Swing サポート#2 イベント処理</title>
  <type>rich</type>
  <url>https://blog1.mammb.com/entry/20100825/1282748414</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
