Posts Tagged Java

Javascript window.print() compatible mozswing 2.0 xulrunner native library.

 

Replace the existing native library of mozswing 2.0 beta 2 with the following native library. This version is same as of mozswing 2.0 beta2 except, it support javascript windows.print() command.

native.zip
Patched and compiled by Shishir Pokharel.

 … Read more

, , , , ,

No Comments

Create a pojo class of Json objects [using jackson]


//1. create a class to map the json data e.g
import org.codehaus.jackson.annotate.JsonAnyGetter;
import org.codehaus.jackson.annotate.JsonAnySetter;
import org.codehaus.jackson.annotate.JsonCreator;
import org.codehaus.jackson.annotate.JsonProperty;

import java.util.HashMap;
import java.util.Map;

/**
*
* @author Shishir Pokharel
*/
public class model {

// and then "other" stuff:
protected 
Read more

, , , , ,

No Comments

JIAXClient using IAXclient Java version of IAXclient

About
JIAXClient is a library for IAX (Inter Asterisk eXchange) clients written in Java by Mikael Magnusson. It is based on IAXClient, and uses a JNI library for interfacing with Java.

License
Most of the sources are GPL licensed, … Read more

, , , , ,

No Comments

Persistence with Java SE an example

1. Create a Entity Class {Employee.java}

import javax.persistence.Entity;
import javax.persistence.Id;

@Entity // Make Employee Class into an entity by annotate the class with @Entity.
public class Employee {
@Id private int id; //property that holds the persistent identity of 
Read more

, , ,

No Comments