PVA – Archives

Sưu tầm những bài viết hay trên internet…

Tag Archives: java

Clipboard copy and paste in Java

From: http://www.javapractices.com/topic/TopicAction.do?Id=82 Here is a demonstration of how to move text to and from the Clipboard. In Java, there are actually two kinds of Clipboard – system and local. The following example uses the system Clipboard. It corresponds to the usual idea of sharing data between otherwise independent applications running on the same computer. Local Clipboards are visible only within [...]

Upcasting, downcasting

From: http://forum.codecall.net/java-tutorials/20719-upcasting-downcasting.html Upcasting and downcasting are important part of Java, which allow us to build complicated programs using simple syntax, and gives us great advantages, like Polymorphism or grouping different objects. Java permits an object of a subclass type to be treated as an object of any superclass type. This is called upcasting. Upcasting is [...]

Interface vs abstract

From: http://mindprod.com/jgloss/interfacevsabstract.html When To Use Interfaces An interface allows somebody to start from scratch to implement your interface or implement your interface in some other code whose original or primary purpose was quite different from your interface. To them, your interface is only incidental, something that have to add on to the their code to [...]

Tài liệu học JSP và Servlet

JSP (viết tắt của tiếng Anh JavaServer Pages) còn được biết đến với một cái tên khác là Java Scripting Preprocessor - tạm dịch là “Bộ tiền xử lý văn lệnh Java” – là một công nghệ lập trình mã kịch bản phía máy chủ cho phép các nhà phát triển tạo ra các ứng dụng dựa trên [...]

How to install and configure Apache Tomcat 6

PDF: Config Tomcat 6 From: http://www3.ntu.edu.sg/home/ehchua/programming/howto/tomcat_howto.html Apache Tomcat is the official Reference Implementation (RI) for Java Servlets and JavaServer Pages (JSP). Tomcat is an open-source project, under the “Apache Software Foundation” (which also provides the famous open-source industrial-strength Apache HTTP Server). The mother site for Tomcat is http://tomcat.apache.org. This configuration guide is NOT meant for production purpose, but merely for [...]

Install Java JRE 1.6.0 (Update x) in Linux as the Default Java Runtime, including Firefox Browser Plugin

From: http://www.64bitjungle.com/ubuntu/install-java-jre-160-update-x-on-hardy-as-the-default-java-runtime/ I wanted the latest version of Sun’s JRE installed on my system, and to have it set up as the default Java Runtime Environment whenever I ran a Java executable, or Jar file. It’s actually a pretty easy process, so this is a relatively short tutorial, but I’ll cover both the 32 bit [...]

Follow

Get every new post delivered to your Inbox.