pls,
i've being trying to implement the action event of the code below and whenever i try to use JDialog box to create an application where i can for instance click a button and a box appear with option to select,also coldn't use a text area.pls how do i go about it.pls, send code along.
thanks.
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
public class FontSize extends JFrame{
private
String[] size;
private JComboBox box;
private JTextArea area;
public FontSize(){
Container c=getContentPane();
c.setLayout(new FlowLayout());
size=new String[]{"8","10","12","14","16","17","18","20","26"};
area=new JTextArea(300,300);
c.add(new JScrollPane(area));
c.add(box=new JComboBox(size));
setSize(350,350);
setVisible(true);
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
}
public static void main(String[] arg){
FontSize();
}
}