คือตอนนี้ผมกำลังหัดทำ Java Applet แล้วอยากทราบว่าการใช้ event listener เช่น เมธอด actionPerformed() ใน ActionListener สามารถใช้ คำสั่งเงื่อนไขพวก if else ได้หรือป่าวคับ ขอตัวอย่างสักเมธอดด้วยก็ดีนะคับ
ขอบคุณมากมายคับ
คือตอนนี้ผมกำลังหัดทำ Java Applet แล้วอยากทราบว่าการใช้ event listener เช่น เมธอด actionPerformed() ใน ActionListener สามารถใช้ คำสั่งเงื่อนไขพวก if else ได้หรือป่าวคับ ขอตัวอย่างสักเมธอดด้วยก็ดีนะคับ
ขอบคุณมากมายคับ
I'm sorry that I cannot write in Thai.
In method actionPerformed(ActionListener al)
you can write anything inside this method.
and you can use al properties which is object that stand for ActionListener.
this method is normally method but it call from any object which have a ActionListener interface.
Actions : (View-Readers)
There are no names to display.