KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > netbeans > test > java > hints > AddThrowsClause2


1 /*
2  * AddThrowsClause.java
3  *
4  * Created on March 12, 2005, 8:29 PM
5  */

6
7 package org.netbeans.test.java.hints;
8
9 import javax.swing.text.BadLocationException JavaDoc;
10
11 /**
12  *
13  * @author lahvac
14  */

15 public class AddThrowsClause2 {
16     
17     /** Creates a new instance of AddThrowsClause */
18     public AddThrowsClause2() {
19     }
20     
21     public void test() {
22         throw new BadLocationException JavaDoc("text", 0);
23     }
24 }
25
Popular Tags