JAVA Mouse Event
In my program after selecting the option from pie menu related shape drawn around pie menu. what i want is when user select the option and then click anywhere in the screen related event is called then.
<br/><br/>**Mouse click event code**
 

    public void mouseClicked(MouseEvent e) 
            {
              
            
                   double base=x1-s;
                   double prep=as-y1;
                   double angle=Math.atan2(prep, base);
                   angle=((angle*180)/Math.PI);
                 
       if(angle==0)
       {
           
       }
       else if(angle>0&&angle<45)
       {
        
            p.mc1=e.getX()+100;
                  p.mc2=e.getY()-25;
                 p.repaint();        
    
       }
**Pie Menu**
**![Pie Menu Drawing][1]**


  [1]: http://i.stack.imgur.com/NwlRJ.png
JAVA Mouse Event
===

In my program after selecting the option from pie menu related shape drawn around pie menu. what i want is when user select the option and then click anywhere in the screen related event is called then.
<br/><br/>**Mouse click event code**
 

    public void mouseClicked(MouseEvent e) 
            {
              
            
                   double base=x1-s;
                   double prep=as-y1;
                   double angle=Math.atan2(prep, base);
                   angle=((angle*180)/Math.PI);
                 
       if(angle==0)
       {
           
       }
       else if(angle>0&&angle<45)
       {
        
            p.mc1=e.getX()+100;
                  p.mc2=e.getY()-25;
                 p.repaint();        
    
       }
**Pie Menu**
**![Pie Menu Drawing][1]**


  [1]: http://i.stack.imgur.com/NwlRJ.png