Embed Flash (swf) in HTML

<OBJECT CLASSID="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"




<PARAM NAME="MOVIE" VALUE="embedded.swf">




<PARAM NAME="SCALE" value="noborder">

<EMBED SRC="embedded.swf"










or you can try the simple code,

<object width="550" height="400">

<param name="movie" value="embedded.swf">

<embed src="embedded.swf" width="850" height="610">



Sendkey method in Java

I want to make my software interface so user can move the focus from one textfield to another by pressing enter to move focus forward to next field, just as like when press tab key. So in another word, i want to replaced ENTER key code by TAB key code, if in VB programming, usually i use SendKeys “{TAB}” in KeyDown event.

And then here some code that maybe can work as i want to, another way that work it, please info it for me, thanks

import java.awt.*;
import java.awt.event.*;
import javax.swing.*;

public class SendKeyTest extends javax.swing.JFrame {

private Dimension d = Toolkit.getDefaultToolkit().getScreenSize();

private javax.swing.JTextField text1;
private javax.swing.JTextField text2;

Robot r;

public SendKeyTest() {
text1 = new javax.swing.JTextField();
text2 = new javax.swing.JTextField();

setTitle( “Test SendKey” );

getContentPane().setLayout( null );

text1.setBounds( 10, 20, 100, 30 );
text2.setBounds( 10, 50, 100, 60 );

try {
r = new Robot();
} catch (AWTException ex) {
ex.printStackTrace(); // for Robot()

text1.addKeyListener (new KeyAdapter () {
public void keyPressed(KeyEvent e) {
if(e.getKeyCode() == KeyEvent.VK_ENTER) {

text2.addKeyListener (new KeyAdapter () {
public void keyPressed(KeyEvent e) {
if(e.getKeyCode() == KeyEvent.VK_ENTER) {

setDefaultCloseOperation( javax.swing.WindowConstants.EXIT_ON_CLOSE );
setSize( 360, 360 );
setResizable( false );
setLocation( d.width / 2 – getWidth() / 2, d.height / 2 – getHeight() / 2 );
setVisible( true );

private void sendKey(int keyCode) {
r.delay(500); // for you to see the keystroke

public static void main( String args[] ) {
SendKeyTest sk = new SendKeyTest();

Exception in thread “main” java.lang.NoClassDefFoundError: HelloWorldApp

I am newbie in Java Programming. I had learn a little about java at home and had no problem using javac and java. But when i try to run some java code on my office computer, i had error even i only try to display “Hello World”.  I copy the code , wrote it to “C:\gj\” and compiled.  Here the simple code,

class HelloWorldApp {
public static void main(String[] args) {
System.out.println(“Hello World!”); // Display the string.

When i use “javac HelloWorldApp.java”, it success. But when i use “java HelloWorldApp”, then error occured like this “Exception in thread “main” java.lang.NoClassDefFoundError: HelloWorldApp”. It because java cannot find your bytecode file, HelloWorldApp.class

The solution that i try to fix this

set path=C:\Program Files\Java\jdk1.6.0_12\bin;%path%

javac HelloWorldApp.java
java HelloWorldApp

or you can try this without setting classpath if you work at the same current folder

java -cp .  HelloWorldApp

Buddha statue crying in Bireuen-Aceh

Yesterday evening I received news from my girlfriend that in Bireuen, Aceh have crying buddha statue. I don’t believe it. Until today, April 8, 2009,the  chain SMS to tell this story still continue.

On morning of April 07, 2009 occurred an outstanding phenomenon, in a city Bireuen-Aceh in a Buddhist Vihara who has rupang since years the Vihara was established, suddenly from the Buddha’s Rupang come out some waters so that excited the community surrounding.  At first time, many people thought that the water was a drop of rain that fell to the head of the Buddha statue and stop at the eyelid. But the other statue near Buddha Sakyamuni statue was not have a single water.

Before there come any suspicious story about that, every one must remember to prove it by themself  or Ehipassiko (Sanskrit: Ehipaśyika “which you can come and see” — from the phrase ehi, paśya “come, see!”).

Don’t believe in a news, just because you have heard it.
Don’t believe in a tradition, just because it has been done through generations.
Don’t believe in something, just because it has been talked about and rumored by many people.
Don’t believe in something, just because it has been written in holy books.
Don’t believe in something, just because it has been taught by teachers or elders.

But after making observations and in depth analyses,
you found out that the issues being talked about are in accordance with good and useful reason,
then it is not disgraceful if the things are continued which will bring forth happiness,
that is why, it is proper that you will receive it and live according to the said principles.

(Anguttara Nikaya, Vol.I, 188 – 193)

Here are some photos of the statue is taken from the location of the incident:






You can view the video of Crying Buddha Statue here the link


Donald J. Trump’s 20 Top Success Tips

  1. Think big
  2. Be positive
  3. Follow your passion
  4. Learn something new every day
  5. Listen to your gut
  6. Be patient
  7. Put a great team behind you
  8. Put beauty in everything you do
  9. Learn to negotiate, because everything you want demands it
  10. Always go for the biggest win possible
  11. Invest in real estate because it is the best investment there is
  12. Take risks
  13. Be audacious and get into the public eye
  14. Be your own brand
  15. Enjoy doing some work seven days a week and on vacations
  16. Say no
  17. Get out of your comfort zone
  18. Be stubborn when necessary
  19. Always have a Plan B
  20. Never settle for second best