Hi ,
we can create object without using new opearator.
1) Using factory methods
Ex:- NumberFormat obj=NumberFormat.getInstance();
2)Using newInstance() method
Ex:-
Class c=Class.forName("SomeClassName");
SomeClassName obj=c.newInstance();
3)using cloning
Ex:- ClassName c1
Hello,
Is it possible to add focus listener to the JFrame or JScrollpane in java.If
yes please let me know the way of approach.
Add whatever you love to the Yahoo! India homepage. Try now!
http://in.yahoo.com/trynew
--~--~-~--~~~---~--~~
You received
Friends,
i am trying to load dll files from java applet.but i am getting error
ava.lang.UnsatisfiedLinkError: no javacdromwrapper in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1682)
at java.lang.Runtime.loadLibrary0(Runtime.java:822)
at java.lang.Sys
hi..
am using apache 5 for server... i have one html file and jsp file.. those
things i put into the ROOT folder inside the apache...
and i have a java class file.. that i put into the classes folder... when i
cal the file i cant get values.. i attached a simple files , can anyone make
it execute
Hi,
You can do this by using java.io.File.
*sample code*
File file=new File("D:\\image_storage");
File listImages[]=null;
if(file.existrs())
{
listImages=file.listFiles();
if(listImages!=null)
{
for(int i=0;i
//your code goes here,
}
}
}
regards,
G.Santhosh Kumar
2009/6/1 Nguyễn Quang Tùng