Links

Links

Java

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();
Jframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

// Create a list containing CheckBoxItem's

JList jlist = new JList(new CheckBoxItem[] {

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 the entity (the primary key).
private String name;
private long salary;
public Employee() {}
public Employee(int id) { this.id = id; }
public int getId() { return id; }
public void setId(int id) { this.id = id; }

Sphinx4 and Asterisk

This blog will provide you following informations ;
1. Step by step compilation and use of Sphinx4.
2. Description on how to use Sphinx4 with asterisk.
3. How to train Sphinx4 for your own Language.
4. How to Adapt acoustic model.
5. much more.......... Comming Soon...
<NOTE:Due to lack of time i am not able to give my time for documentation once i am done with documentation i will be uploading soon...>

Thanks for visiting...

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, but the native library and some support classes are LGPL licensed.

Runtime requirements

* Java runtime environment (JRE 1.4.2 and 1.5.0 tested)
* Browser supporting Java applets (Mozilla 1.7, FireFox 1.5, Internet Explorer, and Konqueror (KDE 3.5.6) tested)

Build requirements

Syndicate content