JXMLPad - Tutorial
Version 1.2
Creating a JSP 1.2 editor
STEP 1/5: Creating the
main class
Next Step
public class JSPEditor extends JFrame {
// JSPEditor constructor
public JSPEditor() {
// Create an XMLEditor and add it
XMLContainer container = new XMLContainer();
... // Look at the next step
for this point
getContentPane().add( container );
// Useful for freeing allocated resource
setDefaultCloseOperation( JFrame.DISPOSE_ON_CLOSE
);
}
// Sample for running it
public static void main( String[] args ) {
new JSPEditor();
}
}