Results 1 to 7 of 7

Thread: Really really easy Swing help [resolved]

Threaded View

  1. #1

    Thread Starter
    Member filburt1's Avatar
    Join Date
    Aug 1999
    Posts
    6,935

    Really really easy Swing help [resolved]

    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:
    1. Me.Move Screen.Width \ 2 - Me.Width \ 2, Screen.Height \ 2 - Me.Height \ 2
    Last edited by filburt1; Sep 27th, 2001 at 03:02 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width