JPanel () { final JPanel panel = new JPanel(new VerticalFlowLayout(0, 2)); final LabeledComponent<TextFieldWithBrowseButton> component = createLocationComponent(); panel.add(component); return panel; }