Whois Gui Application
Submitted by sunny047 on Friday, July 22, 2011 - 00:56.
Language
- import java.awt.*;
- import javax.swing.*;
- import java.awt.event.*;
- import java.net.*;
- import java.io.*;
- {
- JTextField t1;
- TextArea t2;
- JButton b1;
- FlowLayout f;
- JProgressBar pb;
- Timer timer;
- final static int interval = 1000;
- int cc=0;
- { super(s);
- t2.setEditable(false);
- pb.setValue(0);
- pb.setStringPainted(true);
- setLayout(f);
- add(t1);
- add(b1);
- add(pb);
- add(t2);
- b1.addActionListener(new ButtonListener());
- setResizable(false);
- setLocation(250,250);
- resize(400,255);
- show();
- {
- try{
- int c;
- args[0]=t1.getText();
- byte buf[]=str.getBytes();
- out.write(buf);
- while((c=in.read())!= -1)
- {
- st1=st1+(char)c+"";
- cc=cc+1;
- pb.setValue(cc);
- }
- t2.setText(st1);
- timer.stop();
- b1.setEnabled(true);
- s.close();
- }
- {
- }
- {
- }
- }});}
- b1.setEnabled(false);
- pb.setValue(0);
- cc=0;
- timer.start();
- }
- }
- {
- @Override
- public void run() {
- try {
- getSystemLookAndFeelClassName());
- }
- Whois ob = new Whois("Whois");
- }
- });
- }
- }
Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. After downloading it, you will need a program like Winzip to decompress it.
Virus note: All files are scanned once-a-day by SourceCodester.com for viruses, but new viruses come out every day, so no prevention program can catch 100% of them.
FOR YOUR OWN SAFETY, PLEASE:
1. Re-scan downloaded files using your personal virus checker before using it.
2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.
Add new comment
- 83 views