ThreeB 1.1
Public Member Functions
ThreeBHelp Class Reference

3B plugin cclass to bring up a basic help window. More...

List of all members.

Public Member Functions

void run (String arg)

Detailed Description

3B plugin cclass to bring up a basic help window.

Definition at line 17 of file ThreeBHelp.java.


Member Function Documentation

void ThreeBHelp::run ( String  arg) [inline]

Definition at line 19 of file ThreeBHelp.java.

References Util::read().

    {
        String path = getClass().getResource("img/").toString();
        Reader htmlstream = new InputStreamReader(getClass().getClassLoader().getResourceAsStream("instructions.html"));
        String html = Util.read(htmlstream);

        html = html.replaceAll("img/", path);

        JFrame w = new JFrame("3B help");

        JEditorPane l = new JEditorPane();
        try{
            l.setPage(getClass().getResource("instructions.html").toString());
        }
        catch(IOException e)
        {}
        //l.resize(new java.awt.Dimension(800,600));

        JScrollPane s = new JScrollPane(l, JScrollPane.VERTICAL_SCROLLBAR_ALWAYS, JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);

        java.awt.Dimension  d = new java.awt.Dimension(600, 600);

        w.add(s);
        w.pack();
        w.setSize(d);
        w.setVisible(true);
        
    }

The documentation for this class was generated from the following file: