随笔分类 -  Java

how to use javap command
摘要:SYNOPSISjavap [options] classesDESCRIPTIONThe javap command is called "disassembler" because it takes apart class files and tells you what's inside them. We won't use it often but sometimes it is very useful to find out how a particular java statement works out, especially for inne 阅读全文
posted @ 2013-08-16 19:23 Jiang, X. 阅读(1061) 评论(0) 推荐(0)
Java Inner Classes
摘要:When thinking about inner classes in java, the first thing that comes to my mind is that,WHYdo we need to add inner classes to normal one? Leave alone all the specific details of the Java syntax, I think the reason is quite SIMPLE: we are human beings and we are always looking for approaches with LE 阅读全文
posted @ 2013-08-13 17:37 Jiang, X. 阅读(574) 评论(0) 推荐(0)
Swing How to make dialogues
摘要:There are two types of dialog:modalnon-modal: must use JDialog directly Taken JFileChooser as Example:1. Open a JFileChooser:JFileChooserfileChooser = new JFileChooser();2. Get value from it:File file = fileChooser.getSelectedFile();Code: 1 import javax.swing.*; 2 3 import java.awt.*; 4 import ... 阅读全文
posted @ 2013-08-13 17:19 Jiang, X. 阅读(444) 评论(0) 推荐(0)
Javadoc使用方法
摘要:Project - Generate JavadocConfigure:Choose the path of Javadoc(mine is C:\Program Files\Java\jdk1.6.0_10\bin\javadoc.exe)Finish 阅读全文
posted @ 2013-02-01 19:49 Jiang, X. 阅读(182) 评论(0) 推荐(0)
Using the Right Comment in Java
摘要:Java provides three types of comments:Single-Line (C++-Style) CommentsThe simplest comment in Java is the single line comment. It starts with two forward slashes and continues to the end of the line. For example:Figure 1: Single-line comments// this is a single-line commentx = 1; // a single-line co 阅读全文
posted @ 2013-01-31 21:31 Jiang, X. 阅读(361) 评论(0) 推荐(0)
XP下Android开发环境配置
摘要:1. 下载安装ecliplse2. 下载安装Android SDK3.Eclipse安装Developer Tools插件解压“eclipse-java-indigo-SR1-win32”,双击“eclipse”,进入eclipse主界面第一步:点击help->Install New SoftWare->Add按钮Name:任意字母字符Location:https://dl-ssl.google.com/android/eclipse/第二步:加载完“Developer Tools”,点击选中其。第三步:Next第五步:选中“I accept the terms of the li 阅读全文
posted @ 2013-01-22 23:17 Jiang, X. 阅读(273) 评论(0) 推荐(0)
HOW TO : Install Eclipse with C/C++ in Ubuntu 12.04
摘要:1. Download eclipse, jre, cdt1.1 Download Eclipse here: http://www.eclipse.org/1.2 Download JRE here: http://www.oracle.com/technetwork/java/javase/downloads/jre7-downloads-1880261.htmlI got the jre-7u10-linux-i586.tar.gz1.3 Download CDT here: http://www.eclipse.org/cdt/2. Extract all compressed fi. 阅读全文
posted @ 2012-12-18 20:06 Jiang, X. 阅读(305) 评论(0) 推荐(0)
Eclipse安装失败“eclipse failed to create the java virtual machine”解决办法
摘要:打开eclipse安装程序目录将eclipse.ini由-startupplugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar--launcher.libraryplugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.200.v20120522-1813-showsplashorg.eclipse.platform--launcher.defaultActionopenFile-vmargs-Xms40m-Xmx512m-XX:MaxPermSize=256m-Dsun 阅读全文
posted @ 2012-12-17 21:56 Jiang, X. 阅读(1995) 评论(0) 推荐(0)