Java Code Examples for javax.swing.JTextArea#invalidate()
The following examples show how to use
javax.swing.JTextArea#invalidate() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: PruebaCorrelacionIdiomas.java From chuidiang-ejemplos with GNU Lesser General Public License v3.0 | 6 votes |
/** * A�ade el textArea para mostrar los resultados y el texto generado. * @param contenedor Contendor al que a�adir. * @param constraints Se ignora */ private void anhadeTextAreaParaResultados(Container contenedor ) { areaResultados = new JTextArea(); areaResultados.setLineWrap(true); areaResultados.setWrapStyleWord(true); areaResultados.setEditable(false); areaResultados.setColumns(40); areaResultados.invalidate(); JScrollPane scrollLista = new JScrollPane(areaResultados); scrollLista.setBorder(new TitledBorder("Resultados")); GridBagConstraints constraints = new GridBagConstraints(); constraints.gridx = 0; constraints.gridy = 2; constraints.gridwidth = 4; constraints.gridheight = 1; constraints.weightx = 1.0; constraints.weighty = 1.0; constraints.fill = GridBagConstraints.BOTH; contenedor.add(scrollLista, constraints); }
Example 2
Source File: PruebaCorrelacionIdiomas.java From chuidiang-ejemplos with GNU Lesser General Public License v3.0 | 6 votes |
/** * A�ade el textarea para el texto que se va a analizar * @param contenedor contendor en el que añadirlo. */ private void anhadeTextAreaParaTextoAnalizado(Container contenedor) { areaDeTextoAAnalizar = new JTextArea(); areaDeTextoAAnalizar.setLineWrap(true); areaDeTextoAAnalizar.setWrapStyleWord(true); areaDeTextoAAnalizar.setColumns(40); areaDeTextoAAnalizar.invalidate(); JScrollPane scroll = new JScrollPane(areaDeTextoAAnalizar); scroll.setBorder(new TitledBorder("Escribe o copia aquí un texto")); GridBagConstraints constraints = new GridBagConstraints(); constraints.gridx = 0; constraints.gridy = 1; constraints.gridwidth = 4; constraints.gridheight = 1; constraints.weightx = 1.0; constraints.weighty = 1.0; constraints.fill = GridBagConstraints.BOTH; contenedor.add(scroll, constraints); }
Example 3
Source File: PruebaCorrelacionIdiomas.java From chuidiang-ejemplos with GNU Lesser General Public License v3.0 | 6 votes |
private void anhadeTextAreaParaResultados(Container contenedor ) { areaResultados = new JTextArea(); areaResultados.setLineWrap(true); areaResultados.setWrapStyleWord(true); areaResultados.setEditable(false); areaResultados.setColumns(40); areaResultados.invalidate(); JScrollPane scrollLista = new JScrollPane(areaResultados); scrollLista.setBorder(new TitledBorder("Resultados")); GridBagConstraints constraints = new GridBagConstraints(); constraints.gridx = 0; constraints.gridy = 2; constraints.gridwidth = 4; constraints.gridheight = 1; constraints.weightx = 1.0; constraints.weighty = 1.0; constraints.fill = GridBagConstraints.BOTH; contenedor.add(scrollLista, constraints); }
Example 4
Source File: PruebaCorrelacionIdiomas.java From chuidiang-ejemplos with GNU Lesser General Public License v3.0 | 6 votes |
private void anhadeTextAreaParaTextoAnalizado(Container contenedor) { areaDeTextoAAnalizar = new JTextArea(); areaDeTextoAAnalizar.setLineWrap(true); areaDeTextoAAnalizar.setWrapStyleWord(true); areaDeTextoAAnalizar.setColumns(40); areaDeTextoAAnalizar.invalidate(); JScrollPane scroll = new JScrollPane(areaDeTextoAAnalizar); scroll.setBorder(new TitledBorder("Escribe o copia aqu� un texto")); GridBagConstraints constraints = new GridBagConstraints(); constraints.gridx = 0; constraints.gridy = 1; constraints.gridwidth = 4; constraints.gridheight = 1; constraints.weightx = 1.0; constraints.weighty = 1.0; constraints.fill = GridBagConstraints.BOTH; contenedor.add(scroll, constraints); }