Print at Dec 23, 2025, 9:09:12 PM View all posts in this thread on one page
Posted by ckuppel at Nov 15, 2010, 9:43:31 AM
add a member to HomePieceOfFurniture
hello everyone,

I try to edit the stucture of the "HomePieceOfFurniture" model by adding member. I alredy added the member, the getter and the setter, i modified the different views by adding an input field for this member (import and edit by double clicking on the object on the plan 2D).
I don't know where (or when) the listener witch use the setters of "HomePieceOfFurniture" is called.

this is a list of file modified :

HomePieceOfFurniture.java
homeFurnitureController.java


When i importing a furniture or when modify one, i fill my text input associated to the member, then there the value of the memberis still Null.

Do someOne has an Idee?
Thank you

[Note from moderator: please no translation. If you prefer to speak French, please post in the French section]

Posted by Puybaret at Nov 15, 2010, 4:41:44 PM
Re: add a member to HomePieceOfFurniture
Sorry, but no one will be able to find a bug in your code, if he doesn't see the part you changed!
I suggest you to use a debugger to be sure that you set the fields and the variables values as expected.

By the way, "witch" is "sorcière" but I guessed you wanted to use "which" instead! wink
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D creator

Posted by ckuppel at Nov 17, 2010, 11:00:53 AM
Re: add a member to HomePieceOfFurniture
Hello,

Thank you for your answer.

I'd like to put a breakcpoint, but i don't know where I have to put it. I don't know which file is concern by the event click (or double click) on an object in the 2D plan.

I knows that's a small problem but there is a lot of file, and I'm quite lost.

Posted by Puybaret at Nov 17, 2010, 11:24:27 AM
Re: add a member to HomePieceOfFurniture
Every body is lost in front of 60000 lines... until you understand better the logic of the software. wink

By the way, it would be nice to present yourself and your project.
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D creator

Posted by ckuppel at Nov 17, 2010, 2:24:18 PM
Re: add a member to HomePieceOfFurniture
Let me introcuce myself,

I'm a student in IT and project management

I'm able to develop in several languages, I have got basic java developpement skills (java - swing) with eclipse.

I'm working on a project at school which includes the sweethome3D Applet. I'm in charge of de 3D section of this project. The main part of my work consist in changing the behavior of SH3D when you import a funriture into the catalog or edit a furniture dragged in the 2D plan.

Posted by Sv.Kostadinov at Nov 19, 2010, 10:07:47 AM
Re: add a member to HomePieceOfFurniture
Hi, send me your skype or email, please. I will try to help you out. I've actually derived and changed a lot of classes. My project doesn't have anything to do with furniture, but basically the selectable objects act the same way. So, maybe I could help you.

Posted by Puybaret at Nov 19, 2010, 10:37:06 AM
Re: add a member to HomePieceOfFurniture
Thank you Svetlozar to propose your help. smile
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D creator

Posted by ckuppel at Nov 19, 2010, 3:53:00 PM
Re: add a member to HomePieceOfFurniture
Thank you very much Svetlozar, i sent you my skype.