
How to Display Images in Java Stand-alone Applications
Question: How do I refer to/utilize the getImage(…) method whenusing it in an application, as I can only get it to work for an applet? Answer: To display images in

Question: How do I refer to/utilize the getImage(…) method whenusing it in an application, as I can only get it to work for an applet? Answer: To display images in

Question: Is it possible to have Java talk to a localserial port on a machine, for example,COM1 or COM2 on a PC?Is there a way to do this without nativemethods,

Question: Constant downloading and fear of accumulating masses of useless files is turning me off on Internet. My concept of Java is that exe files, etc., will be on the

Question: I would like to be able to browse my server and havean applet/program that would mimic the functions of,say, the control panel on a Macintosh.Would I needto write a

Question: I want a copy of an instance not a reference, e.g.(Image). Iknow of the clone method, but not many classes have it. Along those lines,does Java pass objects to

Question: How do I include reserved characters suchas double-quote in the strings passed to an applet from a PARAM tag?Standard SGML entities don’t work; the UNIX backslash method doesn’t work.

Question: How can I respond to a mousedown event in a TextField? Answer: From the Java 1.0.2 API specs:“In Java 1.0, the AWT does not send mouse or focus events

Question: How do I create a TextField that handles a password?What are the KEY_ACTION events associated with it? Answer: The setEchoCharacter() method within the TextField class allows youto do precisely

Question: Is there a way to determine the number ofinstantiated objects of a certain class? Answer: Unfortunately, there are no methods of class Object orClass thattrack the number of extant