I want to ask how to make frame can not drag when the application is running?
And then how to disable maximize, minimize button (title bar)?
I'm using JFrame.
JFrame
Just add the below line it removes the window decorations like close maximise and minimise(titlebar). This itself disables the dragging only with mouse events.
frame.setUndecorated(true);
2.1m questions
2.1m answers
60 comments
57.0k users