List of usage examples for java.lang Thread checkAccess
public final void checkAccess()
From source file:Main.java
public static void main(String args[]) { new ThreadClass("A"); Thread t = Thread.currentThread(); try {/*from w ww.j av a2 s . c o m*/ t.checkAccess(); System.out.println("You have permission to modify"); } catch (Exception e) { System.out.println(e); } }