public void layoutContainer(Container target) { /* * Algorithm is as follows: - the "left-hand" components take 33% of * horizontal space - scrollPane takes the remaining space */ synchronized (target.getTreeLock()) { if (pane == null || spane == null) return; Dimension dim = target.getSize(); if (dim.height < 20) return; spane.setBounds(new Rectangle(0, 0, dim.width, dim.height)); // Dimension dim0 = new Dimension(dim.width-2, dim.height-2); // pane.setPreferredSize(dim0); // JViewport viewPort = spane.getViewport(); // viewPort.setViewSize(dim0); // paramsLayout.setReferenceSize(dim0.width, dim0.height); } }