|
Sweet Home 3D Forum » List all forums » » Forum: Developers » » » Thread: How do I add a new button to the toolbar in the Sweet Home 3D applet? » » » » Post: Re: How do I add a new button to the toolbar in the Sweet Home 3D applet? |
Print at Dec 21, 2025, 4:07:33 PM |
| Posted by Puybaret at Jan 29, 2011, 5:18:06 PM |
|
Re: How do I add a new button to the toolbar in the Sweet Home 3D applet? In the method createHomeController of the com.eteks.sweethome3d.applet.AppletApplication class, you should call: toolBar.add(getToolBarAction(homeView, HomeView.ActionType.SPLIT_WALL));If you want to program a new button, implement a new Action and its actionPerformed method, then add the action to the toolbar. If you want to change its icon use the SMALL_ICON value of an action. ---------------------------------------- Emmanuel Puybaret, Sweet Home 3D creator |
|
|
Current timezone is GMT Dec 21, 2025, 4:07:33 PM |