Listen to JFrame resize events as the user drags their mouse?
You can add a component listener and implement the componentResized function like that: JFrame component = new JFrame(“My Frame”); component.addComponentListener(new ComponentAdapter() { public void componentResized(ComponentEvent evt) { Component c = (Component)evt.getSource(); //…….. } }); EDIT: Apparently, for JFrame, the componentResized event is hooked to the mouseReleased event. That’s why the method is invoked when the … Read more