Re: how to get selected drawing to another swing interface
by bandara » Tue Jun 21, 2011 6:22 pm
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.?