i created a mdi application with this method :
protected void createFrame() {
MyInternalFrame frame = new MyInternalFrame();
multiWindow.add(frame);
frame.setVisible(true);
try {
frame.setSelected(true);
} catch (java.beans.PropertyVetoException e) {
}
}
class MyInternalFrame extends JInternalFrame {
static final int xPosition = 30, yPosition = 30;
public MyInternalFrame() {
super("Gpaint Shape #" + (++openFrameCount), false, // resizable
true, // closable
false, // maximizable
false);// iconifiable
setSize(300, 300);
// Set the window's location.
setLocation(xPosition * openFrameCount, yPosition
* openFrameCount);
}
and now i want draw a line on active internalframe but i can't plz help me......

