France
Joined: Nov 7, 2005
Post Count: 9430
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.
France
Joined: Nov 7, 2005
Post Count: 9430
Status:
Offline
Re: Need to deploy on Tomcat serer
I don't think that a NotSerializableException is due to an issue in the URL or a network error. This exception is probably due to additional classes that you use in your saved homes that are not marked as Serializable. Don't forget to add a serialVersionUID field to your class(es) if you want to keep its compatibility when you'll add new fields and methods to it.
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D creator