@@ -0,0 +1,2226 @@
+%0Apackage gui;%0A%0Aimport javax.swing.*;%0Aimport java.awt.*;%0Aimport java.awt.event.*;%0Aimport localizador.localizador;%0A%0A/**%0A *%0A * @author Luis%0A */%0Apublic class grafico implements ActionListener %7B%0A    %0A    private JButton botao;%0A    private JFrame J;%0A    private JPanel conteudo;%0A    private JTextField text1;%0A    private JLabel l1, l2, l3, l4, ll1, ll2, ll3;%0A    localizador local;    %0A    %0A    public grafico() %7B%0A        local = new localizador();%0A        this.J = new JFrame();%0A        J.setLocation(200, 200);%0A        J.setTitle(%22Localizador de url's%22);%0A        J.setSize(460, 300);%0A        %0A        this.conteudo = (JPanel) J.getContentPane();%0A        conteudo.setLayout(null);%0A        %0A        this.text1 = new JTextField(20);%0A        this.ll1 = new JLabel(%22ip%22);%0A        this.ll2 = new JLabel(%22endere%C3%A7o%22);%0A        this.ll3 = new JLabel(%22dominio%22);%0A        this.l1 = new JLabel(%22Digite o ip ex: (127.0.0.1) ou a url ex (www.uol.com.br)%22);%0A        this.l2 = new JLabel(%22-%22);%0A        this.l3 = new JLabel(%22-%22);%0A        this.l4 = new JLabel(%22-%22);%0A        this.botao = new JButton(%22Acessar%22);%0A        %0A        text1.setBounds(20, 50, 380, 20);%0A        %0A        ll1.setBounds(20, 100, 80, 20);%0A        ll2.setBounds(20, 150, 80, 20);%0A        ll3.setBounds(20, 200, 80, 20);%0A        %0A        l1.setBounds(20, 20, 380, 20);%0A        l2.setBounds(120, 100, 380, 20);%0A        l3.setBounds(120, 150, 380, 20);%0A        l4.setBounds(120, 200, 380, 20);%0A        botao.setBounds(300, 80, 100, 20);%0A        %0A        conteudo.add(ll1);%0A        conteudo.add(ll2);%0A        conteudo.add(ll3);%0A        conteudo.add(l1);%0A        conteudo.add(l2);%0A        conteudo.add(l3);%0A        conteudo.add(l4);%0A        conteudo.add(text1);%0A        conteudo.add(botao);%0A        %0A     botao.addActionListener(this);%0A        J.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);%0A        J.setResizable(false);%0A        J.setVisible(true);%0A    %7D%0A   %0A    @Override%0A     public void actionPerformed(ActionEvent e)%7B%0A     String cmd = e.getActionCommand();%0A        if (cmd.equals(%22Acessar%22))%7B%0A            l2.setText(local.host(text1.getText())); %0A        l3.setText(local.ip(text1.getText())); %0A        l4.setText(local.canonical(text1.getText()));%0A        %7D%0A     %0A     %7D%0A%7D%0A

Create grafico.java