Applet « JTextArea « Java Swing Q&A





1. JNI - connecting STDOUT to a JTextArea?    stackoverflow.com

I am wondering if it is possible to connect STDOUT of a C/C++ dll to a JTextArea? The thing is, I am using 3rd party DLL's so I can't manually alter ...

2. Help about JTextArea in applet!    coderanch.com

/* * use: >appletviewer CopyTest.java */ import java.awt.*; import java.awt.event.*; import javax.swing.*; import javax.swing.text.*; public class CopyTest extends JApplet { public void init() { JTextArea ta = new JTextArea(5,30); ta.setMargin(new Insets(5,5,5,5)); ta.setLineWrap(true); ta.setWrapStyleWord(true); JPanel panel = new JPanel(); panel.add(ta); JTextField tf = new JTextField(16); JPanel south = new JPanel(); south.add(tf); setJMenuBar(getMenuBar()); getContentPane().setLayout(new BorderLayout()); getContentPane().add(panel); getContentPane().add(south, "South"); } ...

4. Temporary textarea in game applet    coderanch.com

I'm writing an applet to play chess and I'd like the game history (just a list of moves) to appear in a textarea on screen. I don't mind if it fills the whole frame or is just overlaid on top of the game. I need to be able to output and input text through it. I also need to remove it ...

5. Select and then Copy Text (JTextArea in an Applet)    forums.oracle.com

I wrote a test applet to copy text to the clipboard but obviously it didnt work because of the security manager. I realize I can sign the applet for this though. Anyway, my workaround is (because theres half a meg of text) is to provide a button that automatically selects all the text and then have the user manually copy it. ...