Flora Ng

Greenhorn
+ Follow
since Jul 05, 2001
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Flora Ng

How can I implement something like this:
There're 2 buttons. When click the first one, the pointer will change to wait cursor unless button2 is pressed. When it enters the second one, it will change to default cursor.
I know I have to use mouselistener, but the compiler keep on complaining: gui.java uses or overrides a deprecated API
What's the problem?
Hope can get some help...
Thanks a lot.
22 years ago
I'm stuck in this problem...
I'm writing a program that behaves like a parser. It checks the HTML, ignore everything inside the tag, but extract numbers that are outside the tag (numbers that are visible via the use of browser).
However the problem is: if the program reads in character by character. When it comes to '<', it will think this is an open tag and will ignore everything until a '>' comes up
So for example in the following sentence:
three < five
The system will continue to look for '>' and never terminate.
What's the best solution to that? Are there any way to identify HTML tag?
Thanks in advance.
Flora

I'm stuck in this problem...
I'm writing a program that behaves like a parser. It checks the HTML, ignore everything inside the tag, but extract numbers that are outside the tag (numbers that are visible via the use of browser).
However the problem is: if the program reads in character by character. When it comes to '<', it will think this is an open tag and will ignore everything until a '>' comes up
So for example in the following sentence:
three < five<br /> The system will continue to look for '>' and never terminate.
What's the best solution to that? Are there any way to identify HTML tag?
Thanks in advance.
Flora
22 years ago
Hi guys! Is that possible to implememt a GUI like if u click a button it will get the url, open the browser (netscape or ie) and display the specified website? How can i do that?
Thanks...
22 years ago
Hello everyone!
In order to monitor the progress of the reading/downloading of a file/html & do some checking at the same time, which stream should be used?
Which method is for checking the file/html size?
Thanks in advance.
22 years ago
Hello Cindy!
So do you think I should read in the text character by character and test whether it is a digit or not? Would that be slower if the file size is huge? I want the program be able to extract decimal numbers as well...
Thanks
22 years ago
I'm stuck in this particular problem again...
I want to extract numbers from a text file or html. How can I use StreamTokenizer to filter out non-digit elements?
For example with the sentence below
I wish I can earn $1,000,000 a year!
The program will return an integer 1000000
I really don't know how to filter those commas using StreamTokenizer class...
Thanks a lot
22 years ago
How can I update the cell values in the JTable?
I use the AbstractTableModel class and the values are in the form of Object array.
Thanks...
22 years ago
Thanks for your reply.
The data in the text file is delimit by spaces. Basically the program asks the user to enter the name of the text file, it then scan the content and extract numbers from that file. I want it to filter out the non-digit elements using Stream Tokenizer. So with the following text:
I wish I can earn $1,000,000 a year!
The program will return 1000000
Thanks...

22 years ago
How do I get a number from the text file that filters out non-digit elements and punctuations using Stream Tokeniser? So for example: -$6,234.56 will gives 6234.56
Thanks in advance
22 years ago
how can i create a progress bar that can monitor the progress of file downloading/ file detecting when the user clicks on a button? Is thread needed?
Thanks a lot.
22 years ago