I have some 3D graphics running ok in a simple application where the 3D functionality is obtained by specifying P3D in the size() call.
I am now extending and re-organising the application to put the 3D graphics in a subsidiary window.
I am creating the second window with - "class animationFrame extends JFrame { etc etc" - but the size() call is not recognised in this and so I can see no way of specifying P3D.
I suspect that the problem comes from choosing JFrame, but this was because it allows me to specify setDefaultCloseOperation() which is one of my requirements.
Can anyone help me untangle this?
I am now extending and re-organising the application to put the 3D graphics in a subsidiary window.
I am creating the second window with - "class animationFrame extends JFrame { etc etc" - but the size() call is not recognised in this and so I can see no way of specifying P3D.
I suspect that the problem comes from choosing JFrame, but this was because it allows me to specify setDefaultCloseOperation() which is one of my requirements.
Can anyone help me untangle this?
1