|
Sweet Home 3D Forum » List all forums » » Forum: Installation » » » Thread: Need to deploy on Tomcat serer » » » » Post: Re: Need to deploy on Tomcat serer |
Print at Dec 20, 2025, 8:28:58 PM |
| Posted by prabath at Mar 10, 2015, 3:32:41 AM |
|
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 mainPane.setDividerLocation(0); configureSplitPane(mainPane, home, MAIN_PANE_DIVIDER_LOCATION_VISUAL_PROPERTY, 0.3, true, controller); return mainPane; } Code for Button - Methods in HomeController.java public void enable3DView() { View vv = getHomeController3D().getView(); attachView(vv); show3DView(vv); } /*------3D View-----------------*/ private void show3DView(final View view) { JComponent jc = (JComponent)view; Container parent = jc.getParent(); // dummyComponent.getParent(); if (parent instanceof JSplitPane) { JSplitPane splitPane = (JSplitPane)parent; int loc = splitPane.getDividerLocation(); int min = splitPane.getMinimumDividerLocation(); int max = splitPane.getMaximumDividerLocation(); if(is3DViewClicked){ splitPane.setDividerLocation(0.0); is3DViewClicked = false; } else { splitPane.setDividerLocation(1.0); is3DViewClicked = true; } } Thnak You |
|
|
Current timezone is GMT Dec 20, 2025, 8:28:58 PM |