Using Java to Control System Functions
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 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 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
Question: I’ve been to sites where dialog boxes appear. How can I create one?I also want to ask users for their names, and then to be able to tell how
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 can I append to a file in Java?The file is ASCII. It exists. The program hasrights to the file. I just need to add to the endof the
Question: I would like to create a very simple applet that pings anIP address and returns a message stating whether that IP is alive. Icouldn’t find any straightforward answers to