use of com.mucommander.commons.util.ui.layout.XAlignedComponentPanel in project mucommander by mucommander.
the class ThemeNameDialog method createNamePanel.
// - UI initialisation ---------------------------------------------------------------
// -----------------------------------------------------------------------------------
/**
* Creates the panel in which we'll store the label and name field.
* @param name current name.
* @return the panel in which we'll store the label and name field.
*/
private JPanel createNamePanel(String name) {
XAlignedComponentPanel panel;
panel = new XAlignedComponentPanel(5);
nameField = new JTextField();
nameField.setText(name);
nameField.setSelectionStart(0);
nameField.setSelectionEnd(name.length());
panel.addRow(Translator.get("name"), nameField, 0);
return panel;
}
Aggregations