Added new startup flag openrocket.debug.layout which when set, shows
boxes around all the components in miglayout. Hopefully this will help fix various layout issues in the applicaiton.
This commit is contained in:
parent
28d970cad6
commit
e2575bca12
@ -10,6 +10,7 @@ import javax.swing.SwingUtilities;
|
||||
import javax.swing.Timer;
|
||||
import javax.swing.ToolTipManager;
|
||||
|
||||
import net.miginfocom.layout.LayoutUtil;
|
||||
import net.sf.openrocket.arch.SystemInfo;
|
||||
import net.sf.openrocket.arch.SystemInfo.Platform;
|
||||
import net.sf.openrocket.communication.UpdateInfo;
|
||||
@ -51,6 +52,10 @@ public class SwingStartup {
|
||||
// Check for "openrocket.debug" property before anything else
|
||||
checkDebugStatus();
|
||||
|
||||
if (System.getProperty("openrocket.debug.layout") != null) {
|
||||
LayoutUtil.setGlobalDebugMillis(100);
|
||||
}
|
||||
|
||||
// Initialize logging first so we can use it
|
||||
initializeLogging();
|
||||
log.info("Starting up OpenRocket version " + BuildProperties.getVersion());
|
||||
|
Loading…
x
Reference in New Issue
Block a user