@@ -0,0 +1,1708 @@
+import vtk.vtkActor;%0Aimport vtk.vtkSphereSource;%0Aimport vtk.vtkNativeLibrary;%0Aimport vtk.vtkPolyDataMapper;%0Aimport vtk.vtkRenderView;%0Aimport vtk.vtkNamedColors;%0A%0Apublic class RenderView%0A%7B%0A%09// -----------------------------------------------------------------%0A%09// Load VTK library and print which library was not properly loaded%0A%09static %0A%09%7B%0A%09%09if (!vtkNativeLibrary.LoadAllNativeLibraries()) %0A%09%09%7B%0A%09%09%09for (vtkNativeLibrary lib : vtkNativeLibrary.values()) %0A%09%09%09%7B%0A%09%09%09%09if (!lib.IsLoaded()) %0A%09%09%09%09%7B%0A%09%09%09%09%09System.out.println(lib.GetLibraryName() + %22 not loaded%22);%0A%09%09%09%09%7D%0A%09%09%09%7D%0A%09%09%7D%0A%09%09vtkNativeLibrary.DisableOutputWindow(null);%0A%09%7D%0A%09// -----------------------------------------------------------------%0A%09%09%0A%09public static void main(String s%5B%5D) %0A%09%7B%09%09%09%09%09%0A%09%09vtkNamedColors colors = new vtkNamedColors();%0A%0A    //For Actor Color%0A    double actorColor%5B%5D = new double%5B4%5D;%0A    //Renderer Background Color%0A    double Bgcolor%5B%5D = new double%5B4%5D;%0A        %0A    colors.GetColor(%22Crimson%22, actorColor);%0A    colors.GetColor(%22MidnightBlue%22, Bgcolor);%0A        %0A%09%09//Create a Sphere%0A%09%09vtkSphereSource Sphere = new vtkSphereSource();%0A%09%09Sphere.SetCenter(0.0,0.0,0.0);%0A%09%09Sphere.SetRadius(1.0);%0A%09%09Sphere.Update();%0A%09%09%0A%09%09//Create a Mapper and Actor%0A%09%09vtkPolyDataMapper Mapper = new vtkPolyDataMapper();%0A%09%09Mapper.SetInputConnection(Sphere.GetOutputPort());%0A%09%09%0A%09%09vtkActor Actor = new vtkActor();%0A%09%09Actor.SetMapper(Mapper);%0A%09%09Actor.GetProperty().SetColor(actorColor);%0A%09%09%0A%09%09vtkRenderView RenderView = new vtkRenderView();%0A%09%09RenderView.SetInteractionModeTo3D();%0A%09%09RenderView.GetRenderer().AddActor(Actor);%0A%09%09RenderView.GetRenderer().SetBackground(Bgcolor);%0A%09%09RenderView.Update();%0A%0A%09%09RenderView.ResetCamera();%0A%09%09RenderView.GetInteractor().Start();%0A%09%7D%09%09  %0A%7D%0A

Create RenderView.java