Welcome To Snipplr


Everyone's Recent Java Snippets



0 299 posted 13 years ago by monkey103
0 298 posted 13 years ago by roock
0 339 posted 13 years ago by roock
Change the size of min and max memory used by the VM
0 312 posted 13 years ago by sanjivarunsahayamhotmailcom
An example of creating non-modal dialog boxes which extend the Dialog class is SWT/Eclipse
0 312 posted 13 years ago by monkey103
0 271 posted 13 years ago by iTony
1 311 posted 13 years ago by mamoo
Create an xml file with this content to tell Tomcat to use seperate folder (can be any folder, even out of tomcat root) as a root folder of your application. Copy this file into TomcatDir/conf/Catalina/localhost
0 282 posted 13 years ago by Uzbekjon
Test harness for an implementation of the Luhn algorithm that checks the validity of a credit card number.
0 583 posted 13 years ago by Uzbekjon
A working example that uses BlaszDS in order to serialize Java object into AMF (this code should be cleaned up a bit), in order for it to compile and work it is required to add flex-messaging-core.jar and flex-messaging-common.jar to the classpath.
0 423 posted 13 years ago by narkisr
Sample code from processFormRequest to pop up new window via javascript. worth noting: this is not recommended as it can break the OAF page.
0 852 posted 13 years ago by theonlyalterego
You can use this command to convert your properties file to ASCII encoded file. Normally you'll need it to convert your language.properties file.
0 445 posted 13 years ago by Uzbekjon
This assumes that you want the resulting JAR file to be named BangBean.jar, and that you’ve put the manifest in a file called BangBean.mf
0 246 posted 13 years ago by Uzbekjon
This is a collection of useful static initializers of Java arrays, lists and maps.
0 267 posted 13 years ago by narkisr
A paste from a blog (http://lenkite.blogspot.com/2008/05/access-windows-registry-using-java.html) entry which demonstrates how to access windows registry in Java.
0 499 posted 13 years ago by narkisr
This spring context configures a simple hibernate session (for annotated classes).
4 405 posted 13 years ago by narkisr
This is an example of how to map a Java 5 enum when using Hibernate ORM.
0 357 posted 13 years ago by narkisr
2 346 posted 13 years ago by multani
0 334 posted 13 years ago by udayrayala
The data source which can be used in combination with jasper reports.
0 286 posted 13 years ago by narkisr
A simple testing assertion which looks up for a line within a file until a pre defined time frame ends (loosely based upon http://www.informit.com/guides/content.aspx?g=java&seqNum=226).
0 455 posted 13 years ago by narkisr
i use it so save bufferedImages into a DB as Blob
0 539 posted 13 years ago by ILoveBeer
0 413 posted 13 years ago by slu
A very simple way of getting bean instances from Spring context without casting returned object, the assumption is that the bean id's are matching the classes names.
0 392 posted 14 years ago by narkisr
All you need todo in order to use this is just to add it to your path
0 365 posted 14 years ago by narkisr