Hi, I'm new here
NetBeans IDE Version : 7.4
Interface : GUI (Using Drag and Drop)

Question I would like to ask are :
1) How to show text in the Text Field, Text Area and Label. I going to put Local IP Address and Public IP Address into it. I would like it to automatically show without press any button. If can't output into the Text Field or other else. Is that another method ?

packages bandwidth;

import java.net.InetAddress;

public class bandwidth {

     public static void main(String[] args) throws IOException {

     InetAddress ipaddress = InetAddress.getLocalHost();
      InetAddress host = InetAddress.getByName("www.google.com");
     //Command line print work for me, but I would like to print on TextField, TextArea or Label.
     //Any idea of write that code ?
     System.out.print(ipaddress +"\n");


Thank You.