//RandomPoints.java import java.awt.*; import javax.swing.*; public class RandomPoints extends JApplet { int rows, cols, percent; public void init() { String input; input = JOptionPane.showInputDialog("Enter # rows"); rows = Integer.parseInt(input); input = JOptionPane.showInputDialog("Enter # columns"); cols = Integer.parseInt(input); input = JOptionPane.showInputDialog("Percentage filled"); percent = Integer.parseInt(input); JTextArea textarea = new JTextArea(rows,cols); textarea.setLineWrap( true ); textarea.setFont( new Font("Courier",Font.BOLD,18) ); for (int i=1; i<=rows; i++) { for (int j=1; j<=cols; j++) if (Math.random()