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 strongm 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. Lentil

    What object initiated the current object

    To raypru, (I don't see why you don't want to pass the identification of the calling class into the newly instantiated class) However if the only reason is that the newly instantiated class "needs to identify which class called it (so that it can look at the configuration file relevant to...
  2. Lentil

    How to retain values between cards in an CardLayout?

    WOW. I am not sure how to help since it looks like a 'due very soon assignment'. And I am still not sure what you are trying to do, and how you are trying to do it. I see your problem though. You are not writing in an object oriented way. More procedural. Also you are mixing up the...
  3. Lentil

    read from a file

    If you haven't already done so then review the Sun tutorials at http://java.sun.com/docs/books/tutorial/essential/io/ as well as the java docs on java.io classes. There are also many other tutorials on the internet dealing with just about every aspect of java. There are a number of ways to...
  4. Lentil

    Serious Print Problem!!!

    Obviously don't try to cram too much onto one page unless it is actually necessary. See my reply to your previous question. Lentil
  5. Lentil

    How to retain values between cards in an CardLayout?

    I don't understand your problem. ?? CardLayout is simply a way of laying out components so that you only see one at a time. They still exist within your program (unless you have some very odd code). Why not just get the values from each one. The component doesn't have to be visible for your...
  6. Lentil

    Weird Hashtable problem

    What do you mean. The OP implied that he would need to use the enumerator to match each key of the Hashtable to the "first-letter-string" with the "equals"-method, and then use the actual key to retrieve the object. This is not true and completely pointless in any...
  7. Lentil

    Weird Hashtable problem

    You do not need to use the enumerator in that way. The general contract for hashcode includes 'If two objects are equal according to the equals(Object) method, then calling the hashCode method on each of the two objects must produce the same integer result.' In your case if public class...

Part and Inventory Search

Back
Top