< prev index next >

src/java.desktop/share/classes/sun/applet/AppletThreadGroup.java

Print this page




  34 
  35     /**
  36      * Constructs a new thread group for an applet.
  37      * The parent of this new group is the thread
  38      * group of the currently running thread.
  39      *
  40      * @param   name   the name of the new thread group.
  41      */
  42     public AppletThreadGroup(String name) {
  43         this(Thread.currentThread().getThreadGroup(), name);
  44     }
  45 
  46     /**
  47      * Creates a new thread group for an applet.
  48      * The parent of this new group is the specified
  49      * thread group.
  50      *
  51      * @param     parent   the parent thread group.
  52      * @param     name     the name of the new thread group.
  53      * @exception  NullPointerException  if the thread group argument is
  54      *               <code>null</code>.
  55      * @exception  SecurityException  if the current thread cannot create a
  56      *               thread in the specified thread group.
  57      * @see     java.lang.SecurityException
  58      * @since   1.1.1
  59      */
  60     public AppletThreadGroup(ThreadGroup parent, String name) {
  61         super(parent, name);
  62         setMaxPriority(Thread.NORM_PRIORITY - 1);
  63     }
  64 }


  34 
  35     /**
  36      * Constructs a new thread group for an applet.
  37      * The parent of this new group is the thread
  38      * group of the currently running thread.
  39      *
  40      * @param   name   the name of the new thread group.
  41      */
  42     public AppletThreadGroup(String name) {
  43         this(Thread.currentThread().getThreadGroup(), name);
  44     }
  45 
  46     /**
  47      * Creates a new thread group for an applet.
  48      * The parent of this new group is the specified
  49      * thread group.
  50      *
  51      * @param     parent   the parent thread group.
  52      * @param     name     the name of the new thread group.
  53      * @exception  NullPointerException  if the thread group argument is
  54      *               {@code null}.
  55      * @exception  SecurityException  if the current thread cannot create a
  56      *               thread in the specified thread group.
  57      * @see     java.lang.SecurityException
  58      * @since   1.1.1
  59      */
  60     public AppletThreadGroup(ThreadGroup parent, String name) {
  61         super(parent, name);
  62         setMaxPriority(Thread.NORM_PRIORITY - 1);
  63     }
  64 }
< prev index next >