I'm currently working on a Java Program using JFrames. I'm supposed to create a URLFrame in which I can input a web address and ask the program to fetch it and display it in the Frame. So far I am stuck and would like input on if I'm on the right track and where to go from here:
import javax.swing.*;
public class URLFrame extends JFrame {
private JPanel panel;
private JLabel messagelLabel;
private JTextField enterAddress;
private JButton fetchButton;
private JTextArea displayPage;
private JButton displayScriptCount;
private JButton writePage;
private JTextArea checkStatus;
public URLFrame(){
setTitle("Enter Address");
setSize(WINDOW_WIDTH, WINDOW HEIGHT);
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
buildPanel();
add(panel);
setVisible(true);
}
}