Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. aka922

    java errors- int cannot be dereferenced

    Don't you just love the first one? for(i = Integer.valueOf(0); i.intValue() < lines.length;) It doesn't even increment i within the loop! Once again, concise and apposite advice from Scott... Busted.
  2. aka922

    dispose() and the garbage collector

    Sorry Scott, Once again you are mostly right - protected methods can only be called by another method in the class definition thus indirectly allowing public access (again sounds like a very bad practice). We also note that protected methods such as clone() can be promoted to public in an...
  3. aka922

    dispose() and the garbage collector

    Thanks to all, My reading of the API has Object.finalise() as recording a notification on exactly one thread - which could only support the GC in a multi-threaded environment. Note that any object that inherits from Object (ie all objects except arrays) can call the protected method - but...
  4. aka922

    dispose() and the garbage collector

    Too sweet :-)
  5. aka922

    Integrating custom ActiveX control into HTML document with Javascript

    Hi JD Solutions, Here's a tip - Javascript functions can have parameters, and I personally thimk "document.getElementById" is lazy programming. function init(object JDNG) { //call JDNG.OnMyNumberChanged } So why does the <object> declaration have to be in <body> ? I'm not an expert but there...
  6. aka922

    dispose() and the garbage collector

    Please forgive me everyone, It is the finalize() method and not dispose() that I was curious about - ie when is it worth calling finalize() on a temporary. Since I don't know how to close a discussion thread in this forum let's just say - woopse my mistake. Jim.
  7. aka922

    dispose() and the garbage collector

    Further to previous... Rather than code I would prefer to send you the design specs. Eventually the GUI will perform two sorts of topological analysis on this relational structure: (acyclic) transitive closure and various unions of equvalence classes - with all resilts returned as Collections...
  8. aka922

    dispose() and the garbage collector

    Thanks for that Scott, You have reminded me jus how important it is to get one's jargon right. Yes I did mean Collection and not a Container. I want the AWT/Swing components to display, and have direct access to every element "aggregated" by the current object (like in a graph). What I do not...
  9. aka922

    Java Learning Path

    Hi again Maggie, Last year I was tutoring students who had the same problem. Ticking the email notification box, Jim.
  10. aka922

    trying to do a string find and replace

    Hi jc, Since you have a Perl background, you will want to check out Java support for regular expressions: java.util.regex Smiles, Jim
  11. aka922

    dispose() and the garbage collector

    Thank you Geeky. Interestingly, I do not want to clone the collection; rather I do want the contained objects to be available for messages from the GUI (ie for real time interaction). I have also wondered whether clear() on the returned copy (after its usage as a temporary) would shrink the...
  12. aka922

    Java Learning Path

    My first advice is that in database design (ERD) the references are directed from the "Foreign key" towards the "Primary key". In Java program design (O-O) the navigation is reversed, so that such one-to-many relations are accessed by calls on the elements of a collection from the object that...
  13. aka922

    cannot find symbol

    I usually get these "cannot find symbol" messages when the environmental variable CLASSPATH has not been set. Try doing this before you invoke Buildfile - looks like it might be: "/home/tomcat/apache-tomcat-7.0.21-src//output/build/temp". Usually it is also best to also include "." in your...
  14. aka922

    java.lang.NullPointerException

    The NullPointerException is an error thrown by calling a method without an agument: ParameterFieldController.do(Unknown Source) If a method expects an object and is passed a null, invoking any methods on this "null argument" will generate an exception. The source is obviously "unknown" because...
  15. aka922

    dispose() and the garbage collector

    I have a class that encapsulates a Container, say Set, and I want the method getSet to return a *copy* of the data member (so as to preserving the privacy of access to the data member). However, this method is accessed many times by the GUI interface, almost on every user driven event. What I...

Part and Inventory Search

Back
Top