Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Visual Editor (VE) » center frame
center frame [message #617531] Wed, 02 December 2009 18:53
Mik  is currently offline Mik Friend
Messages: 4
Registered: November 2009
Junior Member
I have a bit of code, that I normally use to center a frame that I made "by hand", but somehow, It doesn't seem to have an effect on VE created frames. What could I be doing wrong? :blush:

this.setLocation((Toolkit.getDefaultToolkit().getScreenSize( ).width/2)-(getSize().width/2), (Toolkit.getDefaultToolkit().getScreenSize().height/2)-(getS ize().height/2));
Previous Topic:center frame
Next Topic:Can't set new file editor: NullPointerException
Goto Forum:

Current Time: Sat Jan 22 09:38:12 GMT 2022

Powered by FUDForum. Page generated in 0.01850 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top