Minh Nam

Ranch Hand
+ Follow
since Sep 10, 2011
Merit badge: grant badges
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
3
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 Minh Nam

Excellent! Congrats!
12 years ago
Thanks, look likes I have to do some mathematics myself.
12 years ago

Rob Spoor wrote:Note that you will need to store the old version of System.out (line 1 in my example), or you will never be able to reset it to the default again.



That's great! Thanks a bunch
12 years ago

Ulrich Vormbrock wrote:Thank you, Tim!

I already feared this - concerning an appropriate Java applet, do you know a product which can perform such task, for example an OpenSource product which enables the developer to interfere concerning the storage and examination of the local file system?



Like Tim has suggested, only Applet can have permission (if signed) to read the local file system fully.
12 years ago
Solved, I changed the z-index and everything is fine now!
12 years ago
Guys, I am wondering to to redirect all output of the System.out.println() to a JTextArea/JTextPane?

Thanks.
12 years ago
Hi my friends,

I am writing a text editor which has a find and replace feature.
I am facing a problem, that is, sometimes the find and replace dialog hides the matching word. I would like to hear your suggestion about:
- how to determine if the dialog is hiding the matching word?
- how to determine a new location for dialog to let the user can see the matching word?

Thanks.
12 years ago
Well, a simple way is to iterate over the result to build the vector of data which is passed into table's constructor:



However I suggest you to use a table model to store table data, something like this:

mohit rastogi wrote:how to make a servlet to run at startup of the application


What do you mean by saying "make a servlet to run"?
Does it mean the one of the Servlet's HTTP methods (POST, GET) get called?
12 years ago

kenji jonathan wrote:I want to make an image that can act like a button in java application.

I have written :



but the result is there is an image inside a button. It isn't what I want to do, I want to make an image that acts like a button...Any suggestion?...Thanks for sharing knowledge..^^



This is what I wrote to make a transparent button having only the icon:

12 years ago

Nada Bajnaid wrote:I tried using href with onClick but my method consumedLO never reached I used the following code:



is consumedLO Java method or Javascript one? If you want to call Java method in onClick, it is impossible because onClick can call only Javascript.
12 years ago

pramod talekar wrote:

If it is null, then all this shouldn't work, right ?



Hi pramod,

What shouldn't work? You did not post the code that you are expecting to work, you posted just two System.out.println() statements.
12 years ago

pramod talekar wrote:Hello,

I was trying to a parse a document and came across the following statement :

DocumentBuilderFactory uses the system property javax.xml.parsers.XmlDocumentParserFactory to find the class to load.



I tried to print this property and it printed "null".



It is null means that there is no such property, dead simple.
12 years ago

Kev Bellion wrote:Fantastic, cheers


Is exactly what I was looking for!

TQ



Yes, exactly!
12 years ago