Forums Register Login

How can I stop a JFrame from being resized?

+Pie Number of slices to send: Send
Hi, I have a JFrame with some content, I want that to be in the same size as it is created.I don't want to get it resized,i.e.(I should not get a resize mouse pointer when my mouse is placed at the borders of the JFrame.is this possible im JFrames or can this be done in Jwindow.Please reply me with the best answer.
Happy middling with java.
Netharam.
+Pie Number of slices to send: Send
Yes. You can achieve that using JFrame. Use the method setResizable(false). Even the re-size pointer won't appear when you have mouse at the borders of the frame.
Another alternative is to use JDialog.
Thanks,
- Raja.
+Pie Number of slices to send: Send
Hi, I tired this out & is working fine.
Thank You.
Happy middling with java.
Netharam.
If I had asked people what they wanted, they would have said faster horses - Ford. Tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 2464 times.
Similar Threads
mouse curser
Frame events
Any RESIZE listener there???
Any RESIZE listener there???
Setting a size
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 06:48:09.