use of com.mucommander.ui.progress.ProgressTextField in project mucommander by mucommander.
the class LocationBarPanel method createPreviewPanel.
private JPanel createPreviewPanel() {
YBoxPanel panel = new YBoxPanel();
// panel.add(new JLabel(Translator.get("theme_editor.normal")));
panel.add(createCaptionLabel("theme_editor.normal"));
normalPreview = new ProgressTextField(0, themeData.getColor(ThemeData.LOCATION_BAR_PROGRESS_COLOR));
panel.add(normalPreview);
normalPreview.setText(System.getProperty("user.home"));
panel.addSpace(10);
panel.add(createCaptionLabel("theme_editor.progress"));
progressPreview = new ProgressTextField(50, themeData.getColor(ThemeData.LOCATION_BAR_PROGRESS_COLOR));
panel.add(progressPreview);
progressPreview.setText(System.getProperty("user.home"));
progressPreview.setEnabled(false);
JPanel borderPanel = new JPanel(new BorderLayout());
borderPanel.add(panel, BorderLayout.NORTH);
borderPanel.setBorder(BorderFactory.createTitledBorder(Translator.get("preview")));
setBackgroundColors();
setForegroundColors();
setProgressColors();
return borderPanel;
}
Aggregations