Re: Basic Code Required
by rohanbhanu » Wed Jun 05, 2013 8:33 am
I am attaching code for reference.
try {
Class c=Class.forName("com.eteks.sweethome3d.model.Home");
Home hm=(Home)c.newInstance();
hm=new Home();
hm.setName("rohan");
hm.addLabel(new Label("MyHome", 1, 11));
Level arg0 = new Level("rohan",20,1,3);
out.print("asdasdasd");
hm.addLevel(arg0);
hm.getPrint();
hm.setModified(true);
Room rom;
Room room=new Room({{},{}});
hm.addRoom(room);
}catch(Exception e){out.print(e.getMessage());}
Using this code I can initialize the home class.
But what is method to display the home preview after adding walls and furniture.