Skip to main content

multiple JFames one "splitted" Canvas3D

Please note these java.net forums are being decommissioned and use the new and improved forums at https://community.oracle.com/community/java.
No replies
sheppard
Offline
Joined: 2011-12-15

Hi Guys,

im new to J3D so this mitght be an very stupid question.

i'm trying to split my J3D program on more than one Jframe to view it(each part of the canvas3d) on multiple PCs over network.

if my canvas3d is for example 200x200 px. i'm trying to spit it that i can show it in 4 different JFram windows.

JFrame frame1 = new JFrame("one");

frame1.getContentPane().add(canvasPART1, "Center");

frame1.setVisible(true);

.....

frame2.getContentPane().add(canvasPART2, "Center");

.... and so on (i hope you get it ;) )

with:

1. Window:

x = 0 to 100 px

y = 0 to100 px

2. Window

x = 100 to 200 px

y = 0 t0 100 px

and so on

but how can i split the canvas3d object? or is there better posibility?

best regards

sheppard