public FileImportJPanel() { super(); labelFileName = new JLabel(); labelFileName.setText("Server URL"); labelFileName = new JLabel(); labelFileName.setText("File Name"); textFileName = new CFJStringEditor(); textFileName.setMaxLen(4096); labelLogContents = new JLabel(); labelLogContents.setText("Import Log Contents"); textLogContents = new CFJTextEditor(); textLogContents.setMaxLen(1000000); actionChooseFile = new ActionChooseFile(); actionImportFile = new ActionImportFile(); actionClose = new ActionClose(); buttonChooseFile = new JButton(actionChooseFile); buttonImportFile = new JButton(actionImportFile); buttonClose = new JButton(actionClose); add(labelFileName); add(textFileName); add(labelLogContents); add(textLogContents); add(buttonChooseFile); add(buttonImportFile); add(buttonClose); Dimension sz = new Dimension(800, 480); setSize(sz); int height = doLayoutRetHeight(); Dimension newSz = new Dimension(800, height); setSize(newSz); }