From 5e795a1fb0805c10d8e8d73f5e89de00a150fda0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Mon, 23 Jun 2008 23:09:41 +0200 Subject: [PATCH] make mime type combo box editable --- src/de/todesbaum/jsite/gui/ProjectFilesPage.java | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/de/todesbaum/jsite/gui/ProjectFilesPage.java b/src/de/todesbaum/jsite/gui/ProjectFilesPage.java index 872650a..2d6743d 100644 --- a/src/de/todesbaum/jsite/gui/ProjectFilesPage.java +++ b/src/de/todesbaum/jsite/gui/ProjectFilesPage.java @@ -74,7 +74,7 @@ import de.todesbaum.util.swing.TWizardPage; /** * Wizard page that lets the user manage the files of a project. - * + * * @author David ‘Bombe’ Roden <bombe@freenetproject.org> */ public class ProjectFilesPage extends TWizardPage implements ActionListener, ListSelectionListener, DocumentListener, FileScannerListener, ChangeListener { @@ -123,7 +123,7 @@ public class ProjectFilesPage extends TWizardPage implements ActionListener, Lis /** * Creates a new project file page. - * + * * @param wizard * The wizard the page belongs to */ @@ -214,7 +214,7 @@ public class ProjectFilesPage extends TWizardPage implements ActionListener, Lis /** * Creates the panel contains the project file list and options. - * + * * @return The created panel */ private JComponent createProjectFilesPanel() { @@ -267,6 +267,7 @@ public class ProjectFilesPage extends TWizardPage implements ActionListener, Lis fileOptionsMIMETypeComboBox.setToolTipText(I18n.getMessage("jsite.project-files.mime-type.tooltip")); fileOptionsMIMETypeComboBox.setName("project-files.mime-type"); fileOptionsMIMETypeComboBox.addActionListener(this); + fileOptionsMIMETypeComboBox.setEditable(true); fileOptionsMIMETypeComboBox.setEnabled(false); final TLabel mimeTypeLabel = new TLabel(I18n.getMessage("jsite.project-files.mime-type") + ":", KeyEvent.VK_M, fileOptionsMIMETypeComboBox); @@ -335,7 +336,7 @@ public class ProjectFilesPage extends TWizardPage implements ActionListener, Lis /** * Sets the project whose files to manage. - * + * * @param project * The project whose files to manage */ @@ -354,7 +355,7 @@ public class ProjectFilesPage extends TWizardPage implements ActionListener, Lis /** * Returns a list of all project files. - * + * * @return All project files */ private List getProjectFiles() { @@ -610,7 +611,7 @@ public class ProjectFilesPage extends TWizardPage implements ActionListener, Lis /** * Updates the options of the currently selected file with the changes made * in the “custom key” textfield. - * + * * @param documentEvent * The document event to process */ -- 2.7.4