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 shape will draw there in the screen. can anyone tell me how can i achieve this?
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