centerSplitter.setResizeWeight(0.95); centerSplitter.setOneTouchExpandable(true);
centerSplitter.setResizeWeight(0.8f); centerSplitter.setOneTouchExpandable(true);
    public void showGUI() {        JSplitPane centerSplitter;                options = new AppOptions();        options.loadOptions();                getContentPane().setLayout(new BorderLayout());                bottom = new BottomBar(this);        getContentPane().add(bottom, BorderLayout.SOUTH);                        autPane = new AutWindow(this);          side = new Sidebar(autPane);                side.insertNewAut();                top = new TopBar();        getContentPane().add(top, BorderLayout.NORTH);                centerSplitter = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT, autPane, side);        centerSplitter.setResizeWeight(0.95);        centerSplitter.setOneTouchExpandable(true);         getContentPane().add(centerSplitter, BorderLayout.CENTER);                menubar = new MainMenu(this, side);        this.setJMenuBar(menubar);                setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);                pack();        setLocation(30,30);        setVisible(true);                // TODO, cmd-argumente        newFile();    }