Archive for November, 2011

JIAXClient using IAXclient Java version of IAXclient

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.

Most of the sources are GPL licensed, … Read more

, , , , ,

No Comments

Persistence with Java SE an example

1. Create a Entity Class {}

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

How do add a checkbox to items in a JList?

import java.awt.Component;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;

import javax.swing.JCheckBox;
import javax.swing.JFrame;
import javax.swing.JList;
import javax.swing.JScrollPane;
import javax.swing.ListCellRenderer;
import javax.swing.ListSelectionModel;

public class CheckListExample
   public static void main(String args[])
      JFrame Jframe = new JFrame();

      // Create a list containing 
Read more

, ,

No Comments

Asterisk Dialplan Commands

Here is a list of all the commands that you can use in your Dialplan (extensions.conf). You can obtain your Asterisk””s list of available applications at the CLI by typing “show applications” and “show application “.


* An … Read more

, , , , , ,

No Comments