programming
get rows of dynamic latest date(s)
…. sorry for not updating for such a long time.
just got a mail from a friend recently. probably this is some idea to share:
—
yo, Byeol. got a problem here. I have a table (FB) where I need to store every month’s stock of any available Product:
CREATE TABLE TSTOCK (
THEDATE DATE NOT NULL,
PRODUCTID VARCHAR(30) NOT NULL,
COST DOUBLE PRECISION [...]
SMS Gateway, oh SMS Gateway …
* still cursing herself after posting a bubbling in her other blog with the same title. *
Guys … do you know where is the place to get a lot of AT Commands manuals or references? Especially for the modems, not just for mobile phones. Please help. Many thanks for your attention and help. ^^
…….. ah [...]
cast Double to String in java
Double to String casting …
if you want to display its String in number format (like this ###,###,##0.00) do not use these lines …
Double sk = 12300000000.35;
System.out.println(sk.toString());
System.out.println(String.valueOf(sk));
they would result like these ones:
1.230000000035E10
1.230000000035E10
use this one instead.
Double sk = 12300000000.35;
[...]
deprecated File toURL() method in Java 6
after upgrading to Java 6, I just found out that toURL() method is deprecated in Java 6.
after doing some googling, I reached to this page: http://www.jguru.com/faq/view.jsp?EID=1280051
The author (in the link above) said:
The toURL() method of File does not properly escape characters that aren’t valid in a URL. You can write better code today without waiting [...]
Read Full Post | Make a Comment ( 1 so far )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 [...]
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 [...]
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 [...]
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);
} [...]
« Previous Entries
