devxlogo

Tip Bank

Advantages of WinCE

Question: What advantages does WinCE have over other handheld palmtop operating systems such as the Newton and others? Answer: Wow! Now that’s a leading question. Here’s the short version of

2GB+ files

Question: How do you determine the file size of files which are larger than 2GB? Also, how do you seek into a files larger than 2GB?Thank you Answer: You might

Java File date

Question: Is there anyway with java to get a file’s date? Answer: Unfortunately, there seems to be no platform-independent way of doing this.The lastModified() method in java.io.File returns a system

Java and NT Services

Question: How can I run a Java server application as an NT service? Answer: You can run a Java server appliation as an NT service if you use theMicrosoft SDK

Taskbar Icon for Dialog

Question: How can I set the icon image for a java.awt.Dialog like you can fora java.awt.Frame using setIconImage? Answer: Unfortunately you cannot do this. A Dialog inherits the icon of

Default button

Question: How can I implement a “default” button in a window? Answer: You can explicitly request the focus using requestFocus(), but thebutton can still lose the focus. Therefore you have

Java Product Version Confusion

Question: I’m reading a book on Java 1.1 that refers to various classesthat do not exist in Microsoft Visual J++ Professional Edition,Version 1.1, which apparently installs V1.02 libraries. How canI

Appending to existing files

Question: Is there a way to open a file for writing in append mode? Answer: The FileOutputStream and FileWriter classes both have constructors thatwith the following signature (String, boolean). The