1 Reply Latest reply on Oct 7, 2004 6:31 PM by camickr

    making JInternal Frame Immovable

      I want my Jinternal frame not to move.by default its moving over my Jframe.i want it to be immovable.how do i do that
        • 1. Re: making JInternal Frame Immovable
          You could try removing the MouseMotionListeners from the internal frame. Here is a similiar example on removing MouseListeners from a JCheckBox:
          MouseListener[] actions = (MouseListener[])checkBox.getListeners(MouseListener.class);
          for (int i = 0; i < actions.length; i++)
              checkBox.removeMouseListener( actions[i] );