1000 thủ thuật lập trình Java

854 452 0
1000 thủ thuật lập trình Java

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

Thông tin tài liệu

1000 thủ thuật lập trình Java

[...]... Systems è è Question: How does Java read the text files? Can Java read the files that are in other formats? Is the read file method in Java only recognizes the file in txt or other text format? Copyright © 2005 http://JavaA.com http://JavaFAQ.nu alex@javafaq.nu Even More Tips at http://JavaA.com and http://JavaFAQ.nu every day!!! Answer: Java can read any text file (using a java. io.FileReader for example... -Michiel Copyright © 2005 http://JavaA.com http://JavaFAQ.nu alex@javafaq.nu Even More Tips at http://JavaA.com and http://JavaFAQ.nu every day!!! è Question: Is it possible to close browser from applet? Answer: Yes, use this (tested): ////////////////////////////////////////////////////// import java. applet.Applet; import java. awt.*; import java. awt.event.*; import netscape.javascript.JSObject; class CloseApplet... results of the Google search "Java Security Model"): http:/ /java. sun.com/security/ http:/ /java. sun.com/security/SRM.html http://www.sans.org/infosecFAQ/code /java_ sec.htm Copyright © 2005 http://JavaA.com http://JavaFAQ.nu alex@javafaq.nu Even More Tips at http://JavaA.com and http://JavaFAQ.nu every day!!! è Question: I just started to do Java programming How can I bring the system standard output... Copyright © 2005 http://JavaA.com http://JavaFAQ.nu alex@javafaq.nu Even More Tips at http://JavaA.com and http://JavaFAQ.nu every day!!! add(appList); } } Here are some useful links on applet to applet communication I don't know if they will solve your problem but these are a variety of good approaches for this type of issue: http://www.javaworld.com/javaworld/javatips/jw-javatip101.html http://www.twf.ro/calculatoare/TricksJavaProgramGurus/ch1.htm... from a Java Applet to another ASP page in the same frameset I would like to avoid a server roundtrip and do it all with JavaScript if possible Therefore I would like to call some JavaScript from a Java Applet It looks like it is not possible without a Netscape package Is that true? Is there a simple Copyright © 2005 http://JavaA.com http://JavaFAQ.nu alex@javafaq.nu Even More Tips at http://JavaA.com... are Java Beans An Xbean is a software component that takes XML as input, processes it in some fashion and then passes XML on to the next Xbean -> \ XBean \ -> XML - XML Copyright © 2005 http://JavaA.com http://JavaFAQ.nu alex@javafaq.nu Even More Tips at http://JavaA.com and http://JavaFAQ.nu every day!!! Java Bean technology supports the packaging, reuse, connection and customization of Java. .. Enterprise JavaBean, at least five different objects are actually being instantiated! But it's great once you get past the initial learning stage, which can last a while There are lots of good books on EJB, but I found Ed Roman's "Mastering Enterprise JavaBeans" to be a great primer -Copyright © 2005 http://JavaA.com http://JavaFAQ.nu alex@javafaq.nu Even More Tips at http://JavaA.com and http://JavaFAQ.nu... 5.0 Release 5.0.0.3318 We would like to be able to obtain the above String (or at least the 5.0.0.3318 part of it) through a Java Applet / JavaScript at runtime Copyright © 2005 http://JavaA.com http://JavaFAQ.nu alex@javafaq.nu Even More Tips at http://JavaA.com and http://JavaFAQ.nu every day!!! Does anyone know of any handy methods that allow access to this String? I've looked in all the System.properties,... getting the whole picture If I write a Java app that is going to be talking to Oracle, is the only method of getting the Oracle server to do anything via SQL calls? Assuming that my Java App is on a laptop, and talking (I guess TCP/IP) to the Oracle Copyright © 2005 http://JavaA.com http://JavaFAQ.nu alex@javafaq.nu Even More Tips at http://JavaA.com and http://JavaFAQ.nu every day!!! Server, what processing/data... error output from my Java applets in IE? Answer: The file windows \Java\ Javalog.txt contains info about the last Applet loaded in IE All the System.out messages and exception information is stored here when Java Logging is enabled in IE To enable Java Logging start IE and select View/Options/Advanced Select "Enable Java Logging" check box click OK Restart IE In NT4 the file in C:\WINNT \Java è Question:

Ngày đăng: 22/04/2014, 11:39

Từ khóa liên quan

Tài liệu cùng người dùng

Tài liệu liên quan