├── .gitignore ├── src ├── img │ ├── bg2.jpg │ ├── bg4.png │ ├── exit.png │ ├── img.jpg │ ├── logo.ico │ ├── logo.jpg │ ├── close.png │ ├── colour.png │ ├── diskette.png │ ├── documents.png │ ├── folder(2).png │ └── save-file.png └── Tawfekh_editor │ ├── Tawfekh_editor.java │ └── Tawfekh_editor.form ├── manifest.mf ├── distros └── jar │ └── Tawfekh_editor.jar ├── .deepsource.toml ├── .github └── workflows │ └── greetings.yml ├── nbproject ├── genfiles.properties ├── project.xml ├── project.properties └── build-impl.xml └── README.md /.gitignore: -------------------------------------------------------------------------------- 1 | /build/ 2 | -------------------------------------------------------------------------------- /src/img/bg2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MedouneSGB/Tawfekh-Editor/HEAD/src/img/bg2.jpg -------------------------------------------------------------------------------- /src/img/bg4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MedouneSGB/Tawfekh-Editor/HEAD/src/img/bg4.png -------------------------------------------------------------------------------- /src/img/exit.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MedouneSGB/Tawfekh-Editor/HEAD/src/img/exit.png -------------------------------------------------------------------------------- /src/img/img.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MedouneSGB/Tawfekh-Editor/HEAD/src/img/img.jpg -------------------------------------------------------------------------------- /src/img/logo.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MedouneSGB/Tawfekh-Editor/HEAD/src/img/logo.ico -------------------------------------------------------------------------------- /src/img/logo.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MedouneSGB/Tawfekh-Editor/HEAD/src/img/logo.jpg -------------------------------------------------------------------------------- /src/img/close.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MedouneSGB/Tawfekh-Editor/HEAD/src/img/close.png -------------------------------------------------------------------------------- /src/img/colour.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MedouneSGB/Tawfekh-Editor/HEAD/src/img/colour.png -------------------------------------------------------------------------------- /src/img/diskette.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MedouneSGB/Tawfekh-Editor/HEAD/src/img/diskette.png -------------------------------------------------------------------------------- /src/img/documents.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MedouneSGB/Tawfekh-Editor/HEAD/src/img/documents.png -------------------------------------------------------------------------------- /src/img/folder(2).png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MedouneSGB/Tawfekh-Editor/HEAD/src/img/folder(2).png -------------------------------------------------------------------------------- /src/img/save-file.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MedouneSGB/Tawfekh-Editor/HEAD/src/img/save-file.png -------------------------------------------------------------------------------- /manifest.mf: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | X-COMMENT: Main-Class will be added automatically by build 3 | 4 | -------------------------------------------------------------------------------- /distros/jar/Tawfekh_editor.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MedouneSGB/Tawfekh-Editor/HEAD/distros/jar/Tawfekh_editor.jar -------------------------------------------------------------------------------- /.deepsource.toml: -------------------------------------------------------------------------------- 1 | version = 1 2 | 3 | [[analyzers]] 4 | name = "java" 5 | 6 | [analyzers.meta] 7 | runtime_version = "11" -------------------------------------------------------------------------------- /.github/workflows/greetings.yml: -------------------------------------------------------------------------------- 1 | name: Greetings 2 | 3 | on: [pull_request_target, issues] 4 | 5 | jobs: 6 | greeting: 7 | runs-on: ubuntu-latest 8 | permissions: 9 | issues: write 10 | pull-requests: write 11 | steps: 12 | - uses: actions/first-interaction@v1 13 | with: 14 | repo-token: ${{ secrets.GITHUB_TOKEN }} 15 | issue-message: 'Super, Great issue ! Lets check it ASAP' 16 | pr-message: 'Yes, jajeuf. Lets check and Merge it ASAP' 17 | -------------------------------------------------------------------------------- /nbproject/genfiles.properties: -------------------------------------------------------------------------------- 1 | build.xml.data.CRC32=2ab8bd3f 2 | build.xml.script.CRC32=e91984bb 3 | build.xml.stylesheet.CRC32=f85dc8f2@1.102.0.48 4 | # This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. 5 | # Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. 6 | nbproject/build-impl.xml.data.CRC32=2ab8bd3f 7 | nbproject/build-impl.xml.script.CRC32=0244cd82 8 | nbproject/build-impl.xml.stylesheet.CRC32=12e0a6c2@1.102.0.48 9 | -------------------------------------------------------------------------------- /nbproject/project.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | org.netbeans.modules.java.j2seproject 4 | 5 | 6 | TawfekhEditor 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Tawfekh-Editor 2 | A beautiful and customizable text editor.✨ 3 | 4 | Tawfekh Editor is simple and easy to use. 5 | You can customize it to get the best writing experience. 6 | 7 | Tawfekh has been created to diffuse a writing mood 🌾 8 | 9 | ## Contributions 10 | Please feel free to fork and Contribute!😁 11 | Drop Pull Requests and push some stars ⭐⭐⭐ 12 | 13 | ## Download v1.0 14 | [![image](https://user-images.githubusercontent.com/40875400/164351899-3d23de26-69ce-40a2-b750-94f2c4c428c8.png)](https://github.com/MedouneSGB/Tawfekh-Editor/releases/download/v1.0/Tawfekh.exe.rar) 15 | 16 | ## Screens 17 | ![image](https://user-images.githubusercontent.com/40875400/164351287-98e2ecfe-309a-4c31-811f-aeaddf522550.png) 18 | ![image](https://user-images.githubusercontent.com/40875400/164352439-d68f3ed2-5d13-4fef-a399-7cb55f497569.png) 19 | ![image](https://user-images.githubusercontent.com/40875400/164442418-90303dc5-b7ca-4b9b-a00f-3ae4065013ef.png) 20 | ![image](https://user-images.githubusercontent.com/40875400/164442520-12f7f5dd-2cb6-4200-bed0-cb27b5d0b14f.png) 21 | ![image](https://user-images.githubusercontent.com/40875400/164509494-1f6c9c9d-3e7c-40f9-9e13-0d62fdf0b90c.png) 22 | ![image](https://user-images.githubusercontent.com/40875400/164509563-1ade0aab-709d-4398-8863-6ed56f3a5f67.png) 23 | 24 | [![Made-In-Senegal](https://github.com/GalsenDev221/made.in.senegal/blob/master/assets/badge.svg)](https://github.com/GalsenDev221/made.in.senegal) 25 | -------------------------------------------------------------------------------- /nbproject/project.properties: -------------------------------------------------------------------------------- 1 | annotation.processing.enabled=true 2 | annotation.processing.enabled.in.editor=false 3 | annotation.processing.processors.list= 4 | annotation.processing.run.all.processors=true 5 | annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output 6 | application.title=TawfekhEditor 7 | application.vendor=user 8 | auxiliary.org-netbeans-spi-editor-hints-projects.perProjectHintSettingsFile=nbproject/cfg_hints.xml 9 | build.classes.dir=${build.dir}/classes 10 | build.classes.excludes=**/*.java,**/*.form 11 | # This directory is removed when the project is cleaned: 12 | build.dir=build 13 | build.generated.dir=${build.dir}/generated 14 | build.generated.sources.dir=${build.dir}/generated-sources 15 | # Only compile against the classpath explicitly listed here: 16 | build.sysclasspath=ignore 17 | build.test.classes.dir=${build.dir}/test/classes 18 | build.test.results.dir=${build.dir}/test/results 19 | # Uncomment to specify the preferred debugger connection transport: 20 | #debug.transport=dt_socket 21 | debug.classpath=\ 22 | ${run.classpath} 23 | debug.modulepath=\ 24 | ${run.modulepath} 25 | debug.test.classpath=\ 26 | ${run.test.classpath} 27 | debug.test.modulepath=\ 28 | ${run.test.modulepath} 29 | # Files in build.classes.dir which should be excluded from distribution jar 30 | dist.archive.excludes= 31 | # This directory is removed when the project is cleaned: 32 | dist.dir=dist 33 | dist.jar=${dist.dir}/TawfekhEditor.jar 34 | dist.javadoc.dir=${dist.dir}/javadoc 35 | dist.jlink.dir=${dist.dir}/jlink 36 | dist.jlink.output=${dist.jlink.dir}/TawfekhEditor 37 | endorsed.classpath= 38 | excludes= 39 | includes=** 40 | jar.archive.disabled=${jnlp.enabled} 41 | jar.compress=false 42 | jar.index=${jnlp.enabled} 43 | javac.classpath=\ 44 | ${libs.absolutelayout.classpath} 45 | # Space-separated list of extra javac options 46 | javac.compilerargs= 47 | javac.deprecation=false 48 | javac.external.vm=true 49 | javac.modulepath= 50 | javac.processormodulepath= 51 | javac.processorpath=\ 52 | ${javac.classpath} 53 | javac.source=18 54 | javac.target=18 55 | javac.test.classpath=\ 56 | ${javac.classpath}:\ 57 | ${build.classes.dir} 58 | javac.test.modulepath=\ 59 | ${javac.modulepath} 60 | javac.test.processorpath=\ 61 | ${javac.test.classpath} 62 | javadoc.additionalparam= 63 | javadoc.author=false 64 | javadoc.encoding=${source.encoding} 65 | javadoc.html5=false 66 | javadoc.noindex=false 67 | javadoc.nonavbar=false 68 | javadoc.notree=false 69 | javadoc.private=false 70 | javadoc.splitindex=true 71 | javadoc.use=true 72 | javadoc.version=false 73 | javadoc.windowtitle= 74 | # The jlink additional root modules to resolve 75 | jlink.additionalmodules= 76 | # The jlink additional command line parameters 77 | jlink.additionalparam= 78 | jlink.launcher=true 79 | jlink.launcher.name=TawfekhEditor 80 | jnlp.codebase.type=no.codebase 81 | jnlp.descriptor=application 82 | jnlp.enabled=false 83 | jnlp.mixed.code=default 84 | jnlp.offline-allowed=false 85 | jnlp.signed=false 86 | jnlp.signing= 87 | jnlp.signing.alias= 88 | jnlp.signing.keystore= 89 | main.class=Tawfekh_editor.Tawfekh_editor 90 | # Optional override of default Application-Library-Allowable-Codebase attribute identifying the locations where your signed RIA is expected to be found. 91 | manifest.custom.application.library.allowable.codebase= 92 | # Optional override of default Caller-Allowable-Codebase attribute identifying the domains from which JavaScript code can make calls to your RIA without security prompts. 93 | manifest.custom.caller.allowable.codebase= 94 | # Optional override of default Codebase manifest attribute, use to prevent RIAs from being repurposed 95 | manifest.custom.codebase= 96 | # Optional override of default Permissions manifest attribute (supported values: sandbox, all-permissions) 97 | manifest.custom.permissions= 98 | manifest.file=manifest.mf 99 | meta.inf.dir=${src.dir}/META-INF 100 | mkdist.disabled=false 101 | platform.active=default_platform 102 | run.classpath=\ 103 | ${javac.classpath}:\ 104 | ${build.classes.dir} 105 | # Space-separated list of JVM arguments used when running the project. 106 | # You may also define separate properties like run-sys-prop.name=value instead of -Dname=value. 107 | # To set system properties for unit tests define test-sys-prop.name=value: 108 | run.jvmargs= 109 | run.modulepath=\ 110 | ${javac.modulepath} 111 | run.test.classpath=\ 112 | ${javac.test.classpath}:\ 113 | ${build.test.classes.dir} 114 | run.test.modulepath=\ 115 | ${javac.test.modulepath} 116 | source.encoding=UTF-8 117 | src.dir=src 118 | test.src.dir=test 119 | -------------------------------------------------------------------------------- /src/Tawfekh_editor/Tawfekh_editor.java: -------------------------------------------------------------------------------- 1 | package Tawfekh_editor; 2 | 3 | import java.awt.Color; 4 | import java.awt.HeadlessException; 5 | import java.awt.Toolkit; 6 | import java.awt.event.ActionEvent; 7 | import java.awt.event.ActionListener; 8 | import java.io.BufferedReader; 9 | import java.io.File; 10 | import java.io.FileReader; 11 | import java.io.FileWriter; 12 | import java.io.IOException; 13 | import javax.swing.JFileChooser; 14 | import javax.swing.event.DocumentEvent; 15 | import javax.swing.event.DocumentListener; 16 | import javax.swing.text.Element; 17 | 18 | /** 19 | * @author MSGB 20 | */ 21 | public class Tawfekh_editor extends javax.swing.JFrame implements ActionListener { 22 | 23 | public Tawfekh_editor() { 24 | 25 | initComponents(); 26 | setIconImage(); 27 | tableListener(); 28 | 29 | } 30 | 31 | /** 32 | * Don't Remove 33 | */ 34 | @SuppressWarnings("unchecked") 35 | // //GEN-BEGIN:initComponents 36 | private void initComponents() { 37 | 38 | panelGlobale = new javax.swing.JPanel(); 39 | panelAccueil = new javax.swing.JPanel(); 40 | btnNouveau = new javax.swing.JButton(); 41 | btnParametre = new javax.swing.JButton(); 42 | btnQuitter = new javax.swing.JButton(); 43 | lblTitre = new javax.swing.JLabel(); 44 | panelEditeur = new javax.swing.JPanel(); 45 | panelColorChoose = new javax.swing.JPanel(); 46 | btnColorBlack = new javax.swing.JButton(); 47 | btnColorWhite = new javax.swing.JButton(); 48 | btnColorRed = new javax.swing.JButton(); 49 | btnColorYellow = new javax.swing.JButton(); 50 | btnAdd = new javax.swing.JButton(); 51 | btnOpen = new javax.swing.JButton(); 52 | btnSave = new javax.swing.JButton(); 53 | btnSaveAs = new javax.swing.JButton(); 54 | btnColor = new javax.swing.JButton(); 55 | btnExit = new javax.swing.JButton(); 56 | btnCloseFile = new javax.swing.JButton(); 57 | jScrollPane1 = new javax.swing.JScrollPane(); 58 | jTextArea1 = new javax.swing.JTextArea(); 59 | jScrollPane2 = new javax.swing.JScrollPane(); 60 | jTextArea2 = new javax.swing.JTextArea(); 61 | panelFichiers = new javax.swing.JPanel(); 62 | btnFichierOuvert1 = new javax.swing.JButton(); 63 | btnFichierOuvert2 = new javax.swing.JButton(); 64 | btnFichierOuvert3 = new javax.swing.JButton(); 65 | lblSaveMessage = new javax.swing.JLabel(); 66 | panelParametre = new javax.swing.JPanel(); 67 | btnParamSave = new javax.swing.JButton(); 68 | btnParamRetour = new javax.swing.JButton(); 69 | txtChangeTitre = new javax.swing.JTextField(); 70 | lblParamTitre = new javax.swing.JLabel(); 71 | lblParamTheme = new javax.swing.JLabel(); 72 | btnThemeClassique = new javax.swing.JButton(); 73 | btnThemeBlack = new javax.swing.JButton(); 74 | cbPolice = new javax.swing.JComboBox<>(); 75 | lblParamPolice = new javax.swing.JLabel(); 76 | btnUploadBg = new javax.swing.JButton(); 77 | lblParamUpBG = new javax.swing.JLabel(); 78 | lblSignature = new javax.swing.JLabel(); 79 | btnThemePink = new javax.swing.JButton(); 80 | imgBackground = new javax.swing.JLabel(); 81 | 82 | setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); 83 | setTitle("Tawfekh Editor 1.0"); 84 | setBounds(new java.awt.Rectangle(0, 0, 0, 0)); 85 | setMinimumSize(new java.awt.Dimension(960, 678)); 86 | setResizable(false); 87 | getContentPane().setLayout(null); 88 | 89 | panelGlobale.setLayout(null); 90 | 91 | panelAccueil.setOpaque(false); 92 | panelAccueil.setLayout(null); 93 | 94 | btnNouveau.setBackground(new java.awt.Color(138, 92, 1)); 95 | btnNouveau.setFont(new java.awt.Font("Calisto MT", 2, 40)); // NOI18N 96 | btnNouveau.setForeground(new java.awt.Color(255, 255, 255)); 97 | btnNouveau.setText("Nouveau Chef d'oeuvre"); 98 | btnNouveau.setFocusPainted(false); 99 | btnNouveau.addActionListener(new java.awt.event.ActionListener() { 100 | public void actionPerformed(java.awt.event.ActionEvent evt) { 101 | btnNouveauActionPerformed(evt); 102 | } 103 | }); 104 | panelAccueil.add(btnNouveau); 105 | btnNouveau.setBounds(260, 211, 408, 53); 106 | 107 | btnParametre.setBackground(new java.awt.Color(153, 102, 0)); 108 | btnParametre.setFont(new java.awt.Font("Calisto MT", 2, 40)); // NOI18N 109 | btnParametre.setForeground(new java.awt.Color(255, 255, 255)); 110 | btnParametre.setText("Paramétres"); 111 | btnParametre.setFocusPainted(false); 112 | btnParametre.addActionListener(new java.awt.event.ActionListener() { 113 | public void actionPerformed(java.awt.event.ActionEvent evt) { 114 | btnParametreActionPerformed(evt); 115 | } 116 | }); 117 | panelAccueil.add(btnParametre); 118 | btnParametre.setBounds(260, 301, 218, 53); 119 | 120 | btnQuitter.setBackground(new java.awt.Color(153, 102, 0)); 121 | btnQuitter.setFont(new java.awt.Font("Calisto MT", 2, 40)); // NOI18N 122 | btnQuitter.setForeground(new java.awt.Color(255, 255, 255)); 123 | btnQuitter.setText("Quitter"); 124 | btnQuitter.setFocusPainted(false); 125 | btnQuitter.addActionListener(new java.awt.event.ActionListener() { 126 | public void actionPerformed(java.awt.event.ActionEvent evt) { 127 | btnQuitterActionPerformed(evt); 128 | } 129 | }); 130 | panelAccueil.add(btnQuitter); 131 | btnQuitter.setBounds(504, 301, 164, 53); 132 | 133 | lblTitre.setFont(new java.awt.Font("Calisto MT", 2, 78)); // NOI18N 134 | lblTitre.setForeground(new java.awt.Color(153, 51, 0)); 135 | lblTitre.setHorizontalAlignment(javax.swing.SwingConstants.CENTER); 136 | lblTitre.setText("Tawfekh Mémorial"); 137 | lblTitre.setToolTipText(""); 138 | lblTitre.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); 139 | panelAccueil.add(lblTitre); 140 | lblTitre.setBounds(6, 0, 934, 100); 141 | 142 | panelGlobale.add(panelAccueil); 143 | panelAccueil.setBounds(10, 110, 940, 460); 144 | 145 | panelEditeur.setOpaque(false); 146 | panelEditeur.setLayout(null); 147 | 148 | panelColorChoose.setBackground(new java.awt.Color(255, 255, 255)); 149 | panelColorChoose.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED)); 150 | 151 | btnColorBlack.setBackground(new java.awt.Color(0, 0, 0)); 152 | btnColorBlack.setBorder(null); 153 | btnColorBlack.addActionListener(new java.awt.event.ActionListener() { 154 | public void actionPerformed(java.awt.event.ActionEvent evt) { 155 | btnColorBlackActionPerformed(evt); 156 | } 157 | }); 158 | 159 | btnColorWhite.setBorder(null); 160 | btnColorWhite.addActionListener(new java.awt.event.ActionListener() { 161 | public void actionPerformed(java.awt.event.ActionEvent evt) { 162 | btnColorWhiteActionPerformed(evt); 163 | } 164 | }); 165 | 166 | btnColorRed.setBackground(new java.awt.Color(255, 0, 0)); 167 | btnColorRed.setBorder(null); 168 | btnColorRed.addActionListener(new java.awt.event.ActionListener() { 169 | public void actionPerformed(java.awt.event.ActionEvent evt) { 170 | btnColorRedActionPerformed(evt); 171 | } 172 | }); 173 | 174 | btnColorYellow.setBackground(new java.awt.Color(255, 204, 0)); 175 | btnColorYellow.setBorder(null); 176 | btnColorYellow.addActionListener(new java.awt.event.ActionListener() { 177 | public void actionPerformed(java.awt.event.ActionEvent evt) { 178 | btnColorYellowActionPerformed(evt); 179 | } 180 | }); 181 | 182 | javax.swing.GroupLayout panelColorChooseLayout = new javax.swing.GroupLayout(panelColorChoose); 183 | panelColorChoose.setLayout(panelColorChooseLayout); 184 | panelColorChooseLayout.setHorizontalGroup( 185 | panelColorChooseLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 186 | .addGroup(panelColorChooseLayout.createSequentialGroup() 187 | .addContainerGap() 188 | .addComponent(btnColorBlack, javax.swing.GroupLayout.PREFERRED_SIZE, 24, javax.swing.GroupLayout.PREFERRED_SIZE) 189 | .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) 190 | .addComponent(btnColorWhite, javax.swing.GroupLayout.PREFERRED_SIZE, 24, javax.swing.GroupLayout.PREFERRED_SIZE) 191 | .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) 192 | .addComponent(btnColorRed, javax.swing.GroupLayout.PREFERRED_SIZE, 24, javax.swing.GroupLayout.PREFERRED_SIZE) 193 | .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) 194 | .addComponent(btnColorYellow, javax.swing.GroupLayout.PREFERRED_SIZE, 24, javax.swing.GroupLayout.PREFERRED_SIZE) 195 | .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) 196 | ); 197 | panelColorChooseLayout.setVerticalGroup( 198 | panelColorChooseLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 199 | .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, panelColorChooseLayout.createSequentialGroup() 200 | .addContainerGap() 201 | .addGroup(panelColorChooseLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) 202 | .addComponent(btnColorWhite, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) 203 | .addComponent(btnColorBlack, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) 204 | .addComponent(btnColorRed, javax.swing.GroupLayout.DEFAULT_SIZE, 24, Short.MAX_VALUE) 205 | .addComponent(btnColorYellow, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 24, Short.MAX_VALUE)) 206 | .addContainerGap()) 207 | ); 208 | 209 | panelEditeur.add(panelColorChoose); 210 | panelColorChoose.setBounds(115, 40, 130, 40); 211 | panelColorChoose.setVisible(false); 212 | 213 | btnAdd.setBackground(new java.awt.Color(153, 102, 0)); 214 | btnAdd.setIcon(new javax.swing.ImageIcon(getClass().getResource("/img/documents.png"))); // NOI18N 215 | btnAdd.addActionListener(new java.awt.event.ActionListener() { 216 | public void actionPerformed(java.awt.event.ActionEvent evt) { 217 | btnAddActionPerformed(evt); 218 | } 219 | }); 220 | panelEditeur.add(btnAdd); 221 | btnAdd.setBounds(6, 4, 45, 45); 222 | 223 | btnOpen.setBackground(new java.awt.Color(153, 102, 0)); 224 | btnOpen.setIcon(new javax.swing.ImageIcon(getClass().getResource("/img/folder(2).png"))); // NOI18N 225 | btnOpen.addActionListener(new java.awt.event.ActionListener() { 226 | public void actionPerformed(java.awt.event.ActionEvent evt) { 227 | btnOpenActionPerformed(evt); 228 | } 229 | }); 230 | panelEditeur.add(btnOpen); 231 | btnOpen.setBounds(56, 4, 45, 45); 232 | 233 | btnSave.setBackground(new java.awt.Color(153, 102, 0)); 234 | btnSave.setIcon(new javax.swing.ImageIcon(getClass().getResource("/img/diskette.png"))); // NOI18N 235 | btnSave.addActionListener(new java.awt.event.ActionListener() { 236 | public void actionPerformed(java.awt.event.ActionEvent evt) { 237 | btnSaveActionPerformed(evt); 238 | } 239 | }); 240 | panelEditeur.add(btnSave); 241 | btnSave.setBounds(106, 4, 45, 45); 242 | 243 | btnSaveAs.setBackground(new java.awt.Color(153, 102, 0)); 244 | btnSaveAs.setIcon(new javax.swing.ImageIcon(getClass().getResource("/img/save-file.png"))); // NOI18N 245 | btnSaveAs.setEnabled(false); 246 | btnSaveAs.addActionListener(new java.awt.event.ActionListener() { 247 | public void actionPerformed(java.awt.event.ActionEvent evt) { 248 | btnSaveAsActionPerformed(evt); 249 | } 250 | }); 251 | panelEditeur.add(btnSaveAs); 252 | btnSaveAs.setBounds(256, 4, 45, 45); 253 | btnSaveAs.setVisible(false); 254 | 255 | btnColor.setBackground(new java.awt.Color(153, 102, 0)); 256 | btnColor.setIcon(new javax.swing.ImageIcon(getClass().getResource("/img/colour.png"))); // NOI18N 257 | btnColor.addActionListener(new java.awt.event.ActionListener() { 258 | public void actionPerformed(java.awt.event.ActionEvent evt) { 259 | btnColorActionPerformed(evt); 260 | } 261 | }); 262 | panelEditeur.add(btnColor); 263 | btnColor.setBounds(156, 4, 45, 45); 264 | 265 | btnExit.setBackground(new java.awt.Color(153, 102, 0)); 266 | btnExit.setIcon(new javax.swing.ImageIcon(getClass().getResource("/img/exit.png"))); // NOI18N 267 | btnExit.addActionListener(new java.awt.event.ActionListener() { 268 | public void actionPerformed(java.awt.event.ActionEvent evt) { 269 | btnExitActionPerformed(evt); 270 | } 271 | }); 272 | panelEditeur.add(btnExit); 273 | btnExit.setBounds(206, 4, 45, 45); 274 | 275 | btnCloseFile.setBackground(new java.awt.Color(153, 102, 0)); 276 | btnCloseFile.setIcon(new javax.swing.ImageIcon(getClass().getResource("/img/close.png"))); // NOI18N 277 | btnCloseFile.setEnabled(false); 278 | btnCloseFile.addActionListener(new java.awt.event.ActionListener() { 279 | public void actionPerformed(java.awt.event.ActionEvent evt) { 280 | btnCloseFileActionPerformed(evt); 281 | } 282 | }); 283 | panelEditeur.add(btnCloseFile); 284 | btnCloseFile.setBounds(306, 4, 45, 45); 285 | btnCloseFile.setVisible(false); 286 | 287 | jScrollPane1.setColumnHeaderView(null); 288 | jScrollPane1.setOpaque(false); 289 | jScrollPane1.setRowHeaderView(null); 290 | jScrollPane1.getViewport().setOpaque(false); 291 | jScrollPane1.setBorder(null); 292 | jScrollPane1.setViewportBorder(null); 293 | 294 | jTextArea1.setColumns(20); 295 | jTextArea1.setFont(new java.awt.Font("Calisto MT", 2, 24)); // NOI18N 296 | jTextArea1.setRows(5); 297 | jTextArea1.setSelectionColor(new java.awt.Color(153, 51, 0)); 298 | jScrollPane1.setViewportView(jTextArea1); 299 | jTextArea1.setBackground(new Color(255,255,255,60)); 300 | 301 | panelEditeur.add(jScrollPane1); 302 | jScrollPane1.setBounds(149, 54, 830, 589); 303 | 304 | jScrollPane2.setBackground(new java.awt.Color(255, 255, 255)); 305 | jScrollPane2.setOpaque(false); 306 | 307 | jTextArea2.setEditable(false); 308 | jTextArea2.setBackground(new java.awt.Color(255, 255, 255)); 309 | jTextArea2.setColumns(1); 310 | jTextArea2.setFont(new java.awt.Font("Calisto MT", 2, 24)); // NOI18N 311 | jTextArea2.setRows(5); 312 | jTextArea2.setText("1"); 313 | jScrollPane2.setViewportView(jTextArea2); 314 | jTextArea2.setBackground(new Color(255,255,255,60)); 315 | jScrollPane1.setRowHeaderView(jTextArea2); 316 | 317 | jScrollPane2.getViewport().setOpaque(false); 318 | jScrollPane2.setBorder(null); 319 | jScrollPane2.setViewportBorder(null); 320 | 321 | panelEditeur.add(jScrollPane2); 322 | jScrollPane2.setBounds(150, 54, 40, 589); 323 | 324 | panelFichiers.setOpaque(false); 325 | panelFichiers.setPreferredSize(new java.awt.Dimension(37, 100)); 326 | panelFichiers.setLayout(null); 327 | 328 | btnFichierOuvert1.setBackground(new java.awt.Color(153, 102, 0)); 329 | btnFichierOuvert1.setFont(new java.awt.Font("Calisto MT", 2, 24)); // NOI18N 330 | btnFichierOuvert1.setForeground(new java.awt.Color(255, 255, 255)); 331 | btnFichierOuvert1.setText("New-file"); 332 | btnFichierOuvert1.addActionListener(new java.awt.event.ActionListener() { 333 | public void actionPerformed(java.awt.event.ActionEvent evt) { 334 | btnFichierOuvert1ActionPerformed(evt); 335 | } 336 | }); 337 | panelFichiers.add(btnFichierOuvert1); 338 | btnFichierOuvert1.setBounds(0, 6, 140, 32); 339 | 340 | btnFichierOuvert2.setBackground(new java.awt.Color(153, 102, 0)); 341 | btnFichierOuvert2.setFont(new java.awt.Font("Calisto MT", 2, 24)); // NOI18N 342 | btnFichierOuvert2.setForeground(new java.awt.Color(255, 255, 255)); 343 | btnFichierOuvert2.setText("New-file"); 344 | btnFichierOuvert2.addActionListener(new java.awt.event.ActionListener() { 345 | public void actionPerformed(java.awt.event.ActionEvent evt) { 346 | btnFichierOuvert2ActionPerformed(evt); 347 | } 348 | }); 349 | panelFichiers.add(btnFichierOuvert2); 350 | btnFichierOuvert2.setBounds(0, 50, 140, 32); 351 | btnFichierOuvert2.setVisible(false); 352 | 353 | btnFichierOuvert3.setBackground(new java.awt.Color(153, 102, 0)); 354 | btnFichierOuvert3.setFont(new java.awt.Font("Calisto MT", 2, 24)); // NOI18N 355 | btnFichierOuvert3.setForeground(new java.awt.Color(255, 255, 255)); 356 | btnFichierOuvert3.setText("New-file"); 357 | btnFichierOuvert3.addActionListener(new java.awt.event.ActionListener() { 358 | public void actionPerformed(java.awt.event.ActionEvent evt) { 359 | btnFichierOuvert3ActionPerformed(evt); 360 | } 361 | }); 362 | panelFichiers.add(btnFichierOuvert3); 363 | btnFichierOuvert3.setBounds(0, 94, 140, 32); 364 | btnFichierOuvert3.setVisible(false); 365 | 366 | panelEditeur.add(panelFichiers); 367 | panelFichiers.setBounds(6, 54, 140, 589); 368 | 369 | lblSaveMessage.setFont(new java.awt.Font("Calisto MT", 2, 36)); // NOI18N 370 | lblSaveMessage.setForeground(new java.awt.Color(153, 51, 0)); 371 | lblSaveMessage.setText("Enregistré !"); 372 | lblSaveMessage.addFocusListener(new java.awt.event.FocusAdapter() { 373 | public void focusLost(java.awt.event.FocusEvent evt) { 374 | lblSaveMessageFocusLost(evt); 375 | } 376 | }); 377 | panelEditeur.add(lblSaveMessage); 378 | lblSaveMessage.setBounds(430, 0, 260, 50); 379 | lblSaveMessage.setVisible(false); 380 | 381 | panelGlobale.add(panelEditeur); 382 | panelEditeur.setBounds(0, 0, 960, 660); 383 | panelEditeur.setVisible(false); 384 | 385 | panelParametre.setOpaque(false); 386 | panelParametre.setLayout(null); 387 | 388 | btnParamSave.setBackground(new java.awt.Color(153, 102, 0)); 389 | btnParamSave.setFont(new java.awt.Font("Calisto MT", 2, 40)); // NOI18N 390 | btnParamSave.setForeground(new java.awt.Color(255, 255, 255)); 391 | btnParamSave.setText("Enregistrer"); 392 | btnParamSave.setFocusPainted(false); 393 | btnParamSave.addActionListener(new java.awt.event.ActionListener() { 394 | public void actionPerformed(java.awt.event.ActionEvent evt) { 395 | btnParamSaveActionPerformed(evt); 396 | } 397 | }); 398 | panelParametre.add(btnParamSave); 399 | btnParamSave.setBounds(27, 317, 230, 53); 400 | 401 | btnParamRetour.setBackground(new java.awt.Color(153, 102, 0)); 402 | btnParamRetour.setFont(new java.awt.Font("Calisto MT", 2, 40)); // NOI18N 403 | btnParamRetour.setForeground(new java.awt.Color(255, 255, 255)); 404 | btnParamRetour.setText("Retour"); 405 | btnParamRetour.setFocusPainted(false); 406 | btnParamRetour.addActionListener(new java.awt.event.ActionListener() { 407 | public void actionPerformed(java.awt.event.ActionEvent evt) { 408 | btnParamRetourActionPerformed(evt); 409 | } 410 | }); 411 | panelParametre.add(btnParamRetour); 412 | btnParamRetour.setBounds(281, 317, 195, 53); 413 | 414 | txtChangeTitre.setFont(new java.awt.Font("Calisto MT", 2, 24)); // NOI18N 415 | panelParametre.add(txtChangeTitre); 416 | txtChangeTitre.setBounds(197, 41, 280, 39); 417 | txtChangeTitre.setText(lblTitre.getText()); 418 | 419 | lblParamTitre.setFont(new java.awt.Font("Calisto MT", 2, 36)); // NOI18N 420 | lblParamTitre.setText("Titre :"); 421 | panelParametre.add(lblParamTitre); 422 | lblParamTitre.setBounds(30, 34, 150, 42); 423 | 424 | lblParamTheme.setFont(new java.awt.Font("Calisto MT", 2, 36)); // NOI18N 425 | lblParamTheme.setText("Thème : "); 426 | panelParametre.add(lblParamTheme); 427 | lblParamTheme.setBounds(30, 100, 150, 47); 428 | 429 | btnThemeClassique.setBackground(new java.awt.Color(212, 161, 8)); 430 | btnThemeClassique.setFont(new java.awt.Font("Calisto MT", 2, 20)); // NOI18N 431 | btnThemeClassique.setForeground(new java.awt.Color(255, 255, 255)); 432 | btnThemeClassique.setText("Classique"); 433 | btnThemeClassique.addActionListener(new java.awt.event.ActionListener() { 434 | public void actionPerformed(java.awt.event.ActionEvent evt) { 435 | btnThemeClassiqueActionPerformed(evt); 436 | } 437 | }); 438 | panelParametre.add(btnThemeClassique); 439 | btnThemeClassique.setBounds(197, 107, 115, 39); 440 | 441 | btnThemeBlack.setBackground(new java.awt.Color(0, 0, 0)); 442 | btnThemeBlack.setFont(new java.awt.Font("Calisto MT", 2, 20)); // NOI18N 443 | btnThemeBlack.setForeground(new java.awt.Color(255, 255, 255)); 444 | btnThemeBlack.setText("Black"); 445 | btnThemeBlack.addActionListener(new java.awt.event.ActionListener() { 446 | public void actionPerformed(java.awt.event.ActionEvent evt) { 447 | btnThemeBlackActionPerformed(evt); 448 | } 449 | }); 450 | panelParametre.add(btnThemeBlack); 451 | btnThemeBlack.setBounds(317, 107, 78, 39); 452 | 453 | cbPolice.setBackground(new java.awt.Color(168, 111, 0)); 454 | cbPolice.setFont(new java.awt.Font("Calisto MT", 2, 24)); // NOI18N 455 | cbPolice.setForeground(new java.awt.Color(255, 255, 255)); 456 | cbPolice.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { "Calisto MT", "Garamond", "Times New Roman" })); 457 | panelParametre.add(cbPolice); 458 | cbPolice.setBounds(197, 173, 280, 41); 459 | 460 | lblParamPolice.setFont(new java.awt.Font("Calisto MT", 2, 36)); // NOI18N 461 | lblParamPolice.setText("Police :"); 462 | panelParametre.add(lblParamPolice); 463 | lblParamPolice.setBounds(30, 170, 150, 40); 464 | 465 | btnUploadBg.setBackground(new java.awt.Color(168, 111, 0)); 466 | btnUploadBg.setFont(new java.awt.Font("Calisto MT", 2, 24)); // NOI18N 467 | btnUploadBg.setForeground(new java.awt.Color(255, 255, 255)); 468 | btnUploadBg.setText("Upload BackGround"); 469 | btnUploadBg.addActionListener(new java.awt.event.ActionListener() { 470 | public void actionPerformed(java.awt.event.ActionEvent evt) { 471 | btnUploadBgActionPerformed(evt); 472 | } 473 | }); 474 | panelParametre.add(btnUploadBg); 475 | btnUploadBg.setBounds(197, 248, 280, 39); 476 | 477 | lblParamUpBG.setFont(new java.awt.Font("Calisto MT", 2, 24)); // NOI18N 478 | lblParamUpBG.setForeground(new java.awt.Color(153, 51, 0)); 479 | lblParamUpBG.setText("Use 960 x 678 px"); 480 | panelParametre.add(lblParamUpBG); 481 | lblParamUpBG.setBounds(30, 250, 190, 28); 482 | 483 | lblSignature.setFont(new java.awt.Font("Freestyle Script", 3, 36)); // NOI18N 484 | lblSignature.setForeground(new java.awt.Color(116, 77, 0)); 485 | lblSignature.setText("By MSGB"); 486 | panelParametre.add(lblSignature); 487 | lblSignature.setBounds(580, 470, 120, 40); 488 | 489 | btnThemePink.setBackground(new java.awt.Color(255, 51, 102)); 490 | btnThemePink.setFont(new java.awt.Font("Calisto MT", 2, 20)); // NOI18N 491 | btnThemePink.setForeground(new java.awt.Color(255, 255, 255)); 492 | btnThemePink.setText("Pink"); 493 | btnThemePink.addActionListener(new java.awt.event.ActionListener() { 494 | public void actionPerformed(java.awt.event.ActionEvent evt) { 495 | btnThemePinkActionPerformed(evt); 496 | } 497 | }); 498 | panelParametre.add(btnThemePink); 499 | btnThemePink.setBounds(399, 107, 78, 39); 500 | 501 | panelGlobale.add(panelParametre); 502 | panelParametre.setBounds(220, 110, 730, 560); 503 | panelParametre.setVisible(false); 504 | 505 | imgBackground.setIcon(new javax.swing.ImageIcon(getClass().getResource("/img/img.jpg"))); // NOI18N 506 | imgBackground.setOpaque(true); 507 | panelGlobale.add(imgBackground); 508 | imgBackground.setBounds(0, 0, 960, 678); 509 | 510 | getContentPane().add(panelGlobale); 511 | panelGlobale.setBounds(0, 0, 960, 678); 512 | 513 | pack(); 514 | setLocationRelativeTo(null); 515 | }// //GEN-END:initComponents 516 | 517 | public final void setIconImage() { 518 | // Add Frame icon. 519 | setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource("/img/logo.jpg"))); 520 | } 521 | 522 | public final void tableListener() { 523 | // Check Table to set Line No 524 | jTextArea1.getCaretListeners(); 525 | jTextArea1.getDocument().addDocumentListener(new DocumentListener() { 526 | public String getText() { 527 | int caretPosition = jTextArea1.getDocument().getLength(); 528 | Element root = jTextArea1.getDocument().getDefaultRootElement(); 529 | String text = "1" + System.getProperty("line.separator"); 530 | for (int i = 2; i < root.getElementIndex(caretPosition) + 2; i++) { 531 | text += i + System.getProperty("line.separator"); 532 | } 533 | return text; 534 | } 535 | 536 | @Override 537 | public void changedUpdate(DocumentEvent de) { 538 | jTextArea2.setText(getText()); 539 | } 540 | 541 | @Override 542 | public void insertUpdate(DocumentEvent de) { 543 | jTextArea2.setText(getText()); 544 | } 545 | 546 | @Override 547 | public void removeUpdate(DocumentEvent de) { 548 | jTextArea2.setText(getText()); 549 | } 550 | 551 | }); 552 | } 553 | 554 | private void btnQuitterActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnQuitterActionPerformed 555 | // Exit. 556 | System.exit(0); 557 | 558 | }//GEN-LAST:event_btnQuitterActionPerformed 559 | 560 | private void btnParametreActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnParametreActionPerformed 561 | // OpenSettings. 562 | panelAccueil.setVisible(false); 563 | panelParametre.setVisible(true); 564 | 565 | }//GEN-LAST:event_btnParametreActionPerformed 566 | 567 | private void btnNouveauActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnNouveauActionPerformed 568 | // Open Editor. 569 | panelAccueil.setVisible(false); 570 | panelEditeur.setVisible(true); 571 | 572 | jTextArea1.requestFocus(); 573 | openText(fileName); 574 | 575 | }//GEN-LAST:event_btnNouveauActionPerformed 576 | 577 | private void btnFichierOuvert1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnFichierOuvert1ActionPerformed 578 | // Open File position 1. 579 | 580 | // Check Active text. 581 | switch (textActif) { 582 | case "1" -> 583 | text1 = jTextArea1.getText(); 584 | case "2" -> 585 | text2 = jTextArea1.getText(); 586 | case "3" -> 587 | text3 = jTextArea1.getText(); 588 | } 589 | 590 | // Set Text 1 active. 591 | textActif = "1"; 592 | jTextArea1.setText(text1); 593 | 594 | // Change Button Status color 595 | btnFichierOuvert1.setBackground(new java.awt.Color(153, 102, 0)); //Active 596 | btnFichierOuvert2.setBackground(new java.awt.Color(79, 53, 0)); 597 | btnFichierOuvert3.setBackground(new java.awt.Color(79, 53, 0)); 598 | 599 | }//GEN-LAST:event_btnFichierOuvert1ActionPerformed 600 | 601 | private void btnColorBlackActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnColorBlackActionPerformed 602 | // Set Text Color to BLACK 603 | jTextArea1.setForeground(Color.BLACK); 604 | panelColorChoose.setVisible(false); 605 | 606 | }//GEN-LAST:event_btnColorBlackActionPerformed 607 | 608 | private void btnColorWhiteActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnColorWhiteActionPerformed 609 | // Set Text Color to WHITE 610 | jTextArea1.setForeground(Color.WHITE); 611 | panelColorChoose.setVisible(false); 612 | 613 | }//GEN-LAST:event_btnColorWhiteActionPerformed 614 | 615 | private void btnColorRedActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnColorRedActionPerformed 616 | //Set Text Color to RED 617 | jTextArea1.setForeground(Color.RED); 618 | panelColorChoose.setVisible(false); 619 | 620 | }//GEN-LAST:event_btnColorRedActionPerformed 621 | 622 | private void btnColorYellowActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnColorYellowActionPerformed 623 | // Set Text Color to YELLOW 624 | jTextArea1.setForeground(Color.YELLOW); 625 | panelColorChoose.setVisible(false); 626 | 627 | }//GEN-LAST:event_btnColorYellowActionPerformed 628 | 629 | private void btnParamSaveActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnParamSaveActionPerformed 630 | // Save Settings 631 | try { 632 | // Add font italic 633 | int x = 0; 634 | String choix = cbPolice.getSelectedItem().toString(); 635 | if ("Garamond".equals(choix) || "Calisto MT".equals(choix)) { 636 | x = 2; 637 | } 638 | lblTitre.setText(txtChangeTitre.getText()); 639 | changeTextFont(choix, x); 640 | 641 | } catch (Exception e) { 642 | System.out.println("Erreur Change Police" + e); 643 | } 644 | }//GEN-LAST:event_btnParamSaveActionPerformed 645 | 646 | public void changeTextFont(String choix, int x) { 647 | 648 | // Accueil Panel. 649 | lblTitre.setFont(new java.awt.Font(choix, x, 78)); 650 | btnNouveau.setFont(new java.awt.Font(choix, x, 40)); 651 | btnParametre.setFont(new java.awt.Font(choix, x, 40)); 652 | btnQuitter.setFont(new java.awt.Font(choix, x, 40)); 653 | 654 | // Settings Panel. 655 | txtChangeTitre.setFont(new java.awt.Font(choix, x, 24)); 656 | lblParamTitre.setFont(new java.awt.Font(choix, x, 36)); 657 | lblParamTheme.setFont(new java.awt.Font(choix, x, 36)); 658 | lblParamPolice.setFont(new java.awt.Font(choix, x, 36)); 659 | lblParamUpBG.setFont(new java.awt.Font(choix, x, 23)); 660 | btnUploadBg.setFont(new java.awt.Font(choix, x, 24)); 661 | btnThemeClassique.setFont(new java.awt.Font(choix, x, 20)); 662 | btnThemeBlack.setFont(new java.awt.Font(choix, x, 20)); 663 | btnThemePink.setFont(new java.awt.Font(choix, x, 20)); 664 | btnParamSave.setFont(new java.awt.Font(choix, x, 40)); 665 | btnParamRetour.setFont(new java.awt.Font(choix, x, 40)); 666 | cbPolice.setFont(new java.awt.Font(choix, x, 24)); 667 | 668 | // Editor Panel. 669 | jTextArea1.setFont(new java.awt.Font(choix, x, 24)); 670 | jTextArea2.setFont(new java.awt.Font(choix, x, 24)); 671 | btnFichierOuvert1.setFont(new java.awt.Font(choix, x, 24)); 672 | btnFichierOuvert2.setFont(new java.awt.Font(choix, x, 24)); 673 | btnFichierOuvert3.setFont(new java.awt.Font(choix, x, 24)); 674 | 675 | repaint(); 676 | 677 | } 678 | 679 | private void btnParamRetourActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnParamRetourActionPerformed 680 | // Leave Settings. 681 | panelParametre.setVisible(false); 682 | panelAccueil.setVisible(true); 683 | 684 | }//GEN-LAST:event_btnParamRetourActionPerformed 685 | 686 | private void btnThemeClassiqueActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnThemeClassiqueActionPerformed 687 | // Set "Classique" theme. 688 | imgBackground.setIcon(new javax.swing.ImageIcon(getClass().getResource("/img/img.jpg"))); 689 | jTextArea1.setForeground(Color.BLACK); 690 | lblSignature.setForeground(Color.BLACK); 691 | 692 | Color colorMenu = new Color(0, 0, 0); 693 | Color colorTitre = new Color(153, 51, 0); 694 | Color colorBtnEditeur = new Color(153, 102, 0); 695 | 696 | changeTitreEtMenuColor(colorTitre, colorMenu); 697 | changeBtnColor(colorBtnEditeur); 698 | 699 | repaint(); 700 | 701 | }//GEN-LAST:event_btnThemeClassiqueActionPerformed 702 | 703 | private void btnThemeBlackActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnThemeBlackActionPerformed 704 | // Set "Black" theme. 705 | imgBackground.setIcon(new javax.swing.ImageIcon(getClass().getResource("/img/bg2.jpg"))); 706 | 707 | Color colorTitre = new Color(255, 255, 255); 708 | Color colorMenu = new Color(255, 255, 255); 709 | changeTitreEtMenuColor(colorTitre, colorMenu); 710 | 711 | Color color = new Color(204, 204, 255); 712 | changeBtnColor(color); 713 | 714 | repaint(); 715 | 716 | }//GEN-LAST:event_btnThemeBlackActionPerformed 717 | 718 | public void changeTitreEtMenuColor(Color colorTitre, Color colorMenu) { 719 | // Change Title and Settings Text Color. 720 | lblTitre.setForeground(colorTitre); 721 | jTextArea1.setForeground(colorMenu); 722 | lblParamTitre.setForeground(colorMenu); 723 | lblParamTheme.setForeground(colorMenu); 724 | lblParamPolice.setForeground(colorMenu); 725 | lblSignature.setForeground(colorMenu); 726 | lblParamUpBG.setForeground(colorMenu); 727 | 728 | } 729 | 730 | public void changeBtnColor(Color color) { 731 | // Change Editor Btns Color. 732 | btnAdd.setBackground(color); 733 | btnOpen.setBackground(color); 734 | btnSave.setBackground(color); 735 | btnSaveAs.setBackground(color); 736 | btnColor.setBackground(color); 737 | btnExit.setBackground(color); 738 | 739 | } 740 | 741 | private void btnUploadBgActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnUploadBgActionPerformed 742 | // Upload new background. 743 | try { 744 | JFileChooser chooser = new JFileChooser(); 745 | chooser.showOpenDialog(null); 746 | File f = chooser.getSelectedFile(); 747 | String filename = f.getAbsolutePath(); 748 | repaint(); 749 | 750 | imgBackground.setIcon(new javax.swing.ImageIcon(filename)); 751 | } catch (HeadlessException e) { 752 | System.out.println("Aucun répertoire n'a été choisi : " + e); 753 | } 754 | 755 | }//GEN-LAST:event_btnUploadBgActionPerformed 756 | 757 | private void btnAddActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnAddActionPerformed 758 | //Add New File. 759 | countNewFiles++; 760 | switch (countNewFiles) { 761 | case 1 -> { 762 | // Save text 1 state. 763 | text1 = jTextArea1.getText(); 764 | 765 | // Show new file 2. 766 | btnFichierOuvert2.setVisible(true); 767 | btnFichierOuvert2.setText("New-file " + countNewFiles); 768 | 769 | // Set file 2 Active. 770 | textActif = "2"; 771 | jTextArea1.setText(text2); 772 | 773 | // Change Button Status color 774 | btnFichierOuvert1.setBackground(new java.awt.Color(79, 53, 0)); 775 | btnFichierOuvert2.setBackground(new java.awt.Color(153, 102, 0)); //Active 776 | btnFichierOuvert3.setBackground(new java.awt.Color(79, 53, 0)); 777 | 778 | } 779 | case 2 -> { 780 | // Save text 2 state. 781 | text2 = jTextArea1.getText(); 782 | 783 | // Show new file 3. 784 | btnFichierOuvert3.setVisible(true); 785 | btnFichierOuvert3.setText("New-file " + countNewFiles); 786 | 787 | // Set file 3 Active. 788 | textActif = "3"; 789 | jTextArea1.setText(text3); 790 | 791 | // Change Button Status color 792 | btnFichierOuvert1.setBackground(new java.awt.Color(79, 53, 0)); 793 | btnFichierOuvert2.setBackground(new java.awt.Color(79, 53, 0)); 794 | btnFichierOuvert3.setBackground(new java.awt.Color(153, 102, 0)); //Active 795 | } 796 | } 797 | 798 | }//GEN-LAST:event_btnAddActionPerformed 799 | 800 | private void btnOpenActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnOpenActionPerformed 801 | //Open File. 802 | try { 803 | JFileChooser chooser = new JFileChooser(); 804 | chooser.showOpenDialog(null); 805 | File f = chooser.getSelectedFile(); 806 | if (f != null) { 807 | fileName = f.getAbsolutePath(); 808 | justfilename = f.getName(); 809 | } 810 | 811 | openText(fileName); 812 | btnFichierOuvert1.setText(justfilename); 813 | 814 | repaint(); 815 | } catch (HeadlessException e) { 816 | System.out.println("Aucun répertoire n'a été choisi : " + e); 817 | } 818 | 819 | }//GEN-LAST:event_btnOpenActionPerformed 820 | 821 | private void btnSaveActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnSaveActionPerformed 822 | //Save File. 823 | String text = jTextArea1.getText(); 824 | updateText(fileName, text); 825 | 826 | lblSaveMessage.setVisible(true); 827 | lblSaveMessage.requestFocus(); 828 | }//GEN-LAST:event_btnSaveActionPerformed 829 | 830 | private void btnColorActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnColorActionPerformed 831 | // Change Text Color. 832 | if (colorPaneState == true) { 833 | panelColorChoose.setVisible(true); 834 | colorPaneState = false; 835 | } else { 836 | panelColorChoose.setVisible(false); 837 | colorPaneState = true; 838 | } 839 | 840 | }//GEN-LAST:event_btnColorActionPerformed 841 | 842 | private void btnExitActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnExitActionPerformed 843 | // Leave Editor. 844 | panelEditeur.setVisible(false); 845 | panelAccueil.setVisible(true); 846 | 847 | }//GEN-LAST:event_btnExitActionPerformed 848 | 849 | private void btnFichierOuvert2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnFichierOuvert2ActionPerformed 850 | // Open File position 2. 851 | 852 | // Check Active text. 853 | switch (textActif) { 854 | case "1" -> 855 | text1 = jTextArea1.getText(); 856 | case "2" -> 857 | text2 = jTextArea1.getText(); 858 | case "3" -> 859 | text3 = jTextArea1.getText(); 860 | } 861 | 862 | // Set file 2 Active. 863 | textActif = "2"; 864 | jTextArea1.setText(text2); 865 | 866 | // Change Button Status color. 867 | btnFichierOuvert1.setBackground(new java.awt.Color(79, 53, 0)); 868 | btnFichierOuvert2.setBackground(new java.awt.Color(153, 102, 0)); //Active 869 | btnFichierOuvert3.setBackground(new java.awt.Color(79, 53, 0)); 870 | 871 | }//GEN-LAST:event_btnFichierOuvert2ActionPerformed 872 | 873 | private void btnFichierOuvert3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnFichierOuvert3ActionPerformed 874 | // Open File position 3. 875 | 876 | // Check Active text. 877 | switch (textActif) { 878 | case "1" -> 879 | text1 = jTextArea1.getText(); 880 | case "2" -> 881 | text2 = jTextArea1.getText(); 882 | case "3" -> 883 | text3 = jTextArea1.getText(); 884 | } 885 | 886 | // Set file 2 Active. 887 | textActif = "3"; 888 | jTextArea1.setText(text3); 889 | 890 | // Change Button Status color. 891 | btnFichierOuvert1.setBackground(new java.awt.Color(79, 53, 0)); 892 | btnFichierOuvert2.setBackground(new java.awt.Color(79, 53, 0)); 893 | btnFichierOuvert3.setBackground(new java.awt.Color(153, 102, 0)); //Active 894 | 895 | }//GEN-LAST:event_btnFichierOuvert3ActionPerformed 896 | 897 | private void btnCloseFileActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnCloseFileActionPerformed 898 | // Close File. 899 | }//GEN-LAST:event_btnCloseFileActionPerformed 900 | 901 | private void btnThemePinkActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnThemePinkActionPerformed 902 | // Set "Pink" theme. 903 | imgBackground.setIcon(new javax.swing.ImageIcon(getClass().getResource("/img/bg4.png"))); 904 | 905 | // Add Color variables. 906 | Color colorTitre = new Color(255, 255, 255); 907 | Color colorMenu = new Color(255, 255, 255); 908 | Color color = new Color(204, 204, 255); 909 | 910 | changeTitreEtMenuColor(colorTitre, colorMenu); 911 | changeBtnColor(color); 912 | 913 | repaint(); 914 | 915 | }//GEN-LAST:event_btnThemePinkActionPerformed 916 | 917 | private void lblSaveMessageFocusLost(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_lblSaveMessageFocusLost 918 | // Save Status Text. 919 | lblSaveMessage.setVisible(false); 920 | }//GEN-LAST:event_lblSaveMessageFocusLost 921 | 922 | private void btnSaveAsActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnSaveAsActionPerformed 923 | // Save File as. 924 | }//GEN-LAST:event_btnSaveAsActionPerformed 925 | 926 | public void openText(String fileName) { 927 | // Read Text File. 928 | try { 929 | FileReader fr = new FileReader(fileName); 930 | try ( BufferedReader br = new BufferedReader(fr)) { 931 | String line; 932 | jTextArea1.setText(""); 933 | text1 = ""; 934 | while ((line = br.readLine()) != null) { 935 | text1 = text1 + line + "\n"; 936 | repaint(); 937 | } 938 | jTextArea1.setText(text1); 939 | } 940 | } catch (IOException e) { 941 | System.out.println("Error" + e); 942 | } 943 | } 944 | 945 | public void updateText(String fileName, String text) { 946 | // Update Text File. 947 | try { 948 | // Check Active file. 949 | if ("temp".equals(fileName)) { 950 | String init = fileName; 951 | switch (textActif) { 952 | case "2" -> 953 | fileName = init + "1"; 954 | case "3" -> 955 | fileName = init + "2"; 956 | } 957 | } 958 | 959 | // Write in file. 960 | FileWriter fw = new FileWriter(fileName); 961 | fw.write(text); 962 | fw.close(); 963 | 964 | } catch (IOException e) { 965 | System.out.println("Error" + e); 966 | } 967 | } 968 | 969 | public static void main(String args[]) { 970 | // Look and Feel "Nimbus". 971 | try { 972 | for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) { 973 | if ("Nimbus".equals(info.getName())) { 974 | javax.swing.UIManager.setLookAndFeel(info.getClassName()); 975 | break; 976 | } 977 | } 978 | } catch (Exception e) { 979 | System.out.println("Error" + e); 980 | } 981 | 982 | /* Create and display the form */ 983 | java.awt.EventQueue.invokeLater(() -> { 984 | new Tawfekh_editor().setVisible(true); 985 | }); 986 | } 987 | 988 | int countNewFiles = 0; 989 | boolean colorPaneState = true; 990 | String fileName = "temp", justfilename = "temp"; 991 | String text1, text2, text3; 992 | String textActif = "1"; 993 | 994 | // Variables declaration - do not modify//GEN-BEGIN:variables 995 | private javax.swing.JButton btnAdd; 996 | private javax.swing.JButton btnCloseFile; 997 | private javax.swing.JButton btnColor; 998 | private javax.swing.JButton btnColorBlack; 999 | private javax.swing.JButton btnColorRed; 1000 | private javax.swing.JButton btnColorWhite; 1001 | private javax.swing.JButton btnColorYellow; 1002 | private javax.swing.JButton btnExit; 1003 | private javax.swing.JButton btnFichierOuvert1; 1004 | private javax.swing.JButton btnFichierOuvert2; 1005 | private javax.swing.JButton btnFichierOuvert3; 1006 | private javax.swing.JButton btnNouveau; 1007 | private javax.swing.JButton btnOpen; 1008 | private javax.swing.JButton btnParamRetour; 1009 | private javax.swing.JButton btnParamSave; 1010 | private javax.swing.JButton btnParametre; 1011 | private javax.swing.JButton btnQuitter; 1012 | private javax.swing.JButton btnSave; 1013 | private javax.swing.JButton btnSaveAs; 1014 | private javax.swing.JButton btnThemeBlack; 1015 | private javax.swing.JButton btnThemeClassique; 1016 | private javax.swing.JButton btnThemePink; 1017 | private javax.swing.JButton btnUploadBg; 1018 | private javax.swing.JComboBox cbPolice; 1019 | private javax.swing.JLabel imgBackground; 1020 | private javax.swing.JScrollPane jScrollPane1; 1021 | private javax.swing.JScrollPane jScrollPane2; 1022 | private javax.swing.JTextArea jTextArea1; 1023 | private javax.swing.JTextArea jTextArea2; 1024 | private javax.swing.JLabel lblParamPolice; 1025 | private javax.swing.JLabel lblParamTheme; 1026 | private javax.swing.JLabel lblParamTitre; 1027 | private javax.swing.JLabel lblParamUpBG; 1028 | private javax.swing.JLabel lblSaveMessage; 1029 | private javax.swing.JLabel lblSignature; 1030 | private javax.swing.JLabel lblTitre; 1031 | private javax.swing.JPanel panelAccueil; 1032 | private javax.swing.JPanel panelColorChoose; 1033 | private javax.swing.JPanel panelEditeur; 1034 | private javax.swing.JPanel panelFichiers; 1035 | private javax.swing.JPanel panelGlobale; 1036 | private javax.swing.JPanel panelParametre; 1037 | private javax.swing.JTextField txtChangeTitre; 1038 | // End of variables declaration//GEN-END:variables 1039 | 1040 | @Override 1041 | public void actionPerformed(ActionEvent e) { 1042 | throw new UnsupportedOperationException("Not supported yet."); 1043 | } 1044 | } 1045 | -------------------------------------------------------------------------------- /src/Tawfekh_editor/Tawfekh_editor.form: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | 142 | 143 | 144 | 145 | 146 | 147 | 148 | 149 | 150 | 151 | 152 | 153 | 154 | 155 | 156 | 157 | 158 | 159 | 160 | 161 | 162 | 163 | 164 | 165 | 166 | 167 | 168 | 169 | 170 | 171 | 172 | 173 | 174 | 175 | 176 | 177 | 178 | 179 | 180 | 181 | 182 | 183 | 184 | 185 | 186 | 187 | 188 | 189 | 190 | 191 | 192 | 193 | 194 | 195 | 196 | 197 | 198 | 199 | 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 209 | 210 | 211 | 212 | 213 | 214 | 215 | 216 | 217 | 218 | 219 | 220 | 221 | 222 | 223 | 224 | 225 | 226 | 227 | 228 | 229 | 230 | 231 | 232 | 233 | 234 | 235 | 236 | 237 | 238 | 239 | 240 | 241 | 242 | 243 | 244 | 245 | 246 | 247 | 248 | 249 | 250 | 251 | 252 | 253 | 254 | 255 | 256 | 257 | 258 | 259 | 260 | 261 | 262 | 263 | 264 | 265 | 266 | 267 | 268 | 269 | 270 | 271 | 272 | 273 | 274 | 275 | 276 | 277 | 278 | 279 | 280 | 281 | 282 | 283 | 284 | 285 | 286 | 287 | 288 | 289 | 290 | 291 | 292 | 293 | 294 | 295 | 296 | 297 | 298 | 299 | 300 | 301 | 302 | 303 | 304 | 305 | 306 | 307 | 308 | 309 | 310 | 311 | 312 | 313 | 314 | 315 | 316 | 317 | 318 | 319 | 320 | 321 | 322 | 323 | 324 | 325 | 326 | 327 | 328 | 329 | 330 | 331 | 332 | 333 | 334 | 335 | 336 | 337 | 338 | 339 | 340 | 341 | 342 | 343 | 344 | 345 | 346 | 347 | 348 | 349 | 350 | 351 | 352 | 353 | 354 | 355 | 356 | 357 | 358 | 359 | 360 | 361 | 362 | 363 | 364 | 365 | 366 | 367 | 368 | 369 | 370 | 371 | 372 | 373 | 374 | 375 | 376 | 377 | 378 | 379 | 380 | 381 | 382 | 383 | 384 | 385 | 386 | 387 | 388 | 389 | 390 | 391 | 392 | 393 | 394 | 395 | 396 | 397 | 398 | 399 | 400 | 401 | 402 | 403 | 404 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 419 | 420 | 421 | 422 | 423 | 424 | 425 | 426 | 427 | 428 | 429 | 430 | 431 | 432 | 433 | 434 | 435 | 436 | 437 | 438 | 439 | 440 | 441 | 442 | 443 | 444 | 445 | 446 | 447 | 448 | 449 | 450 | 451 | 452 | 453 | 454 | 455 | 456 | 457 | 458 | 459 | 460 | 461 | 462 | 463 | 464 | 465 | 466 | 467 | 468 | 469 | 470 | 471 | 472 | 473 | 474 | 475 | 476 | 477 | 478 | 479 | 480 | 481 | 482 | 483 | 484 | 485 | 486 | 487 | 488 | 489 | 490 | 491 | 492 | 493 | 494 | 495 | 496 | 497 | 498 | 499 | 500 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 509 | 510 | 511 | 512 | 513 | 514 | 515 | 516 | 517 | 518 | 519 | 520 | 521 | 522 | 523 | 524 | 525 | 526 | 527 | 528 | 529 | 530 | 531 | 532 | 533 | 534 | 535 | 536 | 537 | 538 | 539 | 540 | 541 | 542 | 543 | 544 | 545 | 546 | 547 | 548 | 549 | 550 | 551 | 552 | 553 | 554 | 555 | 556 | 557 | 558 | 559 | 560 | 561 | 562 | 563 | 564 | 565 | 566 | 567 | 568 | 569 | 570 | 571 | 572 | 573 | 574 | 575 | 576 | 577 | 578 | 579 | 580 | 581 | 582 | 583 | 584 | 585 | 586 | 587 | 588 | 589 | 590 | 591 | 592 | 593 | 594 | 595 | 596 | 597 | 598 | 599 | 600 | 601 | 602 | 603 | 604 | 605 | 606 | 607 | 608 | 609 | 610 | 611 | 612 | 613 | 614 | 615 | 616 | 617 | 618 | 619 | 620 | 621 | 622 | 623 | 624 | 625 | 626 | 627 | 628 | 629 | 630 | 631 | 632 | 633 | 634 | 635 | 636 | 637 | 638 | 639 | 640 | 641 | 642 | 643 | 644 | 645 | 646 | 647 | 648 | 649 | 650 | 651 | 652 | 653 | 654 | 655 | 656 | 657 | 658 | 659 | 660 | 661 | 662 | 663 | 664 | 665 | 666 | 667 | 668 | 669 | 670 | 671 | 672 | 673 | 674 | 675 | 676 | 677 | 678 | 679 | 680 | 681 | 682 | 683 | 684 | 685 | 686 | 687 | 688 | 689 | 690 | 691 | 692 | 693 | 694 | 695 | 696 | 697 | 698 | 699 | 700 | 701 | 702 | 703 | 704 | 705 | 706 | 707 | 708 | 709 | 710 | 711 | 712 | 713 | 714 | 715 | 716 | 717 | 718 | 719 | 720 | 721 | 722 | 723 | 724 | 725 | 726 | 727 | 728 | 729 | 730 | 731 | 732 | 733 | 734 | 735 | 736 | 737 | 738 | 739 | 740 | 741 | 742 | 743 | 744 | 745 | 746 | 747 | 748 | 749 | 750 | 751 | 752 | 753 | 754 | 755 | 756 | 757 | 758 | 759 | 760 | 761 | 762 | 763 | 764 | 765 | 766 | 767 | 768 | 769 | 770 | 771 | 772 | 773 | 774 | 775 | 776 | 777 | 778 | 779 | 780 | 781 | 782 | 783 | 784 | 785 | 786 | 787 | 788 | 789 | 790 | 791 | 792 | 793 | 794 | 795 | 796 | 797 | 798 | 799 | 800 | 801 | 802 | 803 | 804 | 805 | 806 | 807 | 808 | 809 | 810 | 811 | 812 | 813 | 814 | 815 | 816 | 817 | 818 | 819 | 820 | 821 | 822 | 823 | 824 | 825 | 826 | 827 | 828 | 829 | 830 | 831 | 832 | 833 | 834 | 835 | 836 | 837 | 838 | 839 | 840 | 841 | 842 | 843 | 844 | 845 | 846 | 847 | 848 | 849 | 850 | 851 | 852 | 853 | 854 | 855 | 856 | 857 | 858 | 859 | 860 | 861 | 862 | 863 | 864 | 865 | 866 | 867 | 868 | 869 | 870 | 871 | 872 | 873 | 874 | 875 | 876 | 877 | 878 | 879 | 880 | 881 | -------------------------------------------------------------------------------- /nbproject/build-impl.xml: -------------------------------------------------------------------------------- 1 | 2 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | 142 | 143 | 144 | 145 | 146 | 147 | 148 | 149 | 150 | 151 | 152 | 153 | 154 | 155 | 156 | 157 | 158 | 159 | 160 | 161 | 162 | 163 | 164 | 165 | 166 | 167 | 168 | 169 | 170 | 171 | 172 | 173 | 174 | 175 | 176 | 177 | 178 | 179 | 180 | 181 | 182 | 183 | 184 | 185 | 186 | 187 | 188 | 189 | 190 | 191 | 192 | 193 | 194 | 195 | 196 | 197 | 198 | 199 | 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 209 | 210 | 211 | 212 | 213 | 214 | 215 | 216 | 217 | 218 | 219 | 220 | 221 | 222 | 223 | 224 | 225 | 226 | 227 | 228 | 229 | 230 | 231 | 232 | 233 | 234 | 235 | 236 | 237 | 238 | 239 | 240 | 241 | 242 | 243 | 244 | 245 | 246 | 247 | 248 | 249 | 250 | 251 | 252 | 253 | 254 | 255 | 256 | 257 | 258 | 259 | 260 | 261 | 262 | 263 | 264 | 265 | 266 | 267 | 268 | 269 | 270 | 271 | 272 | 273 | 274 | 275 | 276 | 277 | 278 | 279 | 280 | 281 | 282 | 283 | 284 | 285 | 286 | 287 | 288 | 289 | 290 | 291 | Must set src.dir 292 | Must set test.src.dir 293 | Must set build.dir 294 | Must set dist.dir 295 | Must set build.classes.dir 296 | Must set dist.javadoc.dir 297 | Must set build.test.classes.dir 298 | Must set build.test.results.dir 299 | Must set build.classes.excludes 300 | Must set dist.jar 301 | 302 | 303 | 304 | 305 | 306 | 307 | 308 | 309 | 310 | 311 | 312 | 313 | 314 | 315 | 316 | 317 | 318 | 319 | 320 | 321 | 322 | 323 | 324 | 325 | 326 | 327 | 328 | 329 | 330 | 331 | 332 | 333 | 334 | 335 | 336 | 337 | 338 | 339 | 340 | 341 | 342 | 343 | 344 | 345 | 346 | 347 | 348 | 349 | 350 | 351 | 352 | 353 | 354 | 355 | 356 | 357 | 358 | 359 | 360 | 361 | 362 | 363 | 364 | 365 | 366 | 367 | 368 | 369 | 370 | 371 | 372 | 373 | 374 | 375 | 376 | 377 | 378 | 379 | 380 | 381 | 382 | 383 | 384 | 385 | 386 | 387 | 388 | 389 | 390 | 391 | 392 | 393 | 394 | 395 | 396 | 397 | 398 | 399 | 400 | 401 | 402 | 403 | 404 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 419 | 420 | 421 | 422 | 423 | 424 | 425 | 426 | 427 | 428 | 429 | 430 | 431 | 432 | 433 | 434 | 435 | 436 | 437 | 438 | 439 | 440 | 441 | 442 | 443 | 444 | 445 | 446 | 447 | 448 | 449 | 450 | 451 | 452 | 453 | 454 | 455 | 456 | 457 | 458 | 459 | 460 | 461 | 462 | 463 | 464 | 465 | 466 | 467 | 468 | 469 | 470 | 471 | 472 | Must set javac.includes 473 | 474 | 475 | 476 | 477 | 478 | 479 | 480 | 481 | 482 | 483 | 484 | 485 | 486 | 487 | 488 | 489 | 490 | 491 | 492 | 493 | 494 | 495 | 496 | 497 | 498 | 499 | 500 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 509 | 510 | 511 | 512 | 513 | 514 | 515 | 516 | 517 | 518 | 519 | 520 | 521 | 522 | 523 | 524 | 525 | 526 | 527 | 528 | 529 | 530 | 531 | 532 | 533 | 534 | 535 | 536 | 537 | 538 | 539 | 540 | 541 | 542 | 543 | 544 | 545 | 546 | 547 | 548 | 549 | 550 | 551 | 552 | 553 | 554 | 555 | 556 | 557 | 558 | 559 | 560 | 561 | 562 | 563 | 564 | 565 | 566 | 567 | 568 | 569 | 570 | 571 | 572 | 573 | 574 | 575 | 576 | 577 | 578 | 579 | 580 | 581 | 582 | 583 | 584 | 585 | 586 | 587 | 588 | 589 | 590 | 591 | 592 | 593 | 594 | 595 | 596 | 597 | 598 | 599 | 600 | 601 | 602 | 603 | 604 | 605 | 606 | 607 | 608 | 609 | 610 | 611 | 612 | 613 | 614 | 615 | 616 | 617 | 618 | 619 | 620 | 621 | 622 | 623 | 624 | 625 | 626 | 627 | 628 | 629 | 630 | 631 | 632 | 633 | 634 | 635 | 636 | 637 | 638 | 639 | 640 | 641 | 642 | 643 | 644 | 645 | No tests executed. 646 | 647 | 648 | 649 | 650 | 651 | 652 | 653 | 654 | 655 | 656 | 657 | 658 | 659 | 660 | 661 | 662 | 663 | 664 | 665 | 666 | 667 | 668 | 669 | 670 | 671 | 672 | 673 | 674 | 675 | 676 | 677 | 678 | 679 | 680 | 681 | 682 | 683 | 684 | 685 | 686 | 687 | 688 | 689 | 690 | 691 | 692 | 693 | 694 | 695 | 696 | 697 | 698 | 699 | 700 | 701 | 702 | 703 | 704 | 705 | 706 | 707 | 708 | 709 | 710 | 711 | 712 | 713 | 714 | 715 | 716 | 717 | 718 | 719 | 720 | 721 | 722 | 723 | 724 | 725 | 726 | 727 | 728 | 729 | 730 | 731 | 732 | 733 | 734 | 735 | 736 | 737 | 738 | 739 | 740 | 741 | 742 | 743 | 744 | 745 | 746 | 747 | 748 | 749 | 750 | 751 | 752 | 753 | 754 | 755 | 756 | 757 | 758 | 759 | 760 | 761 | 762 | 763 | 764 | 765 | 766 | 767 | 768 | 769 | 770 | 771 | 772 | 773 | 774 | 775 | 776 | 777 | 778 | 779 | 780 | 781 | 782 | 783 | 784 | 785 | 786 | 787 | 788 | 791 | 792 | 793 | 794 | 795 | 796 | 797 | 798 | 799 | 800 | 801 | 802 | 803 | 804 | 805 | 806 | 807 | 808 | 809 | 810 | 811 | 812 | 813 | 814 | 815 | 816 | 817 | 818 | 819 | 820 | 821 | 822 | 823 | 824 | 825 | 826 | 827 | 828 | 829 | 830 | 831 | 832 | 833 | Must set JVM to use for profiling in profiler.info.jvm 834 | Must set profiler agent JVM arguments in profiler.info.jvmargs.agent 835 | 836 | 839 | 840 | 841 | 842 | 843 | 844 | 845 | 846 | 847 | 848 | 849 | 850 | 851 | 852 | 853 | 854 | 855 | 856 | 857 | 858 | 859 | 860 | 861 | 862 | 863 | 864 | 865 | 866 | 867 | 868 | 869 | 870 | 871 | 872 | 873 | 874 | 875 | 876 | 877 | 878 | 879 | 880 | 881 | 882 | 883 | 884 | 885 | 886 | 887 | 888 | 889 | 890 | 891 | 892 | 893 | 894 | 895 | 896 | 897 | 898 | 899 | 900 | 901 | 902 | 903 | 904 | 905 | 906 | 907 | 908 | 909 | 910 | 911 | 912 | 913 | 914 | 915 | 916 | 917 | 918 | 919 | 920 | 921 | 922 | 923 | 924 | 925 | 926 | 927 | 928 | 929 | 930 | 931 | 932 | 933 | 934 | 935 | 936 | 937 | 938 | 939 | 940 | 941 | 942 | 943 | 944 | 945 | 946 | 947 | 948 | 949 | 950 | 951 | 952 | 953 | 954 | 955 | 956 | 957 | 958 | 959 | 960 | 961 | 962 | 963 | 964 | 965 | 966 | 967 | 968 | 969 | 970 | 971 | 972 | 973 | 974 | 975 | 976 | 977 | 978 | 979 | 980 | 981 | 982 | 983 | 984 | 985 | 986 | 987 | 988 | 989 | 990 | 991 | 992 | 993 | 994 | 995 | 996 | 997 | 998 | 999 | 1000 | 1001 | 1002 | 1003 | 1004 | 1005 | 1006 | 1007 | 1008 | 1009 | 1010 | 1011 | 1012 | 1013 | 1014 | 1015 | 1016 | 1017 | 1018 | 1019 | 1020 | 1021 | 1022 | 1023 | 1024 | 1025 | 1026 | 1027 | 1028 | 1029 | 1030 | 1031 | 1032 | 1033 | 1034 | 1035 | 1036 | 1037 | 1038 | 1039 | 1040 | 1041 | 1042 | 1043 | 1044 | 1045 | 1046 | 1047 | 1048 | 1049 | 1050 | 1055 | 1056 | 1057 | 1058 | 1059 | 1060 | 1061 | 1062 | 1063 | 1064 | 1065 | 1066 | 1067 | 1068 | 1069 | 1070 | 1071 | 1072 | 1073 | 1074 | 1075 | 1076 | 1077 | 1078 | 1079 | 1080 | 1081 | 1082 | 1083 | 1084 | 1085 | 1086 | 1087 | 1088 | 1089 | 1090 | 1091 | 1092 | 1093 | 1094 | 1095 | 1096 | 1097 | 1098 | 1099 | 1100 | 1101 | 1102 | 1103 | 1104 | 1105 | 1106 | 1107 | 1108 | 1109 | 1110 | 1111 | 1112 | 1113 | 1114 | 1115 | 1116 | 1117 | Must select some files in the IDE or set javac.includes 1118 | 1119 | 1120 | 1121 | 1122 | 1123 | 1124 | 1125 | 1126 | 1131 | 1132 | 1133 | 1134 | 1135 | 1136 | 1137 | 1138 | 1139 | 1140 | 1141 | 1142 | 1143 | 1144 | 1145 | 1146 | 1147 | 1148 | 1149 | 1150 | 1151 | 1152 | 1153 | 1154 | 1155 | 1156 | 1157 | 1158 | 1159 | 1160 | 1161 | 1162 | 1163 | 1164 | 1165 | 1166 | 1167 | 1168 | 1169 | 1170 | 1171 | 1172 | 1173 | 1174 | 1175 | 1176 | 1177 | 1178 | 1179 | 1180 | 1181 | 1182 | 1183 | 1184 | 1185 | 1186 | 1187 | 1188 | 1189 | 1190 | 1191 | 1192 | 1193 | 1194 | 1195 | 1196 | 1197 | 1198 | 1199 | 1200 | To run this application from the command line without Ant, try: 1201 | 1202 | java -jar "${dist.jar.resolved}" 1203 | 1204 | 1205 | 1206 | 1207 | 1208 | 1209 | 1210 | 1211 | 1212 | 1213 | 1214 | 1215 | 1216 | 1217 | 1218 | 1219 | 1220 | 1221 | 1222 | 1223 | 1224 | 1225 | 1226 | 1227 | 1228 | 1229 | 1230 | 1231 | 1232 | 1233 | 1234 | 1235 | 1236 | 1237 | 1238 | 1239 | 1240 | 1241 | 1242 | 1243 | 1244 | 1245 | 1246 | 1247 | 1248 | 1249 | 1250 | 1251 | 1252 | 1253 | 1254 | 1255 | 1256 | 1257 | 1258 | 1259 | 1264 | 1265 | 1266 | 1267 | 1268 | 1269 | 1270 | 1271 | 1272 | 1273 | 1274 | 1275 | 1276 | 1277 | 1278 | 1279 | 1280 | 1281 | 1282 | 1283 | 1284 | 1285 | 1286 | 1287 | 1288 | 1289 | 1290 | 1291 | 1292 | 1293 | 1294 | 1295 | 1296 | 1297 | 1298 | 1299 | 1300 | 1301 | 1302 | 1303 | 1304 | 1305 | 1306 | 1307 | 1308 | 1309 | 1310 | 1311 | 1312 | 1313 | 1314 | 1315 | 1316 | 1317 | 1318 | 1319 | 1320 | 1321 | 1322 | 1323 | 1324 | 1329 | 1330 | 1331 | 1332 | 1333 | 1334 | 1335 | 1336 | 1337 | 1338 | 1339 | 1340 | Must select one file in the IDE or set run.class 1341 | 1342 | 1343 | 1344 | Must select one file in the IDE or set run.class 1345 | 1346 | 1347 | 1352 | 1353 | 1354 | 1355 | 1356 | 1357 | 1358 | 1359 | 1360 | 1361 | 1362 | 1363 | 1364 | 1365 | 1366 | 1367 | 1368 | 1369 | 1370 | 1371 | Must select one file in the IDE or set debug.class 1372 | 1373 | 1374 | 1375 | 1376 | Must select one file in the IDE or set debug.class 1377 | 1378 | 1379 | 1380 | 1381 | Must set fix.includes 1382 | 1383 | 1384 | 1385 | 1386 | 1387 | 1388 | 1393 | 1396 | 1397 | This target only works when run from inside the NetBeans IDE. 1398 | 1399 | 1400 | 1401 | 1402 | 1403 | 1404 | 1405 | 1406 | Must select one file in the IDE or set profile.class 1407 | This target only works when run from inside the NetBeans IDE. 1408 | 1409 | 1410 | 1411 | 1412 | 1413 | 1414 | 1415 | 1416 | This target only works when run from inside the NetBeans IDE. 1417 | 1418 | 1419 | 1420 | 1421 | 1422 | 1423 | 1424 | 1425 | 1426 | 1427 | 1428 | 1429 | This target only works when run from inside the NetBeans IDE. 1430 | 1431 | 1432 | 1433 | 1434 | 1435 | 1436 | 1437 | 1438 | 1439 | 1440 | 1441 | 1442 | 1443 | 1444 | 1445 | 1446 | 1447 | 1450 | 1451 | 1452 | 1453 | 1454 | 1455 | 1456 | 1457 | 1458 | 1459 | 1460 | 1461 | 1462 | 1463 | Must select one file in the IDE or set run.class 1464 | 1465 | 1466 | 1467 | 1468 | 1469 | Must select some files in the IDE or set test.includes 1470 | 1471 | 1472 | 1473 | 1474 | Must select one file in the IDE or set run.class 1475 | 1476 | 1477 | 1478 | 1479 | Must select one file in the IDE or set applet.url 1480 | 1481 | 1482 | 1483 | 1488 | 1489 | 1490 | 1491 | 1492 | 1493 | 1494 | 1495 | 1496 | 1497 | 1498 | 1499 | 1500 | 1501 | 1502 | 1503 | 1504 | 1505 | 1506 | 1507 | 1508 | 1509 | 1510 | 1511 | 1512 | 1513 | 1514 | 1515 | 1516 | 1517 | 1518 | 1519 | 1520 | 1521 | 1522 | 1523 | 1524 | 1525 | 1526 | 1527 | 1528 | 1529 | 1530 | 1531 | 1532 | 1533 | 1534 | 1539 | 1540 | 1541 | 1542 | 1543 | 1544 | 1545 | 1546 | 1547 | 1548 | 1549 | 1550 | 1551 | 1552 | 1553 | 1554 | 1555 | 1556 | 1557 | 1558 | 1559 | 1560 | 1561 | 1562 | 1563 | 1564 | 1565 | 1566 | 1567 | 1568 | 1569 | 1570 | 1571 | 1572 | 1573 | 1574 | 1575 | 1576 | 1577 | 1578 | 1579 | 1580 | 1581 | 1582 | 1583 | 1584 | 1585 | 1586 | 1587 | 1588 | 1589 | 1590 | 1591 | 1592 | 1593 | 1594 | 1595 | 1596 | 1597 | 1598 | 1599 | 1600 | 1601 | 1602 | 1603 | 1604 | 1605 | 1606 | 1607 | 1608 | 1609 | 1610 | 1611 | 1612 | 1613 | 1614 | 1615 | 1616 | 1617 | Must select some files in the IDE or set javac.includes 1618 | 1619 | 1620 | 1621 | 1622 | 1623 | 1624 | 1625 | 1626 | 1627 | 1628 | 1629 | 1630 | 1631 | 1632 | 1633 | 1638 | 1639 | 1640 | 1641 | 1642 | 1643 | 1644 | 1645 | Some tests failed; see details above. 1646 | 1647 | 1648 | 1649 | 1650 | 1651 | 1652 | 1653 | 1654 | Must select some files in the IDE or set test.includes 1655 | 1656 | 1657 | 1658 | Some tests failed; see details above. 1659 | 1660 | 1661 | 1662 | Must select some files in the IDE or set test.class 1663 | Must select some method in the IDE or set test.method 1664 | 1665 | 1666 | 1667 | Some tests failed; see details above. 1668 | 1669 | 1670 | 1675 | 1676 | Must select one file in the IDE or set test.class 1677 | 1678 | 1679 | 1680 | Must select one file in the IDE or set test.class 1681 | Must select some method in the IDE or set test.method 1682 | 1683 | 1684 | 1685 | 1686 | 1687 | 1688 | 1689 | 1690 | 1691 | 1692 | 1693 | 1694 | 1699 | 1700 | Must select one file in the IDE or set applet.url 1701 | 1702 | 1703 | 1704 | 1705 | 1706 | 1707 | 1712 | 1713 | Must select one file in the IDE or set applet.url 1714 | 1715 | 1716 | 1717 | 1718 | 1719 | 1720 | 1721 | 1726 | 1727 | 1728 | 1729 | 1730 | 1731 | 1732 | 1733 | 1734 | 1735 | 1736 | 1737 | 1738 | 1739 | 1740 | 1741 | 1742 | 1743 | 1744 | 1745 | 1746 | 1747 | 1748 | 1749 | 1750 | 1751 | 1752 | 1753 | 1754 | 1755 | 1756 | 1757 | 1758 | 1759 | 1760 | 1761 | 1762 | 1763 | 1764 | 1765 | 1766 | 1767 | 1768 | 1769 | 1770 | 1771 | 1772 | --------------------------------------------------------------------------------