According to api doc:
public void setLocation(int x,int y)
Moves this component to a new location. The top-left corner of the new location is specified by the x and y parameters in the coordinate space of
this component's parent.
However, I construct a JDialog like this:
JDialog aDialog=new JDialog(aFrame,"haha"); //aFrame is a JFrame object which displays normally
aDialog.setLocation(10,10);
then the aDialog 'ignores' its parent -- aFrame and set location relative to the window screen. this seems to contradict with the above doc
why so?
thanks in advance