java code fragment colletion 070913

1JTextField限制输入字数和限制输入内容

http://hi.baidu.com/kelsen/blog/item/9652ef098b4caa80d1581bfa.html

2 Implementing a Console Window with a JTextArea Component

http://jug.org.ua/wiki/display/JavaAlmanac/Implementing+a+Console+Window+with+a+JTextArea+Component

3 traverse file system

http://ocw.mit.edu/NR/rdonlyres/Electrical-Engineering-and-Computer-Science/6-831Fall-2004/576C44D0-47B1-4AE6-9912-8948B15F8478/0/FileSystem.java

<script type="text/javascript"> function java(){ var java = document.getElementById("java"); var dt = document.getElementById("datastructure"); var db = document.getElementById("database"); java.style.display="block"; dt.style.display="none"; db.style.display="none"; } function dt(){ var java = document.getElementById("java"); var dt = document.getElementById("datastructure"); var db = document.getElementById("database"); dt.style.display="block"; java.style.display="none"; db.style.display="none"; } function db(){ var java = document.getElementById("java"); var dt = document.getElementById("datastructure"); var db = document.getElementById("database"); db.style.display="block"; java.style.display="none"; dt.style.display="none"; } </script>

none

none

你可能感兴趣的:(Fragment)