I'm learning Swing at my mentorship and am used to VB's way of doing GUI stuff, so naturally Swing is hell to me. How can I center a JFrame in the screen, like VB's vbCenterScreen StartupPosition property? I have the VB code but I have no idea how to do it in Java:
VB Code:
Me.Move Screen.Width \ 2 - Me.Width \ 2, Screen.Height \ 2 - Me.Height \ 2
