First go to the properties window of your jFrame.
Select Code view.
In code view Form size policy settings default value is Generate pack().
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj0Q1YPJe-DJRoDSbzmcbQG1ku_EuMy8mVLsbhWaJc9vfr78KGjXdIMie7ZMXHKFM7iZJtRRk9ManA_dYFduBMve2abbem8EtHp73V6oIYrdPpTYeNBu51VgFzBI5ily9tY9lBZCNjPX_8/s1600/frame_properties_code.gif)
Select Generate Resize Code.
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgPDPyAcKtlXl4fWDb3UuhY5UI2PlIwJFeOxDWcb2X4tMoqAVL_UmSc0wNia_Njm5_EkH5yul5txQt0ivlotkvv7bDLlJ4mKHxia_7aF1R9Zpc5R-Nuj4fzJtjdMHvB5bvp8Rml1akCXVw/s1600/frame_properties_code_resize.gif)
Now bellow settings will be changed.
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhOOYfmHIv-2CuNQ_Kh4Ie6-e0Qu1Fe6FJXTEIwhIgAhyphenhyphenWNmKGLYwpA_0Xsjiss1rSSAnb96Hz6OcqgRoK4fNRNtrt_0vCtyk4UnQ6feJBjoQuu0d2kcbNswK3ylDPHYyy9uGJgqOcI-Ms/s1600/frame_properties_code_resize_tick.gif)
Tick the Generate Center option, it will unchecked the Generate Position option.
Close the properties window and run the application.
Enjoy coding!...
If you have any questions pls feel free to ask :)
If you have any questions pls feel free to ask :)
No comments:
Post a Comment