<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>kotsubu-chan</author_name>
  <author_url>https://blog.hatena.ne.jp/kotsubu-chan/</author_url>
  <blog_title>続・ひよ子のきもち</blog_title>
  <blog_url>https://kotsubu-chan.hatenadiary.org/</blog_url>
  <categories>
    <anon>Swing</anon>
  </categories>
  <description>ボタンを選択したときの処理を特定するときには、補足情報（動作コマンド）を利用できます。それには、次のように、 public String getActionCommand()メソッド getActionCommand() が便利です。この例題では、次のようにすると、 def actionPerformed(self, e): KitPanel(e.source.actionCommand).show()イベントが発生したボタン e.source から、後処理を規定する情報 actionCommand が得られます。動作コマンドを省略すると、規定値として、ボタンのテキストに指定したのと同じ文字列…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkotsubu-chan.hatenadiary.org%2Fentry%2F20080325%2F1221738679&quot; title=&quot;ボタンの動作を規定する - 続・ひよ子のきもち&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></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2008-03-25 20:51:19</published>
  <title>ボタンの動作を規定する</title>
  <type>rich</type>
  <url>https://kotsubu-chan.hatenadiary.org/entry/20080325/1221738679</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
