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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by koolraul

  1. koolraul

    EBCDIC to ASCII in Java

    Ok folks! I got the idea! Life is just not that easy... but fun anyway. Thanks a lot for your enlightenment.
  2. koolraul

    EBCDIC to ASCII in Java

    Thanks sedj and Diancecht for your responses. I have the following snippet of codes to read the flat file that was generated by a COBOL program which contains a combination of ASCII characters and pack decimals which I think are in binary format. I was able to read and write the file but the...
  3. koolraul

    EBCDIC to ASCII in Java

    I have a flat file that was generated by a COBOL program which contains a combination of ASCII characters and pack decimals which I think are in binary format. The pack decimals are of COMP type (in Cobol). Can I use some of the io classes to convert these pack decimals to ASCII? Thanks.
  4. koolraul

    Returning an updatable ResultSet object

    I got the answer from another Forum. Don't use '*' in the SELECT statement. Use the column names instead and it should work.
  5. koolraul

    Returning an updatable ResultSet object

    The variables TABLE_NAME and STD_NAME are both declared as 'private static final String'. I created the method getUpdatableRS(Connection conn), which I'm expecting to return an updatable ResultSet object. I created another method, updStudentRowByName(ResultSet rset, String name) and passing...
  6. koolraul

    Compilation error when constructing a JTree

    Hologram, I commented the other TreeModel and changed my parameter for the JTree constructor and it worked! Thanks for the pointer. koolraul /* JtreeDemo class */ iIpAddress = getIpAddress(); FileListTreeModel files = new FileListTreeModel(iIpAddress); System.out.println("Jtree - root...
  7. koolraul

    Compilation error when constructing a JTree

    I'm experiencing compilation error when I was trying to test my tree model. In my FileListTreeModel class, which is implementing the TreeModel interface, I defined the getRoot() as shown below so I can see its behavior. My tree is being constructed in my JtreeDemo class. Can anybody show me...
  8. koolraul

    Capture any keyboard input from console

    sedj, Thank you for your quick response. I have actually handled the display of 22 lines in a different way but would try your sugggestion which is a little bit more elegant. The problem that I have is handling the 'press-any-key' event in the console. My program will display 22 lines/per...
  9. koolraul

    Capture any keyboard input from console

    I am trying to display lines of File objects e.g., File, Directories on the console one line per object. I want to display only up to a number of lines e.g., 20 lines. After 20 lines, I want to display the message "more". After the user press any key, the display will continue...
  10. koolraul

    Problems with Thread and synchronized view

    I declared my synchronized view as: Set tset = Collections.synchronizedSet(new TreeSet(new RectComparator()));. I created a thread class as: private class AddThread implements Runnable { ... }. Inside the thread constructor, I'm passing a LinkedList and a Set as parameters e.g., public...

Part and Inventory Search

Back
Top