naludon latanaprasit  (68 views)

 

What is naludon doing now?

ชีวิตน่าเบื่อ
More than 1 month ago  ·  Comment »

Age

26

Location

noontabure, Thailand

Birthday

August 18
 
Advertisement

Info

http://skybuster.hi5.com - Send it to your friends

Age

26

Birthday

August 18

Location

noontabure, Thailand

 

About Me

=_+

Interests

JavaProgramming

Favorite Music

import javax.swing.JTextArea ;
import javax.swing.JMenu ;
import javax.swing.JMenuBar ;
import javax.swing.JMenuItem ;
import javax.swing.JRadioButtonMenuItem ;
import javax.swing.JScrollPane ;
import javax.swing.JFrame ;
import javax.swing.JPopupMenu ;
import javax.swing.ButtonGroup ;
import java.awt.event.InputEvent ; // ***
import java.awt.event.KeyEvent ; // ***
import java.awt.event.KeyListener ; // ***
import javax.swing.KeyStroke ; // ***
import java.awt.event.ActionEvent ;
class Gui extends JFrame implements KeyListener {
Gui ( ) {
setTitle ( " My Edit " ) ;
setDefaultCloseOperation ( JFrame.EXIT_ON_CLOSE ) ;
}
JMenuItem miCreate = new JMenuItem ( "CreateNewFile" ) ;
JMenuItem miOpen = new JMenuItem ( "Open" ) ;
static JMenuItem miSave = new JMenuItem ( "Save" ) ;
JMenuItem miExit = new JMenuItem ( "Exit" ) ;
JRadioButtonMenuItem miNull = new JRadioButtonMenuItem ( "File Null" , true ) ;
JRadioButtonMenuItem miJava = new JRadioButtonMenuItem ( "Java File" ) ;
JRadioButtonMenuItem miText = new JRadioButtonMenuItem ( "Text File" ) ;
JMenuItem miFont = new JMenuItem ( "Font Format" ) ;
JMenuItem miH1 = new JMenuItem ( "About" ) ;
JMenuBar mainMenu ( ) {
JMenu mFile = new JMenu ( "File" ) ;
mFile.setMnemonic ( KeyEvent.VK_I ) ;
miSave.setEnabled ( false ) ;
mFile.add ( miCreate ) ; mFile.add ( miOpen ) ; mFile.add ( miSave ) ;
/* miSave.addActionListener ( new ActionListener ( ) {
public void actionPerformed ( ActionEvent evt ) {
System.out.println ( "Menu item 'New' clicked." ) ;
}
} ) ;
*/ mFile.addSeparator ( ) ; mFile.add ( miExit ) ;
JMenu mFormat = new JMenu ( "Format" ) ;
mFormat.setMnemonic ( KeyEvent.VK_M ) ;
ButtonGroup bg = new ButtonGroup ( ) ;
bg.add ( miNull ) ; bg.add ( miJava ) ; bg.add ( miText ) ;
mFormat.add ( miNull ) ; mFormat.add ( miJava ) ; mFormat.add ( miText ) ;
mFormat.addSeparator ( ) ; mFormat.add ( miFont ) ;
JMenu mHelp = new JMenu ( "Help" ) ;
mHelp.add ( miH1 ) ;
mHelp.setMnemonic ( KeyEvent.VK_H ) ;
JMenuBar mb = new JMenuBar ( ) ;
mb.add ( mFile ) ; mb.add ( mFormat ) ; mb.add ( mHelp ) ;
return mb ;
}
JMenuItem miCut = new JMenuItem ( "Cut" ) ;
JMenuItem miCopy = new JMenuItem ( "Copy" ) ;
JMenuItem miPaste = new JMenuItem ( "Paste" ) ;
//JMenuItem miDelete = new JMenuItem ( "Delete" ) ;
JPopupMenu pm ( ) {
JPopupMenu p = new JPopupMenu ( ) ;
p.add ( miCut ) ; p.add ( miCopy ) ; p.add ( miPaste ) ; //p.add ( miDelete ) ;
p.addSeparator ( ) ;
return p ;
}
static String las = "" ;
static JTextArea mainText = new JTextArea ( ) ;
JScrollPane mainPaper ( ) {
mainText.setEditable ( false ) ;
JScrollPane sp = new JScrollPane ( mainText ) ;
mainText.addKeyListener ( this ) ;
return sp ;
}
public void keyTyped ( KeyEvent e ) {
}
public void keyPressed ( KeyEvent e ) {
int cout = 0 , comma2 = 0 , comma = 0 ;
for ( int i = 0 ; i < mainText.getSelectionEnd ( ) ; i++ )
if ( mainText.getText ( ).charAt ( i ) == '\'' && comma == 0 )
comma = 1 ;
else if ( mainText.getText ( ).charAt ( i ) == '\'' && comma == 1 )
comma = 0 ;
else if ( mainText.getText ( ).charAt ( i ) == '"' && comma2 == 0 )
comma2 = 1 ;
else if ( mainText.getText ( ).charAt ( i ) == '"' && comma2 == 1 )
comma2 = 0 ;
else if ( mainText.getText ( ).charAt ( i ) == '{' && comma2 == 0 && comma == 0)
cout++ ;
else if ( mainText.getText ( ).charAt ( i ) == '}' && comma2 == 0 && comma == 0 )
cout-- ;
keyCout = cout ;
if ( mainText.getSelectionEnd ( ) > 0 )
if ( mainText.getText ( ).charAt ( mainText.getSelectionEnd ( ) - 1 ) == '\t' && e.getKeyChar ( ) == '}' )
e.setKeyCode ( 8 ) ;
}
static int keyCout = 0 ;
public void keyReleased ( KeyEvent e ) {
if ( e.getKeyChar ( ) == '\n' )
for ( int i = 0 ; i < keyCout ; i++ )
mainText.insert ( ( "\t" ) , mainText.getSelectionEnd ( ) ) ;
}
}
 

Favorite Movies

import javax.swing.*;
import java.awt.event.*;
import java.awt.*;
class Edit extends Gui implements java.awt.event.ActionListener {
public static void main ( String [ ] args ) {
new Edit ( ) ;
}
java.util.Random ran = new java.util.Random ( ) ;
Edit ( ) {
setBounds ( ran.nextInt ( 600 ) , ran.nextInt ( 400 ) , 500 , 300 ) ;
setGuiItam ( ) ;
setVisible ( true ) ;
}
void setGuiItam ( ) {
setJMenuBar ( mainMenu ( ) ) ;
add ( mainPaper ( ) ) ;
miH1.addActionListener ( this ) ;
miH1.setAccelerator ( KeyStroke.getKeyStroke (
KeyEvent.VK_A , ActionEvent.ALT_MASK ) ) ;
miCreate.addActionListener ( this ) ;
miCreate.setAccelerator ( KeyStroke.getKeyStroke (
KeyEvent.VK_C , ActionEvent.ALT_MASK ) ) ;
miOpen.addActionListener ( this ) ;
miOpen.setAccelerator ( KeyStroke.getKeyStroke (
KeyEvent.VK_O , ActionEvent.ALT_MASK ) ) ;
miSave.addActionListener ( this ) ;
miSave.setAccelerator ( KeyStroke.getKeyStroke (
KeyEvent.VK_S , ActionEvent.ALT_MASK ) ) ;
miExit.addActionListener ( this ) ;
miExit.setAccelerator ( KeyStroke.getKeyStroke (
KeyEvent.VK_Q , ActionEvent.CTRL_MASK ) ) ;
miNull.addActionListener ( this ) ;
miNull.setAccelerator ( KeyStroke.getKeyStroke (
KeyEvent.VK_N , ActionEvent.ALT_MASK ) ) ;
miJava.addActionListener ( this ) ;
miJava.setAccelerator ( KeyStroke.getKeyStroke (
KeyEvent.VK_J , ActionEvent.ALT_MASK ) ) ;
miText.addActionListener ( this ) ;
miText.setAccelerator ( KeyStroke.getKeyStroke (
KeyEvent.VK_T , ActionEvent.ALT_MASK ) ) ;
miFont.addActionListener ( this ) ;
miFont.setAccelerator ( KeyStroke.getKeyStroke (
KeyEvent.VK_F , ActionEvent.ALT_MASK ) ) ;
mainText.addMouseListener ( new MouseAdapter ( ) {
public void mouseReleased ( MouseEvent e ) {
if ( e.isPopupTrigger ( ) )
pm ( ).show ( e.getComponent ( ) , e.getX ( ) , e.getY ( ) ) ;
}
} ) ;
miCut.addActionListener ( this ) ;
miCopy.addActionListener ( this ) ;
miPaste.addActionListener ( this ) ;
//miDelete.addActionListener ( this ) ;
}
static javax.swing.JDialog dHelp = new DialogH1 ( ) ;
static javax.swing.JDialog dFont = new DiFont ( ) ;
public void actionPerformed ( java.awt.event.ActionEvent e ) {
String s = e.getActionCommand ( ) ;
if ( s.equals ( "About" ) )
dHelp.setVisible ( true ) ;
if ( s.equals ( "Save" ) )
new FileAction ( ).Save ( ) ;
if ( s.equals ( "Open" ) )
if ( new FileAction ( ).Open ( ) )
setTitle ( new FileAction ( ).file.getName ( ) ) ;
if ( s.equals ( "CreateNewFile" ) )
if ( new FileAction ( ).CreateNewFile ( ) )
setTitle ( new FileAction ( ).file.getName ( ) ) ;
if ( s.equals ( "Exit" ) )
System.exit ( 0 ) ;
if ( s.equals ( "Font Format" ) )
dFont.setVisible ( true ) ;
if ( s.equals ( "File Null" ) )
setTitle ( las = null ) ;
if ( s.equals ( "Java File" ) )
setTitle ( las = ".java" ) ;
if ( s.equals ( "Text File" ) )
setTitle ( las = ".txt" ) ;
if ( s.equals ( "Cut" ) )
mainText.cut ( ) ;
if ( s.equals ( "Copy" ) )
mainText.copy ( ) ;
if ( s.equals ( "Paste" ) )
mainText.paste ( ) ;
}
}
 

Favorite TV Shows

import java.io.File ;
import java.io.FileWriter ;
import java.io.FileReader ;
import java.io.BufferedReader ;
import javax.swing.JOptionPane ;
class FileAction extends Gui {
static File file = new File ( "Data" ) ;
public boolean CreateNewFile ( ) {
String S = JOptionPane.showInputDialog ( null , "Enter You File Name" ) ;
boolean mes = false ;
if ( S != null ) {
try {
file = new File ( S + las ) ;
if ( file.createNewFile ( ) ) {
mainText.setText ( null ) ;
miSave.setEnabled ( true ) ;
mainText.setEditable ( true ) ;
mes = true ;
}
else
System.out.println ( "Create File False" ) ;
} catch ( Exception e ) {
System.out.println ( e ) ;
}
}
return mes ;
}
public void Save ( ) {
System.out.println ( mainText.getText ( ) ) ;
try {
FileWriter fw = new FileWriter ( file ) ;
mainText.write ( fw ) ;
fw.close ( ) ;
} catch ( Exception e ) { }
}
boolean Open ( ) {
String S = JOptionPane.showInputDialog ( null , "Enter You File Name" ) ;
boolean mes = false ;
if ( S != null ) {
try {
file = new File ( S + las ) ;
FileReader fr = new FileReader ( file ) ;
mainText.read ( fr , file.getName ( ) ) ;
mainText.setEditable ( true ) ;
miSave.setEnabled ( true ) ;
mes = true ;
fr.close ( ) ;
} catch ( Exception e ) { }
}
return mes ;
}
}
 

Favorite Books

import javax.swing.JDialog ;
import javax.swing.JLabel ;
import javax.swing.JTextField ;
import javax.swing.JComboBox ;
import java.awt.Font ;
import java.awt.event.ActionEvent ;
import java.awt.event.ActionListener ;
class DiFont extends JDialog implements ActionListener {
public static void main ( String [ ] args ) {
new DiFont ( ) ;
}
Font f = new Font ( "DilleniaUPC" , Font.PLAIN , 20 ) ;
//static JTextField txt1 = new JTextField ( "DilleniaUPC" ) ;
static String fontName [ ] = { "Agency FB" , "Algerian" , "Andalus" , "Angsana New" ,
"AngsanaUPC" , "Arabic Transparent" , "Arial" , "Arial Black" ,
"Arial Narrow" , "Arial Rounded MT Bold" , "Arial Unicode MS" , "Baskerville Old Face" ,
"Batang" , "BatangChe" , "Bauhaus 93" , "Bell MT" , "Berlin Sans FB" , "Berlin Sans FB Demi" ,
"Bernard MT Condensed" , "Blackadder ITC" , "Bodoni MT" , "Bodoni MT Black" ,
"Bodoni MT Condensed" , "Bodoni MT Poster Compressed" , "Book Antiqua" , "Bookman Old Style" ,
"Bookshelf Symbol 7" , "Bradley Hand ITC" , "Britannic Bold" , "Broadway" , "Browallia New" ,
"BrowalliaUPC" , "Brush Script MT" , "Calibri" , "Californian FB" , "Calisto MT" , "Cambria" ,
"Cambria Math" , "Candara" , "Castellar" , "Centaur" , "Century" , "Century Gothic" ,
"Century Schoolbook" , "Chiller" , "Colonna MT" , "Comic Sans MS" , "Consolas" , "Constantia" ,
"Cooper Black" , "Copperplate Gothic Bold" , "Copperplate Gothic Light" , "Corbel" , "Cordia New" ,
"CordiaUPC" , "Courier" , "Courier New" , "Curlz MT" , "DilleniaUPC" , "Dotum" , "DotumChe" ,
"Edwardian Script ITC" , "Elephant" , "Engravers MT" , "Eras Bold ITC" , "Eras Demi ITC" ,
"Eras Light ITC" , "Eras Medium ITC" , "Estrangelo Edessa" , "EucrosiaUPC" , "Felix Titling" ,
"Fixedsys" , "Footlight MT Light" , "Forte" , "Franklin Gothic Book" , "Franklin Gothic Demi" ,
"Franklin Gothic Demi Cond" , "Franklin Gothic Heavy" , "Franklin Gothic Medium" ,
"Franklin Gothic Medium Cond" , "FreesiaUPC" , "Freestyle Script" , "French Script MT" ,
"Garamond" , "Gautami" , "Georgia" , "Gigi" , "Gill Sans MT" , "Gill Sans MT Condensed" ,
"Gill Sans MT Ext Condensed Bold" , "Gill Sans Ultra Bold" , "Gill Sans Ultra Bold Condensed" ,
"Gloucester MT Extra Condensed" , "Goudy Old Style", "Goudy Stout" , "Gulim" , "GulimChe" ,
"Gungsuh" , "GungsuhChe" , "Haettenschweiler" , "Harlow Solid Italic" , "Harrington" ,
"High Tower Text" , "Impact" , "Imprint MT Shadow" , "Informal Roman" , "IrisUPC" , "JasmineUPC" ,
"Jokerman" , "Juice ITC" , "Kartika" , "KodchiangUPC" , "Kristen ITC" , "Kunstler Script" , "Latha" ,
"LilyUPC" , "Lucida Bright" , "Lucida Calligraphy" , "Lucida Console" , "Lucida Fax" ,
"Lucida Handwriting" , "Lucida Sans" , "Lucida Sans Typewriter" , "Lucida Sans Unicode" , "Magneto" ,
"Maiandra GD" , "Mangal" , "Marlett" , "Matura MT Script Capitals" , "Microsoft Sans Serif" , "MingLiU" ,
"Mistral" , "Modern" , "Modern No. 20" , "Monotype Corsiva" , "MS Dialog" , "MS Dialog Light" ,
"MS Gothic" , "MS Mincho" , "MS Outlook" , "MS PGothic" , "MS PMincho" , "MS Reference Sans Serif" ,
"MS Reference Specialty" , "MS Sans Serif" , "MS Serif" , "MS SystemEx" , "MS UI Gothic" , "MT Extra" ,
"MV Boli" , "Niagara Engraved" , "Niagara Solid" , "Nina" , "NSimSun" , "OCR A Extended" , "Old English Text MT" ,
"Onyx" , "Palace Script MT" , "Palatino Linotype" , "Papyrus" , "Parchment" , "Perpetua" , "Perpetua Titling MT" ,
"Playbill" , "PMingLiU" , "Poor Richard" , "Pristina" , "Raavi" , "Rage Italic" , "Ravie" , "Rockwell" ,
"Rockwell Condensed" , "Rockwell Extra Bold" , "Roman" , "Script" , "Script MT Bold" , "Segoe Condensed" ,
"Segoe UI" , "Showcard Gothic" , "Shruti" , "SimHei" , "Simplified Arabic" , "Simplified Arabic Fixed" ,
"SimSun" , "Small Fonts" , "Snap ITC" , "Stencil" , "Symbol" , "System" , "Tahoma" , "Tempus Sans ITC" ,
"Terminal" , "Times New Roman" , "Traditional Arabic" , "Trebuchet MS" ,"Tunga" , "Tw Cen MT" ,
"Tw Cen MT Condensed" , "Tw Cen MT Condensed Extra Bold" , "Verdana" , "Viner Hand ITC" , "Vivaldi" ,
"Vladimir Script" , "Vrinda" , "Webdings" , "Wide Latin" , "Wingdings" , "Wingdings 2" , "Wingdings 3" ,
"WST_Czec" , "WST_Engl" , "WST_Fren" , "WST_Germ" , "WST_Ital" , "WST_Span" , "WST_Swed" ,"" } ;
static String fontSize [ ] = { "2" , "5" , "8" , "10" , "12" , "14" , "18" , "20" , "22" , "25" , "28" ,
"32" , "36" , "40" , "44" , "48" , "52" , "57" , "63" , "67" , "73" , "85" , "93" , "97" , "100" } ;
static String fontStary [ ] = { "PLAIN" , "BOLD" , "ITALIC" } ;
static JComboBox cb = new JComboBox ( fontName ) ;
static JComboBox txt2 = new JComboBox ( fontSize ) ;
static JComboBox txt1 = new JComboBox ( fontStary ) ;
static Gui gi = new Gui ( ) ;
DiFont ( ) {
setTitle ( " Font Format " ) ;
setSize ( 300 , 110 ) ;
setLayout ( null ) ;
add ( new JLabel ( "Font : " ) ).setBounds ( 10 , 10 ,60 , 20 ) ;
cb.setSelectedIndex ( 146 ) ;
add ( cb ).setBounds ( 45 , 10 , 240 , 20 ) ;
add ( new JLabel ( "FontSize : " ) ).setBounds ( 10 , 50 , 60 , 20 ) ;
txt2.setSelectedIndex ( 8 ) ;
add ( txt2 ).setBounds ( 70 , 50 , 50 , 20 ) ;
add ( new JLabel ( "FontSty : " ) ).setBounds ( 130 , 50 , 60 , 20 ) ;
add ( txt1 ).setBounds ( 185 , 50 , 100 , 20 ) ;
setIaction ( ) ;
}
void setIaction ( ) {
txt1.addActionListener ( this ) ;
txt2.addActionListener ( this ) ;
cb.addActionListener ( this ) ;
gi.mainText.setFont ( f ) ;
}
public void actionPerformed ( ActionEvent e ) {
int j = cb.getSelectedIndex ( ) ;
int k = txt2.getSelectedIndex ( ) ;
if ( fontStary [ txt1.getSelectedIndex ( ) ].equals ( "PLAIN" ) )
f = new Font ( fontName [ j ] , Font.PLAIN , Integer.parseInt ( fontSize [ k ] ) ) ;
if ( fontStary [ txt1.getSelectedIndex ( ) ].equals ( "BOLD" ) )
f = new Font ( fontName [ j ] , Font.BOLD , Integer.parseInt ( fontSize [ k ] ) ) ;
if ( fontStary [ txt1.getSelectedIndex ( ) ].equals ( "ITALIC" ) )
f = new Font ( fontName [ j ] , Font.ITALIC , Integer.parseInt ( fontSize [ k ] ) ) ;
gi.mainText.setFont ( f ) ;
}
}
 

Favorite Quote

import javax.swing.JTextArea ;
import javax.swing.JScrollPane ;
import java.awt.* ;
import java.applet.* ;
class DialogH1 extends javax.swing.JDialog {
DialogH1 ( ) {
setSize ( 300 , 300 ) ;
add ( new app1 ( ) ) ;
}
}
class app1 extends Applet {
public void paint ( Graphics g ) {
g.drawLine ( 30 , 20 , 80 , 70 ) ;
}
}
 

hi5 Games

Play hi5 Games

naludon hasn't played any games recently.

Applications

Browse Applications

PhotoBuzz
Make your friends smile! Animate their photos with Hugs, kisses, hearts and much more...

SuperPoke Pets
Adopt the CUTEST virtual pets on the web!

Rockyou Pets
Adopt a pet! Pet it, take care of it, pimp it out with all sorts of cute and cool accessories.

Poker Palace
Casino-style Texas hold 'em poker. It's the real deal!

 

hi5 Gifts

Give a Gift    Get hi5 Coins

naludon has no unwrapped gifts.
 

Fives

Give' em Five

Comments | View All Entries

Leave a comment for naludon

 
Sep 20 3:17 AM
 
คนก็กัดกะหมาได้เนอะ ลุง
 
 
Sep 15 3:54 AM
DeViL says:
 
ดี ลุงรีบจบล่ะ

ตากรูเอาคืน มั้งล่ะ

5555
 
Sep 13 3:38 AM
 
อารายของปู่

งง
 
Sep 12 5:07 AM
 
งง
ชีวิตไหม่คือ..........
งึมๆ
 
Sep 10 5:11 AM
DeViL says:
 
*0*
เอาซะแรงเลยแสส
 
Sep 10 4:46 AM
 
copy เค้ามาไม่ได้ทำองเลย อิอิ
 
Sep 7 3:21 AM
 
ดี ดี ดี ดี

เปงงัยตอนดีสบายดีอะป่าว

คงไม่ทุกตลอดกาลหรอกนะ

ยังงัยก้อมีความสุขบ้างนะจ๊ะ
 
Aug 22 4:08 AM
 
ลุงง อย่าลืมของขวัญด้วยนะ

ไม่งั้นงอลลลล!!!
 
Aug 21 5:00 AM
 
มันจะหมดหวังอารัยนักหนาหาาาาาาาาา

สู้ๆดิ เด๋วน้องก็ดุซะเลยนี่ อิอิ

ยังไงก็รักพี่ชายคนนี้เสมอนะ (ถึงแม้จะดุบ้างนิดหน่อย)

ดูแลตัวเองบ้างดิ

มิสๆๆๆ
 
Aug 20 11:02 AM
 
อารายคนแก่หลงๆลืมๆป่ะเนี่ยยย


ก็เข้าจัยอะนะ คนมันแก่แร้ววววววว!!!
 
Aug 19 10:56 AM
 
คนเเก่ จีบ เด็ก 19-18-17-16-15
 
Aug 13 6:02 PM
 
สวัดดีดีดีดีดี

เปงงัยบ้าง

สบายดีนะจ้า
 
Jul 25 11:21 PM
 
พี่ๆๆๆๆๆๆๆๆๆๆๆๆๆๆๆๆๆๆ
จาสอบแล้ว
อ่านหนังสือด้วยน้าๆๆๆๆๆๆๆๆๆๆๆ
สู้ๆ
 
Jul 24 4:10 AM
 
หวาดดี ก้อแวะมาทัก


ตามเคย เย็นแล้ว




หาไรกินกันเถอะ
 
 
Jul 20 6:09 PM
 
morning na ja

แวะมาทักทาย



แบบฉบับของเพื่อนกัน


ตลอดไป
 
Jul 13 5:38 PM
 
สาหวาดดีดีดีดี

แวะมาเม้นให้นะ
 
Jul 10 11:03 PM
 
ดีจร้ๅต:เอง

Title
body