All pastes #187280 Raw Edit

Anonymous

public text v1 · immutable
#187280 ·published 2006-09-30 23:45 UTC
rendered paste body
import java.awt.event.*;
import javax.swing.*;
import java.awt.*;
import java.net.*;
import java.io.*;


   	public class showname implements ActionListener{

       JFrame f = new JFrame();
       Container c = f.getContentPane();
       JLabel L1 = new JLabel("net:");
       JTextField T1 = new JTextField();
       JButton B1 = new JButton("Show");

   	public static void main (String agr[]){
      showname a = new showname();
      a.createFrame();
      int i = 0;
	    try{
			while(i ==0 ){
				ConnectionDetector Conn = new ConnectionDetector();
				Conn.detect();
				System.out.println(Conn.detect());
			 }
		}catch(Exception ae){
			ae.printStackTrace();
		}
	}

  public void createFrame() {
      c.setLayout(null);
      L1.setBounds(20,0,50,20);
      T1.setBounds(50,0,50,20);



    c.add(L1);
    c.add(T1);

	f.setUndecorated(true);
    f.setSize(100,20);
    f.setVisible(true);

 }
   public void actionPerformed(ActionEvent e) {



   }
}