/** * Creates a new <code>TextEditorPane</code>. The file will be given * a default name. * * @param textMode Either <code>INSERT_MODE</code> or * <code>OVERWRITE_MODE</code>. * @param wordWrapEnabled Whether or not to use word wrap in this pane. */ public TextEditorPane(int textMode, boolean wordWrapEnabled) { super(textMode); setLineWrap(wordWrapEnabled); try { init(null, null); } catch (IOException ioe) { // Never happens ioe.printStackTrace(); } }
/** * Creates a new <code>TextEditorPane</code>. * * @param textMode Either <code>INSERT_MODE</code> or * <code>OVERWRITE_MODE</code>. * @param wordWrapEnabled Whether or not to use word wrap in this pane. * @param loc The location of the text file being edited. If this value * is <code>null</code>, a file named "Untitled.txt" in the current * directory is used. This file is displayed as empty even if it * actually exists. * @param defaultEnc The default encoding to use when opening the file, * if the file is not Unicode. If this value is <code>null</code>, * a system default value is used. * @throws IOException If an IO error occurs reading the file at * <code>loc</code>. This of course won't happen if * <code>loc</code> is <code>null</code>. */ public TextEditorPane(int textMode, boolean wordWrapEnabled, FileLocation loc, String defaultEnc) throws IOException { super(textMode); setLineWrap(wordWrapEnabled); init(loc, defaultEnc); }
/** * Creates a new <code>TextEditorPane</code>. The file will be given * a default name. * * @param textMode Either <code>INSERT_MODE</code> or * <code>OVERWRITE_MODE</code>. * @param wordWrapEnabled Whether or not to use word wrap in this pane. */ public TextEditorPane(int textMode, boolean wordWrapEnabled) { super(textMode); setLineWrap(wordWrapEnabled); try { init(null, null); } catch (IOException ioe) { // Never happens ioe.printStackTrace(); } }
/** * Creates a new <code>TextEditorPane</code>. The file will be given * a default name. * * @param textMode Either <code>INSERT_MODE</code> or * <code>OVERWRITE_MODE</code>. * @param wordWrapEnabled Whether or not to use word wrap in this pane. */ public TextEditorPane(int textMode, boolean wordWrapEnabled) { super(textMode); setLineWrap(wordWrapEnabled); try { init(null, null); } catch (IOException ioe) { // Never happens ioe.printStackTrace(); } }
/** * Creates a new <code>TextEditorPane</code>. The file will be given * a default name. * * @param textMode Either <code>INSERT_MODE</code> or * <code>OVERWRITE_MODE</code>. * @param wordWrapEnabled Whether or not to use word wrap in this pane. */ public TextEditorPane(int textMode, boolean wordWrapEnabled) { super(textMode); setLineWrap(wordWrapEnabled); try { init(null, null); } catch (IOException ioe) { // Never happens ioe.printStackTrace(); } }
/** * Creates a new <code>TextEditorPane</code>. * * @param textMode Either <code>INSERT_MODE</code> or * <code>OVERWRITE_MODE</code>. * @param wordWrapEnabled Whether or not to use word wrap in this pane. * @param loc The location of the text file being edited. If this value * is <code>null</code>, a file named "Untitled.txt" in the current * directory is used. This file is displayed as empty even if it * actually exists. * @param defaultEnc The default encoding to use when opening the file, * if the file is not Unicode. If this value is <code>null</code>, * a system default value is used. * @throws IOException If an IO error occurs reading the file at * <code>loc</code>. This of course won't happen if * <code>loc</code> is <code>null</code>. */ public TextEditorPane(int textMode, boolean wordWrapEnabled, FileLocation loc, String defaultEnc) throws IOException { super(textMode); setLineWrap(wordWrapEnabled); init(loc, defaultEnc); }
/** * Creates a new <code>TextEditorPane</code>. * * @param textMode Either <code>INSERT_MODE</code> or * <code>OVERWRITE_MODE</code>. * @param wordWrapEnabled Whether or not to use word wrap in this pane. * @param loc The location of the text file being edited. If this value * is <code>null</code>, a file named "Untitled.txt" in the current * directory is used. This file is displayed as empty even if it * actually exists. * @param defaultEnc The default encoding to use when opening the file, * if the file is not Unicode. If this value is <code>null</code>, * a system default value is used. * @throws IOException If an IO error occurs reading the file at * <code>loc</code>. This of course won't happen if * <code>loc</code> is <code>null</code>. */ public TextEditorPane(int textMode, boolean wordWrapEnabled, FileLocation loc, String defaultEnc) throws IOException { super(textMode); setLineWrap(wordWrapEnabled); init(loc, defaultEnc); }
/** * Creates a new <code>TextEditorPane</code>. * * @param textMode Either <code>INSERT_MODE</code> or * <code>OVERWRITE_MODE</code>. * @param wordWrapEnabled Whether or not to use word wrap in this pane. * @param loc The location of the text file being edited. If this value * is <code>null</code>, a file named "Untitled.txt" in the current * directory is used. This file is displayed as empty even if it * actually exists. * @param defaultEnc The default encoding to use when opening the file, * if the file is not Unicode. If this value is <code>null</code>, * a system default value is used. * @throws IOException If an IO error occurs reading the file at * <code>loc</code>. This of course won't happen if * <code>loc</code> is <code>null</code>. */ public TextEditorPane(int textMode, boolean wordWrapEnabled, FileLocation loc, String defaultEnc) throws IOException { super(textMode); setLineWrap(wordWrapEnabled); init(loc, defaultEnc); }