Archive for September, 2007

how to check if two filename paths refer to the same file?

Posted on September 28, 2007. Filed under: Java programming | Tags: , , |

I just found out the information that a filename path may include redundant names such as ‘.’ or ‘..’ or symbolic links (on UNIX platforms).
so how to know exactly if two filename paths are referring to the same file?
use File.getCanonicalFile() to convert a filename path to a unique canonical form suitable for comparisons. and then, [...]

Read Full Post | Make a Comment ( None so far )

maximize a JFrame??

Posted on September 27, 2007. Filed under: Java programming | Tags: , , |

hi, there.
is there any way to maximize a JFrame??
thanks for your responding.

sure. add this line:

this.setExtendedState(this.getExtendedState() |
this.MAXIMIZED_BOTH);

hope this helps.

Read Full Post | Make a Comment ( 1 so far )

to close singleton JInternalFrame the default way, but not using dispose()???

Posted on September 24, 2007. Filed under: Java programming | Tags: , |

hi, I read your close a singleton JInternalFrame from an outsider customized JPanel tips and I had a problem with that.
remember your line about to close the singleton JInternalFrame from its separated customizeable JPanel coding?
getRootPane().getParent().setVisible(false);
this was only to setVisible to false. now if I want to close it (but still, do it according to [...]

Read Full Post | Make a Comment ( None so far )

rojak language, manglish and singlish

Posted on September 20, 2007. Filed under: english, hilarious |

alamak! another variety of language and English? really meh?
hmm … I checked it liao … after ting ting and read read for a while, I ting dis is so creative combination hoo? why not?
why beh say do it ah (why mustn’t do it)? it’s so cool lor …
wan example from http://ahpek.com/index.php/using-good-manglish/, [...]

Read Full Post | Make a Comment ( None so far )

Hello World! collections

Posted on September 13, 2007. Filed under: Delphi programming, Java programming, hilarious |

tsk, tsk, tsk … a great dedication to “Hello World!”???
check it here. http://roesler-ac.de/wolfram/hello.htm
a really cool “Hello World!” coding collection in various programming languages. no joke, this is real.
statement from the URL:

This collection includes 338 Hello World programs in many more-or-less well known programming languages, plus 58 human languages.
The list was compiled by [...]

Read Full Post | Make a Comment ( None so far )

steps needed when earthquake strikes (langkah yang diperlukan saat gempa menghajar)

Posted on September 13, 2007. Filed under: earthquake, gempa |

[English]

Steps and Actions Required for Earthquakes
a lot of earthquakes have happened and there are more coming. how should we react when any earthquake comes to our place?
for Indonesian readers, BMG has provided the instructions here …
http://www.bmg.go.id/antisipasi.asp
http://www.elshinta.com/v2003a/data/tsunami.htm
for English readers, this one is provided by University of Washington …
http://www.washington.edu/admin/business/oem/hazards/earthquake.html
also by Cascadia Region Earthquake Workgroup (CREW) …
http://www.crew.org/home/homeowners.html
PS: don’t [...]

Read Full Post | Make a Comment ( None so far )

where to put the JTextField validation block code???

Posted on September 10, 2007. Filed under: Java programming |

hi Everyone,
I need an advice or suggestion, I have a JTextField for a primary key entry and when the focus leaves the JTextField, the program would make a searching into a database to seek if this entry has already been inside the table. (aka checking double entries).
if the entry is found inside the table, a [...]

Read Full Post | Make a Comment ( None so far )

Blue beam FAKE Rapture??? (Pengangkatan Palsu Sorotan biru???)

Posted on September 8, 2007. Filed under: dreams, mimpi |

I got it from this URL:
http://www.amightywind.com/dreams/ufobluebeam1.html
for Indonesian readers … ada terjemahan di bagian bawah postingan ini.

Flying Saucer Dream.
I have never believed in UFOs or evil aliens from other planets until I had a dream sometime in March 2005, Since then I have had revelations of what this is and worst of all, it is real. [...]

Read Full Post | Make a Comment ( None so far )

setIcon(false); darn it …

Posted on September 5, 2007. Filed under: Java programming, programming |

a week, I’ve been coding uselessly, trying to redisplay my singleton JInternalFrame after it was minimized. I tried to add the setBounds(…) and toFront() but it didn’t appear from its minimized condition.
a week of coding and recoding and searching and searching, only to find that I only need to add this one:

try {
singletonIF.setIcon(false);
} [...]

Read Full Post | Make a Comment ( None so far )

Liked it here?
Why not try sites on the blogroll...