EditorFrame.java revision c23e82b612acd5e947c164114377578116f6d298
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* See LICENSE.txt included in this distribution for the specific
* language governing permissions and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at LICENSE.txt.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 2005 Trond Norbye. All rights reserved.
* Use is subject to license terms.
*/
/**
* The EditorFrame is just a simple frame used by the internal editor to display files
* @author Trond Norbye
*/
/**
* Creates new form EditorFrame
*/
public EditorFrame() {
}
/** This method is called from within the constructor to
* initialize the form.
* WARNING: Do NOT modify this code. The content of this method is
* always regenerated by the Form Editor.
*/
// <editor-fold defaultstate="collapsed" desc=" Generated Code ">//GEN-BEGIN:initComponents
private void initComponents() {
textArea.setEditable(false);
.addContainerGap())
);
.addContainerGap())
);
pack();
}// </editor-fold>//GEN-END:initComponents
/**
* Load a named file into the JTextArea.
* @param filename The name of the file to display in the title of the frame
* @param reader A reader I may read data from
* @param lineno The line number to position the caret at (null if unknown)
* @throws java.io.IOException If an Exception occurs
*/
char buffer[] = new char[8192];
int r;
}
int position = 0;
if (p == -1) {
break;
} else {
position = p + 1;
}
}
}
if (end == -1) {
}
}
// Variables declaration - do not modify//GEN-BEGIN:variables
// End of variables declaration//GEN-END:variables
}