Berty Ahern

Greenhorn
+ Follow
since Mar 03, 2005
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Berty Ahern

OMG it worked. I just put in the word static and it works!
Thanks again man!
19 years ago
Thats true!
19 years ago
createAndShowGUI() is static. So does that make my main method static also?
How might i run the loadFile methed outside the main thread?
19 years ago
Eh whats static?
it's non static. How should I change it to static?
19 years ago
Hey,
I wish to Load a file into an array on start up. I had the file loading into my array when the user clicked a button called Load, so I know that it works.
In an attempt to get this to work on startup I put the I/O loading code that was in the Load button into "private void loadFile(String filename)".
I then edited my main method to this:

I'm getting the following error when I compile:

loadFile("Books1.ser");
^
1 error
Please help,
Berty
19 years ago
Well I'm kinda getting the file like this:

The information would be in String type, would it be possible to get that into a byte array?
Cheers
19 years ago
Well I have the I/O stream set up and its working with text fields its just that i can't figure out how to stick it into an array. I'll do more researcch...
TTFN
19 years ago
There is no documentation in the help part of my JCreator. How do i put he jdk help docs into it please?
And also what does the SDK do? It takes up 500mbs on my computer but I dont even know what it is...
Cheers
Hi, I want to load a persons details into an array from a text file so that I can then put that info into textfields, edit it and then some how save it into the file again. Can anyone supply me with some sample code of how i should do this?
Thanks in advance,
Berty
19 years ago
I do have a folder called C:\j2sdk1.4.2_07
I removed the other two. I'll post my other query as a new thread I'll do some more research into it first so I know exactly what im trying to do with it.
Thanks
19 years ago
Oh and one more small thing,
How would I read a file called details into an array?
19 years ago
Hello there, I have a question about my java software and which things I actually need for programming:
I have installed a few different things:
Java 2 Runtime Environment,SE v1.4.2_07 = 137mb
Java 2 Runtime Environment,SE v1.4.2_03 = 136mb
J2SE 2 Runtime Environment 5.0 Update 1 = 117mb
Java 2 SDK, SE v1.4.2_07 = 428mb
The SDK is a very large file, but I can't even find it on my computer? How can I make use of it?
Also, can anyone tell me how to get the JDK help documentation into JCreators help because its not in my one.
Thanks for your help,
19 years ago
Ahh I see,
I was copying the code from an example which had the Saving class set up in a seperate file. I shoulda known
Thanks for the help!
19 years ago
Hi again, this is my last Q for today.
I wish to make an object for saving, called saving i supose but my code doesn't work for some reason. It says that it can't resolve the class saving. I can't figure it out, any ideas?Thanks
code:



Error Text:
--------------------Configuration: <Default>--------------------
C:\JAVA\TabDemo.java:129: cannot resolve symbol
symbol : class saving
location: class TabDemo
saving bookCurrent = new saving(titleTxt.getText(),descTxt.getText());
^
C:\JAVA\TabDemo.java:129: cannot resolve symbol
symbol : class saving
location: class TabDemo
saving bookCurrent = new saving(titleTxt.getText(),descTxt.getText());
^
2 errors

Process completed.


[ March 03, 2005: Message edited by: Berty Ahern ]
[ March 03, 2005: Message edited by: Berty Ahern ]
19 years ago