PageRenderTime 50ms CodeModel.GetById 44ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

/jEdit/tags/jedit-4-0-pre5/org/gjt/sp/jedit/options/OverviewOptionPane.java

#
Java | 63 lines | 31 code | 5 blank | 27 comment | 0 complexity | f09995edc29b43ce4cf821b148b93b1a MD5 | raw file
 1/*
 2 * OverviewOptionPane.java - Corny welcome screen
 3 * :tabSize=8:indentSize=8:noTabs=false:
 4 * :folding=explicit:collapseFolds=1:
 5 *
 6 * Copyright (C) 2001 Slava Pestov
 7 *
 8 * This program is free software; you can redistribute it and/or
 9 * modify it under the terms of the GNU General Public License
10 * as published by the Free Software Foundation; either version 2
11 * of the License, or any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
21 */
22
23package org.gjt.sp.jedit.options;
24
25//{{{ Imports
26import javax.swing.*;
27import java.awt.*;
28import java.io.IOException;
29import org.gjt.sp.jedit.*;
30import org.gjt.sp.util.Log;
31//}}}
32
33public class OverviewOptionPane extends AbstractOptionPane
34{
35	//{{{ OverviewOptionPane constructor
36	public OverviewOptionPane()
37	{
38		super("overview");
39	} //}}}
40
41	//{{{ _init() method
42	public void _init()
43	{
44		setLayout(new BorderLayout());
45		JEditorPane ep = new JEditorPane();
46		try
47		{
48			ep.setPage(getClass().getResource("overview.html"));
49		}
50		catch(IOException io)
51		{
52			Log.log(Log.ERROR,this,io);
53		}
54		ep.setEditable(false);
55		JScrollPane scroller = new JScrollPane(ep);
56		scroller.setPreferredSize(new Dimension(400,0));
57		add(BorderLayout.CENTER,scroller);
58	} //}}}
59
60	//{{{ _save() method
61	public void _save() {}
62	//}}}
63}