2.8. Planificación de la formación
2.8.8. Auditoría de la formación
JavaDoc Tool Home Page
●
How to put comments in your code with JavaDoc
●
Java theory and practice: I have to document THAT? Integrated documentation a la Javadoc
is both a benefit and a burden
●
Java Quick Reference - SCJD Study Notes - Documentation
Java Quick Reference Home SCJP2 Study Notes Case Studies SCJA Notes SCJD Notes Projects Favourite Links About Feedback
Projects is a rather glorified name for this section. Right now it's just small examples.
PropertiesViewer - display the system properties returned by System.getProperties() in a JTree.
●
ClassBrowser - A simple Java class browser.
●
FieldValidation - The example uses InputVerifier's to validate user input.
●
Calculator - a simple calculator that uses method reflection to invoke commands.
●
CalendarComboBox - a custom 'date' input component that mimics a combo-box, displaying
a perpetual calendar as it's drop-down.
●
Java Quick Reference
Java Quick Reference Home SCJP2 Study Notes Case Studies SCJA Notes SCJD Notes Projects Favourite Links About Feedback
JavaRanchJavaRanch hosts numerous discussion groups related to all areas of Java
Development: SCJP, SCJA and SCJD Certification, EJB, XML, JSP and much, much more including CattleDrive (Java College) where you can write practice assignments and have someone nitpick your code for free!
JCHQ Java Programmer Certification Exam and Training. Popular site created by Marcus Green. Discussions, tutorials, FAQ's and more.
JavaChina A SCJP Certification site created by Roseanne Zhang. Contains a large
Certification FAQ, code examples and much more!
Sun Sites Tutorials On-line Books Resource Sites
Java Quick Reference
Java Quick Reference Home SCJP2 Study Notes Case Studies SCJA Notes SCJD Notes Projects Favourite Links About Feedback
Site Design
The site is built and maintained by myself using HomeSite from Allaire
I swiped the folder and page icons from Jeff Rouyer, author of Dynamic HTML: Web Magic. Java Quick Reference
Java Quick Reference Home SCJP2 Study Notes Case Studies SCJA Notes SCJD Notes Projects Favourite Links About Feedback
New 2 Java Sun site geared to Java newbies. Contains an overview of the language,
how to get started learning and using Java, and links to other resources.
Certification Certification Objectives and exam details.
SDK Download site for latest Java 2 Software Development Kit
JLS View or download the Java Language Specification.
JVM View or download the Java Virtual Machine Specification.
Glossary Glossary of Java Technology related terms.
Code ConventionsOn-line document outlining coding conventions for the Java
Programming Language
Technical ArticlesNumerous articles on various aspects of the Java platform: Collections, JDBC, Programming, JavaBeans, Graphics, etc.
Tech Tips Tips, Techniques and sample code.
Bugs Database containing reported Bugs. You need to register with the site before you can access the database.
Applets Sample applets contributed by Java enthusiasts or created at Sun.
Code Samples Code snippets (examplets) showing how to handle various common
tasks.
Forte Resources Developer resource for Sun's Java Development IDE, Forte for Java.
Includes links to the FAQ, Technical Articles, Newsgroups, Documentation and Downloads.
Sun Sites Tutorials On-line Books Resource Sites
Java Quick Reference
Java Quick Reference Home SCJP2 Study Notes Case Studies SCJA Notes SCJD Notes Projects Favourite Links About Feedback
Sun Java Tutorial The Java Tutorial viewable on-line or may be
downloaded.
Thinking in Java Popular tutorial by Bruce Eckel. Download
the html version.
Introduction to Computer Science using JavaInteractive tutorial created by Bradley Kjell of Cental Connecticut State University. Assumes no prior programming experience.
Introduction to Programming Using Java Tutorial written by David Eck of Hobart and
William Smith Colleges. May be taken on-line or downloaded.
Java Tutorials A series of Java tutorials available in the
Objective Viewpoint column written by George Crawford III for ACM Crossroads, an student online magazine.
Pure Java Education Center Collection of Java "how-to" articles, tips,
techniques and source code.
Brewing Java A basic Java tutorial by Elliot Rusty Harold.
Java Tutorials A collection of introductory Java Tutorials
from Free Java Help.
Java 2 Certification A popular tutorial created by Marcus Green
geared to the Java 2 Certification Objectives
Java Jems Tutorials for beginners and SCJP certification.
JSP Tutorial Tutorial on Java Servlets
JDBC Tutorial Tutorial on Java Database Connectivity from
the Web Developers Virtual Library.
Sun Sites Tutorials On-line Books Resource Sites
Java Quick Reference
Java Quick Reference Home SCJP2 Study Notes Case Studies SCJA Notes SCJD Notes Projects Favourite Links About Feedback
Data Structures and Algorithms with Object-Oriented Design Patterns in Java
This book is about the fundamentals of data structures and algorithms--the basic
elements from which large and complex software artifacts are built.
Java Free Library A list of Java online books made available
by InformIt.
Java by Example Complete tutorial on the Java Language.
Java Expert Solutions Covers a wide variety of topics: RMI,
JDBC, Applets, etc.
Focus on Java Programming This is a free, online textbook on
introductory Java™ programming. Lots of excercises and example code.
Sun Sites Tutorials On-line Books Resource Sites
Java Quick Reference
Java Quick Reference Home SCJP2 Study Notes Case Studies SCJA Notes SCJD Notes Projects Favourite Links About Feedback
Java FAQ Java FAQ from the computer-lang/java/programmers/faq newsgroup.
Updated weekly.
JavaFile Collection of free Java applets.
DigitalCats Java resource site. Contains articles, links to other resources.
Gamelan One of the oldest and most popular Java resource sites.
JavaWorld Java How-To's and Tutorials from JavaWorld magazine.
Other resources A number of people have written study notes and built Java related sites. Browse the Java Certification web-ring (see bottom of page) to find others.
Sun Sites Tutorials On-line Books Resource Sites
The Java Certification Web Ring
[Previous] [Next] [Random] [List Sites] [Join Ring] Java Quick Reference
Java Project - PropertiesViewer
PropertiesViewer.java
Home | Projects
Java Quick Reference - Project - PropertiesViewer
package ca.janeg.properties; import java.awt.Dimension; import java.util.Iterator; import java.util.Properties; import java.util.Set; import java.util.StringTokenizer; import java.util.TreeMap; import javax.swing.JPanel; import javax.swing.JOptionPane; import javax.swing.JScrollPane; import javax.swing.SwingUtilities; import javax.swing.JTree; import javax.swing.event.TreeSelectionListener; import javax.swing.event.TreeSelectionEvent; import javax.swing.tree.TreeSelectionModel; import javax.swing.tree.DefaultMutableTreeNode; import javax.swing.JFrame;
/** Displays system properties in a sorted, categorized tree heirarchy. * Select a property node to display its corresponding value.
*
* @author Jane Griscti [email protected] * @version 1.0 Dec-21-2001
*/
public class PropertiesViewer extends JPanel{
private Properties props = System.getProperties(); private JTree tree;
private JPanel owner;
/** Creates a JPanel containing a JTree. Nodes are categorized
* according to the first element of the property name. For example, * all properties beginning with 'java' are categorized under
* the node 'java'. */
public PropertiesViewer(){ super();
owner = this;
createSortedTree();
JScrollPane jsp = new JScrollPane( tree ); jsp.setPreferredSize( new Dimension( 400, 300 ) ); jsp.setMinimumSize( getPreferredSize() );
add( jsp ); }
/** Builds the JTree. The properties are given to a TreeMap, which automatically * sorts them. The keys from the TreeMap are used to create the JTree nodes. * A StringTokenizer is used to extract the first portion of the property name * to build category nodes.
*/
private void createSortedTree(){
DefaultMutableTreeNode top = new DefaultMutableTreeNode("System Properties"); Set keySet = new TreeMap(props).keySet();
Iterator iter = keySet.iterator(); PropertiesViewer.java
DefaultMutableTreeNode key = null;
DefaultMutableTreeNode category = null; String currentCategory = "";
String newCategory = "";
while( iter.hasNext() ){
key = new DefaultMutableTreeNode( iter.next() );
StringTokenizer stok = new StringTokenizer( (String)key.getUserObject(), "." );
newCategory = stok.nextToken();
if( !currentCategory.equals(newCategory) ){ currentCategory = newCategory;
category = new DefaultMutableTreeNode( newCategory ); top.add( category );
}
category.add( key ); }
tree = new JTree( top );
tree.putClientProperty("JTree.lineStyle", "Angled" );
tree.getSelectionModel().setSelectionMode(TreeSelectionModel.SINGLE_TREE_SELECTION); tree.addTreeSelectionListener( new TreeListener() );
}
/** The JTree listener. When a property node is selected a JOptionPane * is created to display the value associated with the property.
*/
private class TreeListener implements TreeSelectionListener{
public void valueChanged(TreeSelectionEvent e) {
DefaultMutableTreeNode node = (DefaultMutableTreeNode)
tree.getLastSelectedPathComponent();
if (node == null) return;
Object nodeInfo = node.getUserObject();
if (node.isLeaf()) {
String property = (String)nodeInfo;
String value = props.getProperty( property ); if( value.equals("") ){
value = "No associated value."; } JOptionPane.showMessageDialog( owner, value, property, JOptionPane.INFORMATION_MESSAGE); } } }
/** Demos the PropertiesViewer. */
PropertiesViewer.java
public static void main(String[] args){
JFrame frame = new JFrame("Properties Viewer Demo"); frame.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE ); PropertiesViewer pv = new PropertiesViewer();
frame.getContentPane().add( pv ); frame.pack(); frame.setVisible( true ); } } PropertiesViewer.java http://www.janeg.ca/projects/properties/PropertiesViewer.java.html (3 of 3) [15/03/2004 8:46:33 AM]
Java Project - ClassBrowser
The GUI
A screen shot of the application.
The UML
The UML diagram.
The ClassBrowser class diagram. The CBClassGroup class diagram. The CBClassInfo class diagram. The CBDocument class diagram. The CBTreePanel class diagram. The CBTextPane class diagram. The FieldGroup class diagram. The ConstructorGroup class diagram. The MethodGroup class diagram. The ParsedClassName class diagram. The NameComparator class diagram. The AccessSeparator class diagram.