@Override public void setEditable(boolean editable) { textArea.setEditable(editable); }
private Component makeCell(JNode node, int column) { if (column == 0) { JLabel label = new JLabel(node.makeLongString() + " ", node.getIcon(), SwingConstants.LEFT); label.setFont(font); label.setOpaque(true); label.setToolTipText(label.getText()); return label; } if (!node.hasDescString()) { return emptyLabel; } RSyntaxTextArea textArea = CodeArea.getDefaultArea(mainWindow); textArea.setLayout(new GridLayout(1, 1)); textArea.setEditable(false); textArea.setSyntaxEditingStyle(SyntaxConstants.SYNTAX_STYLE_JAVA); textArea.setText(" " + node.makeDescString()); textArea.setRows(1); textArea.setColumns(textArea.getText().length() + 1); if (highlightText != null) { SearchContext searchContext = new SearchContext(highlightText); searchContext.setMatchCase(!highlightTextCaseInsensitive); searchContext.setMarkAll(true); SearchEngine.markAll(textArea, searchContext); } return textArea; }
textArea.setMarkOccurrences(true); textArea.setClearWhitespaceLinesEnabled(false); textArea.setEditable(false); textArea.setAntiAliasingEnabled(true); textArea.setCodeFoldingEnabled(true);
public void setEditavel(String editavel) { boolean edit = Boolean.parseBoolean(editavel); textArea.setEditable(edit); }
restoreThisRevisionButton = new javax.swing.JButton(); rSyntaxTextArea.setEditable(false); rSyntaxTextArea.setBackground(new java.awt.Color(204, 204, 204)); rSyntaxTextArea.setColumns(20);
private void buildCodeSection(Container container) { codeTextArea = new RSyntaxTextArea(20, 60); //codeTextArea.setCodeFoldingEnabled(false); Theme t = loadDarkTheme(); if(t != null) //Theme was load t.apply(codeTextArea); codeTextArea.setEditable(false); RTextScrollPane sp = new RTextScrollPane(codeTextArea); container.add(sp, BorderLayout.CENTER); }
/** * Set the source code and highlighting. * @param sourceCode The Code that should be highlighted. * @param codeStyle The kind of highlighting. */ public void setText(String sourceCode, String codeStyle){ this.sourceCode = sourceCode; this.codeStyle = codeStyle; textArea.setSyntaxEditingStyle(codeStyle); textArea.setEditable(false); textArea.setText(sourceCode); this.updateUI(); }
outputField.setCurrentLineHighlightColor(Color.WHITE); outputField.setSyntaxEditingStyle(SyntaxConstants.SYNTAX_STYLE_JAVASCRIPT); outputField.setEditable(false); outputField.setPopupMenu(new JPopupMenu()); // no context menu on right-click
textArea.setEditable(true); textArea.setLineWrap(true); textArea.setWrapStyleWord(false);
jwtOuputField.setCurrentLineHighlightColor(Color.WHITE); jwtOuputField.setSyntaxEditingStyle(SyntaxConstants.SYNTAX_STYLE_JAVASCRIPT); jwtOuputField.setEditable(false);
sourceTextArea.setFont(new Font("monospaced", Font.PLAIN, 12)); sourceTextArea.setCodeFoldingEnabled(true); sourceTextArea.setEditable(false); sourceTextArea.setLineWrap(true); sourceTextArea.setWrapStyleWord(true);
public SQLPane() { setBorder(new TitledBorder(I18N.tr("SQL syntax"))); setLayout(new BorderLayout()); RSyntaxTextArea textArea = new RSyntaxTextArea(); textArea.setLineWrap(false); textArea.setSyntaxEditingStyle(SyntaxConstants.SYNTAX_STYLE_SQL); textArea.setEditable(false); textArea.setText(details); RTextScrollPane scrollPane = new RTextScrollPane(textArea); add(scrollPane); }
attackDescriptionTextArea.setEditable(false); attackDescriptionTextArea.setBackground(getBackground()); attackDescriptionTextArea.setColumns(20);
jwtArea.setCurrentLineHighlightColor(Color.WHITE); jwtArea.setSyntaxEditingStyle(SyntaxConstants.SYNTAX_STYLE_JAVASCRIPT); jwtArea.setEditable(true); jwtArea.setPopupMenu(new JPopupMenu()); RTextScrollPane sp = new RTextScrollPane(jwtArea);
public void iniciarExecucao(boolean depurar) { limparErroExecucao(); depurando = depurar; ultimaPosicaoCursor = textArea.getCaretPosition(); textArea.setEditable(false); textArea.setFocusable(false); textArea.setRequestFocusEnabled(false); textArea.setHighlightCurrentLine(false); resetaSelecaoDoTexto(); // corrige o problema descrito na issue #157 linhasCodigoDobradas = getLinhasCodigoDobradas(); }
textArea.setSyntaxEditingStyle(SyntaxConstants.SYNTAX_STYLE_GROOVY); textArea.setText(text); textArea.setEditable(false); jScrollPaneStep = new RTextScrollPane(textArea); jXTreeTable.setVisibleRowCount(Math.min(5, jXTreeTable.getRowCount()));
public SamlTabController(IBurpExtenderCallbacks callbacks, boolean editable, CertificateTabController certificateTabController) { this.editable = editable; this.helpers = callbacks.getHelpers(); samlGUI = new SamlMain(this); textArea = samlGUI.getTextArea(); addTextAreaKeyListener(); textArea.setEditable(editable); textArea.setEnabled(true); xmlHelpers = new XMLHelpers(); xswHelpers = new XSWHelpers(); httpHelpers = new HTTPHelpers(); this.certificateTabController = certificateTabController; this.certificateTabController.addObserver(this); }
if (content == null) { textArea.setText(null); textArea.setEditable(false); setGUIEditable(false); resetInformationDisplay(); orgSAMLMessage = SAMLMessage; textArea.setText(SAMLMessage); textArea.setEditable(editable); setGUIEditable(editable);
public void finalizarExecucao(ResultadoExecucao resultadoExecucao) { depurando = false; textArea.setEditable(true); textArea.removeAllLineHighlights(); if (tagDetalhado != null) { textArea.getHighlighter().removeHighlight(tagDetalhado); tagDetalhado = null; } textArea.setFocusable(true); dobrarLinhasCodigo(linhasCodigoDobradas); textArea.setRequestFocusEnabled(true); textArea.setCaretPosition(ultimaPosicaoCursor); textArea.setHighlightCurrentLine(true); textArea.requestFocusInWindow(); if (resultadoExecucao.getModoEncerramento() == ModoEncerramento.ERRO) { destacarErroExecucao(resultadoExecucao.getErro().getLinha(), resultadoExecucao.getErro().getColuna()); } else { centralizarCodigoFonte(); } }