@@ -0,0 +1,2434 @@
+/*%0A *               In the name of Allah%0A * This file is part of The %22Quran Teacher or Learn Arabic%22 Project. Use is subject to%0A * license terms.%0A *%0A * @author:         Fazle Rabbi Rahat%0A * %0A */%0Apackage QuranTeacher;%0A%0Aimport java.awt.Color;%0Aimport java.awt.Font;%0Aimport java.awt.GridBagConstraints;%0Aimport java.awt.Insets;%0Aimport java.awt.event.ActionEvent;%0Aimport java.awt.event.ActionListener;%0A%0Aimport javax.swing.JComboBox;%0Aimport javax.swing.JLabel;%0A%0Aimport QuranTeacher.Preferences.MyLanguages;%0Aimport QuranTeacher.Preferences.TranslationPreferences;%0A%0Apublic class TranslationSetupPanel extends PreferencesSetupPanel %7B%0A%0A%09/**%0A%09 * For setting translation preferences%0A%09 */%0A%09private static final long serialVersionUID = 1L;%0A%0A%09/**%0A%09 * Create the panel.%0A%09 */%0A%09%0A%09public TranslationSetupPanel(String name, final TranslationPreferences preferences) %7B%0A%09%09super(name, preferences);%0A%09%09%0A%09%09previewText=MyLanguages.previewText%5Bpreferences.getLanguageIndex()%5D;%0A%09%09%0A%09%09fontPreviewPanel.setText(previewText);%0A%09%09fontPreviewPanel.updateFontPreview();%0A%09%09%0A%09%09JLabel lblLangName = new JLabel(%22Language :%22);%0A%09%09lblLangName.setToolTipText(%22Set Translating Language%22);%0A%09%09lblLangName.setForeground(Color.ORANGE);%0A%09%09lblLangName.setFont(new Font(%22Tahoma%22, Font.PLAIN, 18));%0A%09%09GridBagConstraints gbc_lblLangName = new GridBagConstraints();%0A%09%09gbc_lblLangName.anchor = GridBagConstraints.WEST;%0A%09%09gbc_lblLangName.insets = new Insets(0, 0, 5, 5);%0A%09%09gbc_lblLangName.gridx = 0;%0A%09%09gbc_lblLangName.gridy = 7;%0A%09%09add(lblLangName, gbc_lblLangName);%0A%09%09%0A%09%09%0A%09%09final JComboBox%3CString%3E LangSelectComboBox = new JComboBox%3CString%3E (MyLanguages.languageNames);%0A%09%09LangSelectComboBox.setBackground(Color.LIGHT_GRAY);%0A%09%09LangSelectComboBox.setSelectedIndex(preferences.getLanguageIndex());%0A%09%09LangSelectComboBox.addActionListener(new ActionListener() %7B%0A%09%09%09public void actionPerformed(ActionEvent e) %7B%0A%09%09%09%09%0A%09%09%09%09int i=LangSelectComboBox.getSelectedIndex();%0A%09%09%09%09preferences.setLanguageIndex(i);%0A%09%09%09%09fontPreviewPanel.setText(MyLanguages.previewText%5Bi%5D);%0A%09%09%09%09fontPreviewPanel.updateTextArea();%0A%09%09%09%7D%0A%09%09%7D);%0A%09%09LangSelectComboBox.setFont(new Font(%22Tahoma%22, Font.PLAIN, 18));%0A%09%09GridBagConstraints gbc_LangSelectComboBox = new GridBagConstraints();%0A%09%09gbc_LangSelectComboBox.insets = new Insets(0, 0, 5, 0);%0A%09%09gbc_LangSelectComboBox.fill = GridBagConstraints.HORIZONTAL;%0A%09%09gbc_LangSelectComboBox.gridx = 1;%0A%09%09gbc_LangSelectComboBox.gridy = 7;%0A%09%09add(LangSelectComboBox, gbc_LangSelectComboBox);%0A%09%7D%0A%0A%7D%0A

Create UserInputListener.java