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...
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.
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...
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...
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...
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...
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...
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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.