Originally posted by Kavita Ghia:
Hello friends,
I am really keen to know in what way constructors are advantageous to use then the init() method.And if they are not advantageous then why do people use it.Anyone out there please
reply as can't think of its usefullness.Maybe somewhere i am
overlooking certain point.
Regards,
Kavita.
Originally posted by Peter Gragert:
I came across the same problem.
One (bad) workaround was: make the 'boundingbox' greater than
necessary: width=500 if it was 400 e.g. (same with height)
and check if it worked (was sufficient bigger)
Originally posted by Brain Tenner:
Is there a function to get the browser (by name)?
Thanks!
Originally posted by Kavita Ghia:
Hi,
I have two doubts in mind about constructors and init() method-
1)Since all th initialization is normally done in the init()
method then what is the advantage of having a parameterless
constructor? Normally I do no have any constructor in my applets.
Infact I was under the impression that u cannot have constructors
in the applet untill I saw an applet with the constructor.
There certain variable were declared in init() and others in
a constructor.Wonder Why?.
2)Since the applet works perfectly fine with the constructor I am convinced that one can have a constructor in the applet.This leads to another question which one is called first init() or
constructor.If init() is called first then when is the constructor called?Rather which is the place/rank of the constructor in the life cycle of an applet.
init()=>start()=>paint()=>stop()=>destroy()
Where is constructor?
Please....... clarify.
Thanx in advance.
Best Regards,
Kavita.
Originally posted by Ben Nichols:
I'm fairly certain that using a swing Jtable and its corresponding abstracts to build the GUI covers the MVC thing. I couldn't tell you why but I do recall having looked into it. What I don't understand is the phrase 'control scheme' and whether it applies to the MVC thing or whether it transcends java.
Originally posted by priyavardheesh:
Hi every body,
I just finished SCJP and am planning to prepare for developer exam, don't know any thing of what this exam contains. Please help me out giving the syllabus, links where i can get some material and mock exams. Thank you all in advance
regds
priya
Originally posted by romagol:
As part of the exam, there is a data conversion tool that reads the flat ASCII data file and creates a binary file for use by suncertify.db.Data class.
Does anyone know what this binary file should look like?
In my understanding it is still text file just with extra information ( feild names, record lengths, etc. )
thanks in advance for your help
Roman.
Originally posted by Ben Nichols:
The Length is in characters, which the Data.class stores as bytes. For the record number, you're on your own. There are comments in the Data.class file (under the find method) that suggest record number is the first field.
Originally posted by Ben Nichols:
The Data.class is designed to support any sort of database using text-only fields. My convert utility does not validate data, because the database does not have field types (i.e. char, int, string, date/time...). My requirements state that the convert utility should be easy to reuse for other projects. To me this means if you want to import a address book, or flat file ascii database of plane replacement parts, your convert utility should be able to handle it. Validating data is not possible unless the database supports field types, and the user is able to match imported fields to existing field types during the import process. For an easy to command-line utility, this would be very difficult. Note: (Paraphrase) The dataset may be modified for a clearly justified reason, and such changes should be kept to a minimum. (End Paraphrase) I took this blurb from the requirements to mean that one probably had to make modifications to the dataset to meet the requirements.