Questions tagged [notepad]

Notepad is a simple text editor for Microsoft Windows. Use this tag for issues relating to interfacing with Notepad and/or duplicating Notepad functionality.

Notepad is a simple text editor for Microsoft Windows. It has been included in all versions of Microsoft Windows since Windows 1.0 in 1985.

787 questions
1
vote
2 answers

Dynamic event of textbox

How do you make an event dynamically? Like for example, I'm making a notepad with tab support for practice, and for every new tab, a text box is made dynamically. How can I make an event (TextChanged for example) for these text boxes? Thanks.
Iceyoshi
  • 623
  • 3
  • 10
  • 14
1
vote
2 answers

on powershell how to save script as a text file in a shared folder aswell as print on screen and send email

I have a script on powershell that when it runs it send an email out with server status details and also prints the information on screen I am looking now to add to the script that aswell as sending the email and prints the information on screen it…
1
vote
0 answers

Notepad Tutorial Android - menu problems

I am working on the Notepad Tutorial on the Android dev site, part 1. I have done all the code as in the tutorial, also tried with the code form the downloaded solution. When i launch the app I don't see a button "Add note", and therefore I cannot…
kakka47
  • 3,479
  • 8
  • 44
  • 52
1
vote
1 answer

is this a bug in notepad? hex 31 0A

I was testing a program then I discovered if I have 55 or 63 1 and line feed hex (31) and hex (0A) notepad fails to open the file? it shows gibberish (see screenshot) This is what the hex editor look like: But if I open the file in notepad++ ,…
BobNoobGuy
  • 1,551
  • 2
  • 30
  • 62
1
vote
1 answer

Java - Swing Layout + AWT - How to draw a line in a JPanel that was positioned with layouts?

For the purpose of another program I need to draw a few lines on the screen which has a image built with incremental painting and layouts. Since the lines were very straight forward and just a few, I thought using the JPanel's painting space to do…
Tyler
  • 957
  • 11
  • 27
1
vote
1 answer

Java - Swing - Can't seem to get Incremental Painting to work (Runned through Executable Jar File)

I'm trying to build a periodic table of the elements program. I have a couple of classes, and a JSON file acting as a database. I am using an executable jar file for a couple of reasons, one of the biggest is because Applet security restrictions…
Tyler
  • 957
  • 11
  • 27
1
vote
0 answers

Java - Unmappable character for encoding Cp1252

I'm working on this extra project, and I just took a break for a couple of days. I come back and try to debug a problem that was occurring and this appears. The compiler reports 100 errors (three types - unmappable character for encoding Cp1252,…
Tyler
  • 957
  • 11
  • 27
1
vote
1 answer

How Make A Text File In Memory And Write Something On It And Open NotePad In Client And Open That File In It?

How can i Make A Text File In Memory(Ram -> Save NoWhere) And Write Something On It And Open NotePad on top of Client browser And Open That Text File In It And Let the user save it by him/her self? -> in code behind thanks in future advance best…
LostLord
  • 2,279
  • 10
  • 32
  • 32
1
vote
1 answer

java - javax.json - How to check if a value is a string

I have a database I made in Json. I have this parsed, and have the code iterating through a Json array, which contains several Json objects. Finally, I also am iterating through the values in the Json objects. My problem is that I need to check if…
Tyler
  • 957
  • 11
  • 27
1
vote
0 answers

Code that will allow me to Left mouse click, I can only use Notepad to write the code and java is installed

I'm trying to write a script in VBScript that executes a series of events and one of them includes a left mouse click and release. I know that I can't use VBScript in order to do the left mouse click and I can't install any software. I am only able…
user4743021
1
vote
3 answers

java 8 - javax.json - How to get a specific value from pre-made JSON

I have this sample JSON object { "Elements" : [ { "name" : "Hydrogen", "Symbol" : "H", "atomicNumber" : "1", "electronegativity" : "2.2", "group" : "Hydrogen", "ionCharge1" : "1+", "ionCharge2" : "1-", "molarMass"…
Tyler
  • 957
  • 11
  • 27
1
vote
3 answers

Python - Finding line in text file and adding it and the next two lines to a list

At the moment I have a block of code that allows me to find an exact line in a notepad file and the add it to GTINlist. However I also want to add the line below that, and the line below that as well. I do not however want to import the rest of the…
1
vote
1 answer

Change date from MM/DD/YYYY to mmddyyyy in Notepad/Notepad ++

I am a novice at coding and running scripts and was wondering the following; Context: I run scripts in one of my companies programs to create customer service tickets. Question: Is it possible to automatically update the date for a line of code in a…
Drew T
  • 11
  • 3
1
vote
0 answers

Foldable in-line regions / tags / comments

I would like to be able to fold/hide specific regions in the lines of my log files for example in a text-editor like Notepad++. For example: Thread@ClassName.MethodName:LineNo This is a log. What I want to do is,…
Vedat
  • 61
  • 1
  • 5
1
vote
2 answers

Issue with password protected notepad in Java

I'm having issues understanding why my code won't run. As it stands, Eclipse isn't showing me any errors, yet the code will not launch when I try to run it. The idea of my program is a password-protected notepad using JFrame. This is the code :…
PWier
  • 91
  • 6