JAVA Ê÷
Rubicon
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import java.util.*;
public class Temp {
public Temp() {
JFrame J = new JFrame("MENU");
Container C = J.getContentPane();//ÒªÓÃJÀ´»ñÈ¡£¬¾ÍÏñÊ÷Ò»Ñù
String[] s1 = { "11", "22", "33" };
String[] s2 = { "$$", "55", "99" };
String[] s3 = { "55", "ii", "pp" };
Hashtable H1 = new Hashtable();
Hashtable H2 = new Hashtable();
H1.put("Menu1", s1);
H1.put("Menu2", s2);
H2.put("Menu3-1", s3);
H1.put("Menu3", H2);
JTree tree = new JTree(H1);
JScrollPane scrollpane = new JScrollPane();
scrollpane.setViewportView(tree);//setVisible Ϊ²¼¶ûÖµ£¬ÔÚÕâ²»ÄÜÓÃ
C.add(scrollpane);
J.pack();
J.setVisible(true);
J.addWindowListener(new WindowAdapter() {
public void windowClosing(WindowEvent e){
System.exit(0);
}
});
}
public static void main(String args[]) {
new Temp();
}
}
Ïà¹ØÎĵµ£º
ÕæÊDzÑÀ¢°¡, ѧÁËÔõô¾Ã java, ÏÖÔÚ²ÅÖªµÀ java µÄ»ù±¾Êý¾ÝÀàÐÍÊDz»´æÔÚÓзûºÅºÍÎÞ·ûºÅÕâÖÖ¶«Î÷µÄ. ƽʱ¶¼Ã»Óиã×Ö½ÚºÍλ֮ÀàµÄÔËËã, ËùÒÔµ¹ÊÇûÓÐ×¢Òâµ½Õâ¸ö·½ÃæÄØ.
JAVAÖеĻù±¾Êý¾ÝÀàÐͲ»´æÔÚÎÞ·ûºÅµÄ£¬ËüÃǵÄÈ¡Öµ·¶Î§Êǹ̶¨µÄ£¬²»»áËæ×Å»úÆ÷Ó²¼þ»·¾³»òÕß²Ù×÷ϵͳµÄ¸Ä±ä¶ø¸Ä±ä¡£(Õâ¾ä³µÄ)
Java¼òµ¥Êý¾ÝÀàÐÍ
......
ת×Ô£ºIBM¼¼ÊõÉçÇø2009 Java רÇø×îÊÜ»¶ÓÄÚÈÝ
×îÊÜ»¶ÓµÄÈÈÃÅÖ÷Ìâ
Web ¿ª·¢
2009
Ä꣬Web 2.0 Èȳ±´Ùʹ Web ¿ª·¢¼ÌÐø³ÉΪµ±Ç°×îÈÈÃŵÄÖ÷Ìâ¡£ÆäÖУ¬»ùÓÚ¶¯Ì¬ÓïÑÔ Goovy µÄÐÂÐË Web ¿ª·¢¿ò¼Ü Grails
³ÉΪÁ˱¸ÊÜÖõÄ¿µÄÐÂÐÇ¡£³ý´ËÖ®Í⣬Ðí¶à´«Í³µÄ»ùÓÚ Java ÓïÑ﵀ Web ¿ª·¢¿ò¼Ü£¬Èç Struts¡¢JSF¡¢GWT
µÈ£¬Ò²¶¼ÈÚÈë ......
¹ØÓÚjavaµÄÁ´±í˼Ïë
ÏÈ¿É¿´ÒÔÏÂÀý×Ó
ÏȽ¨Á¢Ò»¸öʵÀý(Student.java)
package com.yz.mylink;
public class Student {
private Integer id;
private String name;
private Integer age;
private String classes;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = i ......
Java Reflect±àд ͨÓÃÊý×éÀ©Õ¹Àà
package com.accp.array;
import java.lang.reflect.Array;
public class GrowArrayTest {
public static void main(String[] args) {
Integer[] array = {1,2,3,4}; //ͨÓÃÀ©Õ¹
arrayPrint(arra ......
¡¾Òý×Ô¼üÅÌÉϵÄÎèÕߵIJ©¿Í¡¿Í¼Ïñ±àÂëÊä³öµÄ·½·¨£¬Ìṩ±àÂë½ø¶È¼àÌý£¬ÉèÖñàÂëÖÊÁ¿µÄÖ§³Ö£¨Ìض¨¸ñʽ£¬ÀýÈçJPG£©¡£
Õâ¸ö·½·¨Ö§³ÖµÄ±àÂë¸ñʽÒÀÀµÔËÐл·¾³ÀïImageIOÒѾע²áImageWriter¼¯ºÏ¡£
Java SE 6ÖеÄImageIOĬÈÏÖ§³ÖJPG£¬BMP£¬PNG£¬GIFµÈ¸ñʽ£¬Ò²¿ÉÒÔͨ¹ý·Ç±ê×¼Àà¿âÌí¼ÓImageIO¶ÔͼÏñ¸ñʽµÄÖ§³Ö£¬±ÈÈç°²×°JAI_ImageIO¡ ......