- ____, ____ connect to Java code that allows responses to things that happen
- ____, ____ Declare a multiline object for output
- ____, ____ Instantiate a multiline object for output
- ____, ____ Change the color and style of letters that appear for output
- ____, ____ Allow multiple lines for output
- ____, ____ Display the multiline output object on the panel.
- ____, ____ Display output on a multiline object for output
|
bigbox.setText("what displays?");
private JTextArea bigbox;
import java.awt.event.*;
bigbox = new JTextArea(" ",3,25);
bigbox.setFont(new Font("Serif", Font.PLAIN, 14));
add(bigbox);
bigbox.setLineWrap(true);
|
-
above the class definition
public class PanelMadLib extends JPanel {
-
between the class definition and the constructor
public PanelMadLib( ){
- Inside the constructor
}
- Inside the actionPerformed method of a listener
private class Listener implements ActionListener {
public void actionPerformed(ActionEvent e) {
|