![]() |
SmartDashboard Window size not saving
Hey everybody!
We recently switched Driver Station computers due to the fact that our old classmate kept causing SmartDashboard to crash. We are now using a plastic MacBook running Windows 7 through BootCamp. The SmartDashboard launches fine, but the window size is too small on launch (1024x400 to be exact). We are able to change the window size just fine through File > Preferences but, when we reopen the dashboard, the window size resets to 1024x400. We know that the layout was saved because we added a second camera feed when we set up the new Driver Station, and it was still showing when we relaunched. How can we fix this? Thanks in advance! |
Re: SmartDashboard Window size not saving
Quote:
One option is to not run it in competition mode. To do that, go to Program Files\FRCDashboard\launcher.bat and remove the word competition (or "-competition", I don't remember if there is a hyphen). |
Re: SmartDashboard Window size not saving
When your in "competition" mode, the size of the window is hard coded into the program. However, it's quite easy to change, all you have to do is change one line in the source (which is downloadable from firstforge.wpi.edu). I have successfully changed our dashboard to display at 1366x500. If you need any help, or just want me to compile you one with your resolution hard coded, PM me.
|
Re: SmartDashboard Window size not saving
Thanks for the help guys! I've passed this on to our lead programmer. Good luck for those going to worlds!
|
Re: SmartDashboard Window size not saving
Sorry about the annoyance, we'll try to fix it for 2013.
Brad |
Re: SmartDashboard Window size not saving
The problem seems to be at DashboardFrame.java at line 119:
Code:
// Set the size / lookCode:
setPreferredSize(NETBOOK_SIZE);Code:
setPreferredSize(new Dimension(width, height)); |
Re: SmartDashboard Window size not saving
Quote:
Code:
setPreferredSize(new Dimension(prefs.width.getValue(), prefs.height.getValue())); |
| All times are GMT -5. The time now is 00:52. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi