public void testMethod() { System.out.println("Hi there.. I am the test method.. "); is3DViewClicked = true; View view = getHomeController3D().getView();
}
Once I press the button, the method is called. But I can't see the 3D view. Could you tell me how to view 3D panel ?
France
Joined: Nov 7, 2005
Post Count: 9426
Status:
Offline
Re: Need to deploy on Tomcat serer
If you didn't create the 3D view as requested previously, don't be astonished that you can't manage it later!
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D creator
Joined: Dec 24, 2014
Post Count: 28
Status:
Offline
Re: Need to deploy on Tomcat serer
The application which I developed using Sweet Home, is capable of detecting floor plan and drawing walls automatically. So If 3D view is enabled, system becomes slow.
Therefore I removed 3D view functionality and wanted to add a button to add 3D view functionality.
France
Joined: Nov 7, 2005
Post Count: 9426
Status:
Offline
Re: Need to deploy on Tomcat serer
In the current version, all classes that implement com.eteks.sweethome3d.viewcontroller.View interface are subclasses of javax.swing.JComponent. So cast 3D view to JComponent to be able to call its setVisible method.
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D creator
Joined: Dec 24, 2014
Post Count: 28
Status:
Offline
Re: Need to deploy on Tomcat serer
Hi Puybaret..
I tried to fix my requirement as you said. Actually it is not clear to me. Anyway I found a solution to do that and mentioned below the code. Initially I set the 3D pane as 0.
HomePane - createMainPane Method
else { final JSplitPane mainPane = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT, catalogFurniturePane, planView3DPane); // Set default divider location
Joined: Dec 24, 2014
Post Count: 28
Status:
Offline
Re: Need to deploy on Tomcat serer
Hi Puybaret..
In my application , I retrieve the Floor Plan from the server. (Not from the Client side). When I try to save the Floor Plan, It gives a NotSerializableException. Because I load the Floor Plan image through a URL
eg : Content c = new URLContent(new URL(AppletApplication.URL_PREFIX + "/restAPI/plan/" + AppletApplication.SELECTED_PLAN_ID +"/image"));
I would be thankful, If you are able to give me a solution for this.