Archive for September, 2007
how to check if two filename paths refer to the same file?
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, [...]
maximize a JFrame??
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()???
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 [...]
rojak language, manglish and singlish
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/, [...]
Hello World! collections
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 [...]
steps needed when earthquake strikes (langkah yang diperlukan saat gempa menghajar)
[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 [...]
where to put the JTextField validation block code???
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 [...]
Blue beam FAKE Rapture??? (Pengangkatan Palsu Sorotan biru???)
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. [...]
setIcon(false); darn it …
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);
} [...]
