กระดานแสดงความคิดเห็น
Home
Contents
Articles
Quiz
Members
Sponsor
Print-friendly
MENU
ปรับปรุง : 2566-10-15 (กระดานแสดงความคิดเห็น)
เว็บเพจหน้านี้สำหรับผู้ดูแลเท่านั้น
รหัส secure
=>
นำตัวอักษร สีขาวบนพื้นแดง มาป้อนในช่องนี้
edit_topic_password =>
<center><table width=90% border=0 bgcolor=#000080><tr><td><font color=white size=4>หาวิธีแสดงภาษาไทยใน applet ก็ยังไม่พบ แต่มีอีก 2 วิธี</td></tr></table><table width=90% bordercolor=#000080 border=1><tr><td bgcolor=white><br>วิธีแรกลอง jre แต่เครื่องลง msjavx86 ไปแล้วหาจุดถอนไม่ได้ ต้องลองเครื่องอื่น<br /> วิธีที่สอง ใช้ jedit แต่ลงไม่ได้ เพราะลง microsoft java ไปแล้วเช่นกัน<br /> บางทีปัญหาที่แก้ไม่ตกเรื่องภาษาไทยใน applet อาจเป็นเพราะ msjavx86 ก็ได้<br /> /*<br /> http://www.programming.de/java_tutorial/j_tutor07.php<br /> http://berry.cpe.mut.ac.th/java/Modern/Chap09.pdf<br /> http://www.jedit.org<br /> http://www.tosdn.com/script/list.php?sccat=6<br /> http://www.faqs.org/docs/think_java/TIJ316.htm<br /> init() start() paint() repaint() stop() destroy()<br /> - init( ) Automatically called to perform first-time initialization of the applet, <br /> - start( ) Called every time the applet moves into sight on the Web browser to allow <br /> the applet to start up its normal operations (especially those that are shut off by stop( )). <br /> Also called after init( ).<br /> - stop( ) Called every time the applet moves out of sight on the Web browser to allow <br /> the applet to shut off expensive operations. Also called right before destroy( ).<br /> - destroy( ) Called when the applet is being unloaded from the page to perform final release <br /> of resources when the applet is no longer used<br /> - found 11, Minimize plus 100, Cp1252 in Appletviewer ISO8859_1<br /> */<br /> import java.applet.*;<br /> import java.awt.*;<br /> public class x extends Applet {<br /> int i = 0;<br /> public void init() { i = 1; repaint(); }<br /> public void start() { i += 10; repaint(); }<br /> public void stop() { i += 100; repaint(); }<br /> public void destroy() { }<br /> public void paint(Graphics g) {<br /> setBackground(new Color(255,255,200));<br /> Font fnt = new Font("Angsana NEW",Font.PLAIN,20);<br /> g.setFont(fnt); // problem on thai font<br /> g.drawString(i + "ดูที่นี่",20,20);<br /> }<br /> }<br /> <br><br></td></tr><tr><td align=right bgcolor=black><font color=white><small><b>จากคุณ :</b> บุรินทร์ <a href=mailto:></a><a title='203.155.1.252'>.</a><br> 09:28am (7/02/07)</font></td></tr></table></center>