Examples of NonWrappingTextPane


Examples of com.qspin.qtaste.ui.jedit.NonWrappingTextPane

                tabbedPane.setSelectedIndex(RESULTS_INDEX);
                debugPanel.setVisible(false);
                //this.getTe
                NonWrappingTextPane[] panes = this.getVisibleTextPanes();
                for (int i = 0; i < panes.length; i++) {
                    NonWrappingTextPane textPane = panes[i];
                    textPane.getDefaultLineNumberPanel().update(event);
                }
                break;
            case BREAK:
                startExecutionButton.setVisible(true);
                stepOverExecutionButton.setVisible(true);
                stepIntoExecutionButton.setVisible(true);
                debugPanel.setVisible(true);
                sourcePanel.setDividerLocation(sourcePanel.getDividerLocation() - 150);
                // update the button status
//                stopExecutionButton.setVisible(true);
                //getVarButton.setVisible(true);
                tabbedPane.setSelectedIndex(SOURCE_INDEX);
                getTcSourcePane().setVisible(true);
                // set the current line highlighted
                Object extraData = event.getExtraData();
                if (extraData instanceof Breakpoint) {
                    Breakpoint breakpoint = (Breakpoint) extraData;

                    // load the file into the tabbedPaned
                    File f = new File(breakpoint.getFileName());
                    NonWrappingTextPane textPane = null;
                    if (f.exists() && f.canRead()) {

                        textPane = loadTestCaseSource(f, true, f.getName().equals(StaticConfiguration.TEST_SCRIPT_FILENAME));
                        tabbedPane.setSelectedIndex(TestCasePane.SOURCE_INDEX);
                        // now go to the given line
                        textPane.selectLine(breakpoint.getLineIndex());
                        textPane.getLineNumberPanel().update(event);
                    }
                }
                break;
        }
    }
View Full Code Here

Examples of com.qspin.qtaste.ui.jedit.NonWrappingTextPane

            }
        }
    }

    public void closeCurrentEditorFile() {
        NonWrappingTextPane textPane = getActiveTextPane();
        if (textPane != null) {
            if (!textPane.isTestScript) {
                int tabIndex = editorTabbedPane.getSelectedIndex();
                if (tabIndex != -1) {
                    // check if the textpane must be saved

                    if (textPane.isModified()) {
                        if (JOptionPane.showConfirmDialog(null, "Do you want to save your current modification in '" + textPane.getFileName() + "?'",
                                "Save confirmation", JOptionPane.YES_NO_OPTION) == JOptionPane.YES_OPTION) {
                            textPane.save();
                        }
                    }
                    editorTabbedPane.remove(tabIndex);
                }
            }
View Full Code Here

Examples of com.qspin.qtaste.ui.jedit.NonWrappingTextPane

            closeCurrentEditorFile();
        }

        @Override
        public boolean isEnabled() {
            NonWrappingTextPane textPane = getActiveTextPane();
            if (textPane != null) {
                if (!textPane.isTestScript) {
                    return true;
                }
            }
View Full Code Here

Examples of org.owasp.jbrofuzz.util.NonWrappingTextPane

        BorderFactory.createTitledBorder(" Select a Fuzzer "),
        BorderFactory.createEmptyBorder(1, 1, 1, 1)));
    // payloadsPanel.setBounds(460, 150, 420, 300);
    // this.add(payloadsPanel);

    fuzzerInfoTextArea = new NonWrappingTextPane();
    fuzzerInfoTextArea.setBorder(BorderFactory.createCompoundBorder(
        BorderFactory.createTitledBorder(" Fuzzer Information "),
        BorderFactory.createEmptyBorder(1, 1, 1, 1)));
    fuzzerInfoTextArea.putClientProperty("charset", "UTF-8");
    fuzzerInfoTextArea.setEditable(false);
    fuzzerInfoTextArea.setVisible(true);
    fuzzerInfoTextArea.setFont(new Font("Verdana", Font.BOLD, 10));
    fuzzerInfoTextArea.setMargin(new Insets(1, 1, 1, 1));
    fuzzerInfoTextArea.setBackground(Color.WHITE);
    fuzzerInfoTextArea.setForeground(Color.BLACK);

    // Right click: Cut, Copy, Paste, Select All
    AbstractPanel.popupText(fuzzerInfoTextArea, false, true, false, true);

    final JScrollPane viewTextScrollPane = new JScrollPane(
        fuzzerInfoTextArea);
    viewTextScrollPane.setVerticalScrollBarPolicy(20);
    viewTextScrollPane.setHorizontalScrollBarPolicy(30);
    // viewTextScrollPane.setPreferredSize(new Dimension(400, 100));

    payloadInfoTextArea = new NonWrappingTextPane();
    payloadInfoTextArea.setBorder(BorderFactory.createCompoundBorder(
        BorderFactory.createTitledBorder(" Payload Properties "),
        BorderFactory.createEmptyBorder(1, 1, 1, 1)));
    payloadInfoTextArea.setEditable(false);
View Full Code Here

Examples of org.owasp.jbrofuzz.util.NonWrappingTextPane

    final boolean wrapText = JBroFuzz.PREFS.getBoolean(JBroFuzzPrefs.FUZZING[2].getId(), false);

    if (wrapText) {
      requestPane = new JTextPane();
    } else {
      requestPane = new NonWrappingTextPane();
    }

    requestPane.putClientProperty("charset", "UTF-8");
    requestPane.setEditable(true);
    requestPane.setVisible(true);
View Full Code Here

Examples of org.owasp.jbrofuzz.util.NonWrappingTextPane

    plScrollPane.setVerticalScrollBarPolicy(20);
    plScrollPane.setHorizontalScrollBarPolicy(30);
    plScrollPane.setPreferredSize(new Dimension(200, SIZE_Y - 190));
    // payloadsPanel.add(payloadsTableScrollPane);

    fInfoArea = new NonWrappingTextPane();

    fInfoArea.putClientProperty("charset", "UTF-8");
    fInfoArea.setEditable(false);
    fInfoArea.setVisible(true);
    fInfoArea.setFont(new Font("Verdana", Font.BOLD, 10));
View Full Code Here

Examples of org.owasp.jbrofuzz.util.NonWrappingTextPane

            5, 5)));

    treePanel.add(treeScrollPanel);

    // The right hand side header area
    hTxTArea = new NonWrappingTextPane();
    hTxTArea.addKeyListener(this);
    hTxTArea.setBorder(BorderFactory.createEmptyBorder(5, 5, 5, 5));

    // hTxTArea = new NonWrappingTextPane();
    hTxTArea.putClientProperty("charset", "UTF-8");
    hTxTArea.setEditable(true);
    hTxTArea.setVisible(true);
    hTxTArea.setFont(new Font("Verdana", Font.PLAIN, 12));

    hTxTArea.setMargin(new Insets(1, 1, 1, 1));
    hTxTArea.setBackground(Color.WHITE);
    hTxTArea.setForeground(Color.BLACK);
    // Set the editor kit responsible for highlighting
    hTxTArea.setEditorKit(new StyledEditorKit() {

      /**
       *
       */
      private static final long serialVersionUID = -4550261337511448681L;

      @Override
      public Document createDefaultDocument() {
        return new TextHighlighter();
      }

    });

    // Right click: Cut, Copy, Paste, Select All
    // popupText(hTxTArea, true, true, true, true);

    final JScrollPane hScrollPane = new JScrollPane(hTxTArea);
    hScrollPane.setVerticalScrollBarPolicy(20);
    hScrollPane.setHorizontalScrollBarPolicy(30);

    final JPanel headerPanel = new JPanel(new BorderLayout());
    headerPanel.setBorder(BorderFactory.createCompoundBorder(BorderFactory
        .createTitledBorder(" Header "), BorderFactory
        .createEmptyBorder(5, 5, 5, 5)));

    headerPanel.add(hScrollPane);

    // The right hand side information area
    iTxTArea = new NonWrappingTextPane();
    iTxTArea.addKeyListener(this);
    iTxTArea.setBorder(BorderFactory.createEmptyBorder(5, 5, 5, 5));
    iTxTArea.setEditable(false);
    iTxTArea.setFont(new Font("Verdana", Font.BOLD, 10));
    // Right click: Cut, Copy, Paste, Select All
    // popupText(iTxTArea, false, true, false, true);

    final JScrollPane iScrollPane = new JScrollPane(iTxTArea);
    iScrollPane.setVerticalScrollBarPolicy(20);
    iScrollPane.setHorizontalScrollBarPolicy(30);

    final JPanel infoPanel = new JPanel(new BorderLayout());
    infoPanel.setBorder(BorderFactory.createCompoundBorder(BorderFactory
        .createTitledBorder(" Information "), BorderFactory
        .createEmptyBorder(5, 5, 5, 5)));

    infoPanel.add(iScrollPane);

    // The right hand side comment area
    cTxTArea = new NonWrappingTextPane();
    cTxTArea.addKeyListener(this);
    cTxTArea.setBorder(BorderFactory.createEmptyBorder(5, 5, 5, 5));
    cTxTArea.setEditable(false);
    cTxTArea.setFont(new Font("Verdana", Font.BOLD, 10));
    // Right click: Cut, Copy, Paste, Select All
View Full Code Here

Examples of org.owasp.jbrofuzz.util.NonWrappingTextPane

      listTextArea = new JTextPane();

    } else {

      listTextArea = new NonWrappingTextPane();
     
    }

    // Refine the Text Area
    listTextArea.setFont(new Font("Monospaced", Font.PLAIN, 12));
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.