Examples of FSScrollPane


Examples of org.xhtmlrenderer.simple.FSScrollPane

          log.error("Unsupported link type pressed " + uri); //$NON-NLS-1$
        }
      }
    });

    final JScrollPane scroll = new FSScrollPane(xhtmlPanel);
    scroll.setWheelScrollingEnabled(true);
    scroll.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_AS_NEEDED);
    scroll.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED);

    add(scroll, BorderLayout.CENTER);
  }
View Full Code Here

Examples of org.xhtmlrenderer.simple.FSScrollPane

        // Put our panel in a scrolling pane. You can use
        // a regular JScrollPane here, or our FSScrollPane.
        // FSScrollPane is already set up to move the correct
        // amount when scrolling 1 line or 1 page
        FSScrollPane scroll = new FSScrollPane(panel);

        JFrame frame = new JFrame("Flying Saucer: " + panel.getDocumentTitle());
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        frame.getContentPane().add(scroll, BorderLayout.CENTER);
        frame.getContentPane().add(new JButton(new AbstractAction() {
View Full Code Here

Examples of org.xhtmlrenderer.simple.FSScrollPane

                // Put our panel in a scrolling pane. You can use
                // a regular JScrollPane here, or our FSScrollPane.
                // FSScrollPane is already set up to move the correct
                // amount when scrolling 1 line or 1 page
                FSScrollPane scroll = new FSScrollPane(panel);

                frame = new JFrame("Flying Saucer");
                frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
                frame.getContentPane().add(scroll);
                frame.pack();
View Full Code Here

Examples of org.xhtmlrenderer.simple.FSScrollPane

        // Put our panel in a scrolling pane. You can use
        // a regular JScrollPane here, or our FSScrollPane.
        // FSScrollPane is already set up to move the correct
        // amount when scrolling 1 line or 1 page
        FSScrollPane scroll = new FSScrollPane(panel);

        JFrame frame = new JFrame("Flying Saucer: " + panel.getDocumentTitle());
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        frame.getContentPane().add(BorderLayout.CENTER, scroll);
View Full Code Here

Examples of org.xhtmlrenderer.simple.FSScrollPane

        // Put our xpanel in a scrolling pane. You can use
        // a regular JScrollPane here, or our FSScrollPane.
        // FSScrollPane is already set up to move the correct
        // amount when scrolling 1 line or 1 page
        FSScrollPane scroll = new FSScrollPane(xpanel);
        scroll.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED);
        scroll.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);

        JPanel cont = new JPanel(new BorderLayout());
        cont.add(optionsPanel, BorderLayout.NORTH);
        cont.add(scroll, BorderLayout.CENTER);
        frame.getContentPane().add(cont);
View Full Code Here

Examples of org.xhtmlrenderer.simple.FSScrollPane

        // Put our panel in a scrolling pane. You can use
        // a regular JScrollPane here, or our FSScrollPane.
        // FSScrollPane is already set up to move the correct
        // amount when scrolling 1 line or 1 page
        FSScrollPane scroll = new FSScrollPane(panel);

        JFrame frame = new JFrame("Flying Saucer: " + panel.getDocumentTitle());
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        frame.getContentPane().add(scroll);
        frame.pack();
View Full Code Here

Examples of org.xhtmlrenderer.simple.FSScrollPane

    manager = new PanelManager();
        view = new ScalableXHTMLPanel(manager);
        view.addDocumentListener(manager);
        view.setCenteredPagedView(true);
        view.setBackground(Color.LIGHT_GRAY);
        scroll = new FSScrollPane(view);
    print_preview = new JButton();
    print = new JButton();

    loadCustomFonts();
View Full Code Here

Examples of org.xhtmlrenderer.simple.FSScrollPane

        // Put our panel in a scrolling pane. You can use
        // a regular JScrollPane here, or our FSScrollPane.
        // FSScrollPane is already set up to move the correct
        // amount when scrolling 1 line or 1 page
        FSScrollPane scroll = new FSScrollPane(panel);

        JFrame frame = new JFrame("Flying Saucer: " + panel.getDocumentTitle());
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        frame.getContentPane().add(scroll, BorderLayout.CENTER);
        frame.pack();
View Full Code Here

Examples of org.xhtmlrenderer.simple.FSScrollPane

        split.setBottomComponent(scrPane);


        JTabbedPane tabs = new JTabbedPane();
        final XHTMLPanel xhtmlPanel = new XHTMLPanel();
        tabs.addTab("HTML", new FSScrollPane(xhtmlPanel));

        final FSPagePanel pdfPanel = new FSPagePanel();
        tabs.addTab("PDF", new JScrollPane(pdfPanel));

        JPanel top = new JPanel(new BorderLayout());
View Full Code Here

Examples of org.xhtmlrenderer.simple.FSScrollPane

        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

        final XHTMLPanel panel = new XHTMLPanel();
        setAntiAlias(panel);

        FSScrollPane fsp = new FSScrollPane(panel);
        frame.getContentPane().add(fsp, BorderLayout.CENTER);

        frame.pack();
        frame.setSize(1024, 768);
        frame.setVisible(true);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.