Why, then when I do
Code:
JFrame.setDefaultLookAndFeelDecorated(true);
JFrame frame = new JFrame("Hosts Editor");
frame.setLayout(new FlowLayout());
JTextField jtf = new JTextField("");
JButton submit = new JButton("Submit Addresses");
.........
Code:
frame.add(jtf);
submit.addActionListener(new HC(s));
frame.add(submit);
frame.setVisible(true);
frame.pack();
it returns a barely-visible vertical line in which to type (expected, as I have no width arguments; works perfectly if I put arguments), but if I replace JTextField with JTextArea in all instances, it returns just the button; no text field or area at all.