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 Chriss Miller 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. thekobbler

    Are these variables well initialized?

    Does read() always return a Complex class, i.e. it can never return NULL? Does Complex.add() always return a Complex class, i.e. it can never return NULL? if NULL is ever returned, a NullPointerException will be thrown.
  2. thekobbler

    Regarding port number

    I think you'll have to expand further your question. Which port are you interested in?
  3. thekobbler

    Swing refresh problem

    There are a number of reasons what you're trying to do wont work. You added a JTable to the JPanel using jp.add(js), however when you set jt = new JTable(data2,columnNames) you are simply creating another JTable, and setting the jt reference variable accordingly. The panel is still using the...
  4. thekobbler

    PrintWriter line length

    you cannot set a line length if the FileWriter and PrintWriter classes. To have this feature I would extends the class and provide the functionality you want. For example, you might create a method setMaxLineLength(int l), and override the print(String s) and println(String s) methods. If a...
  5. thekobbler

    Cloning

    It appears that MotorVehicle does not have a properly formed clone() method. i.e. it doen't return a useable clone, as it hasn't created an engine. In this case you can either correctly define the clone method in MotorVehicle (if you can!), or instantiate a second Car, and make it have the same...
  6. thekobbler

    String validation

    The regex package is very useful for this.
  7. thekobbler

    Stack memory vs. Heap memory (garbage collection)

    Usually the stack will be cleaned on method termination, but if some objects were created they are likely to be in the heap not the stack. The stack is usually used to store small things like parameter references, and scalars (will grow large if heavy use of recursive calls is made). These are...
  8. thekobbler

    How to Split Large Strings?

    If your reading the data from in input stream you can process as many or as few bytes / chars as you wish. You dont't have to "read a line"
  9. thekobbler

    How I make that the ([0-9]{4}) must start with 7.

    7[0-9]{3} ?
  10. thekobbler

    JTree node as a hyperlink in applet

    I'm not sure why you have a problem, are you adding a addTreeSelectionListener ? If so you now know which tree node you have selected and then can act accordingly.
  11. thekobbler

    how to account running time

    Is this a synchronization issue? perhaps you need to block out the handling of the acceptance of the 2nd customer, until the first has been handled/accepted.
  12. thekobbler

    Random Class always bringing back same number

    That's the whole point of using a seed. Many applications want to have a repeatable random number sequence.
  13. thekobbler

    logic error

    once you've found the "date" you want to display, simply "break;" this will drop you out of the loop. if that's what you wanted to do?
  14. thekobbler

    fully qualified name of a type

    I think most do not understand your question, could you re-phrase it? PS, if you want to know what member variables have been defined (and also their type), look at using Java's java.lang.reflect.Field class. (example http://javaalmanac.com/egs/java.lang.reflect/Fields.html )
  15. thekobbler

    ImageIcon not displayed with the JRE

    are the imagefiles located in the same resource area/directory?
  16. thekobbler

    Background running a Java application

    Cheers phosy, the second link seems to provide a good solution. As usual with these things there are usual workarounds ;-)
  17. thekobbler

    Background running a Java application

    Hi guys, I'm using Ant to extract files from CVS, Compile, and then use JUnit/JFCUnit to test the application, and then test (using JFCUnit) the User interface. My application requires a test harness (to act as a server to my application) to be started as a separate process, so I thought...
  18. thekobbler

    Using two screens in Win XP

    Haven't checked if this does address your question.. but looks like it does http://java.sun.com/j2se/1.4.1/docs/guide/2d/spec/j2d-awt.fm6.html
  19. thekobbler

    Hi all I would really appreciate

    The InputStream.read() (note System.in is-a InputStream) method has always been declared as throwing an IOException since JDK 1.0. So I guess your reference is incorrect as the developer MUST handle the possibility that an IOException may be thrown when calling System.in.read(). Perhaps the...
  20. thekobbler

    Interface Vs Abstract Classes

    me thinks you need to read about http.

Part and Inventory Search

Back
Top