Print at Dec 19, 2025, 10:12:31 PM

Posted by bandara at Jun 21, 2011, 6:22:43 PM
Re: how to get selected drawing to another swing interface
bro i try to get area of selected room by this code.
float area;
float s1[][]={{1,2},{3,5}};
Room r =new Room(s1);
area=r.getArea();
JOptionPane.showMessageDialog(null,area);

but it always shows 0.0 in result.
Any reason.?