View Single Post
  #7   Spotlight this post!  
Unread 04-05-2012, 02:36
Sunstroke Sunstroke is offline
Programmer
AKA: Joe Grinstead
FRC #3504 (Girls of Steel)
Team Role: Mentor
 
Join Date: Apr 2009
Rookie Year: 2009
Location: New England
Posts: 49
Sunstroke is an unknown quantity at this point
Re: SmartDashboard Window size not saving

Quote:
Originally Posted by Djur View Post
The easiest (temporary) fix until the 2013 release would be to change
Code:
setPreferredSize(NETBOOK_SIZE);
to

Code:
setPreferredSize(new Dimension(width, height));
with (width, height) being based upon the size of your screen.
A better stopgap would be:
Code:
setPreferredSize(new Dimension(prefs.width.getValue(), prefs.height.getValue()));
because that will now save your screen size, and use the saved screen size.