Hi all,

I have some problems with JTabbedPane and canvases.

I have a tabbed pane which has three tabs and each tab has different canvases. On each canvas I have different views of my scene (e.g. plan view on tab_0 and 3D view on tab_1,2). In the code, tab 0 is selected as default. So I expect my plan view appear on tab 0. However,

1) When I run my application, although tab 0 is selected I see the 3D view on tab 0. This is corrected when I click other tabs and return back to tab 0.

2) Secondly, I created a picking class which picks the objects on the canvas which is in tab 1 (3D view). Although I haven't passed the canvas of the plan view (on tab 0) as an argument,  the pick class selects objects from the plan view too. What is the reason for this?

Thanks for any help.
Ali

Reply via email to