I am Newbie to Java programming. I have written the following code to add checkbox to a frame, but it doesn't appear on frame. There's no error when compiling..so can anyone please check and let me know how to add checkbox in frame?
So, I'm trying to make a "save.dat" so that I can store my player's information in the game into that file, and then read it if they choose to continue. Right now, the file will create, and I can write to it easily, but I want to know how to get rid of "Special Characters" and how to create sections and write to them. I want it to look a little something like this:
You would need to read the file into some list or object which you then update with the relevant details. You then write out the updated records when necessary. You create sections just by writing keywords at particular points in the file. Not sure what you mean by how to get rid of "Special Characters".
You have not explained how you are writing the file so it is not possible to tell where those characters are coming from. In terms of serialization the sequence is:
1. Read all current objects from the file.
2. Create any new objects, and update the existing ones, as required by the program.
3. Write all updated objects to the new file.
4. End the program.
I have gone through the above mentioned article and it was good. But I'm confused using the tool.I have done the same as what you have said in the article, but when I run the tool it is always showing NullPointerException. Even I have tried with TestPage.jsp from example, but still it is showing the same NullpointException.I have posted the error below.
Thanks in advance,
INFO: Validating file /WEB-INF/TestPage.jsp
Exception in thread "main" java.lang.NullPointerException
Can anyone refer me an atricle or sample application on this issue.
Please kindly help me on this issue.
S Shanmuga Raja
What I have tried:
I have used JNA library. But it throwing error like:
Hide Copy Code
Exception in thread "main" java.lang.UnsatisfiedLinkError: Unable to load library 'Maths': JNA native support (win32-amd64/Maths.dll) not found in resource path (E:\Maths\Demo\bin;C:\Program Files\JAVA\jna-3.5.2.jar\jna-3.5.2.jar;E:\MathsDemo\x64\Debug;C:\Program Files\JAVA\jdk1.8.0_71\include\win32)
please am new in java programming and i have a problem on how to solve the problem below please can any one help me.
how to write a java program to display 3 on labal1 if textbox1 is not empty or display 0 if textbox1 is empty