1 Reply Latest reply: Apr 12, 2013 5:20 AM by EJP RSS

    program functionality not working

    1002712
      i want output like this

      WHILE TRANSFERING DIFFERENT FILES I WANT TO REQUIREMNET TO TRANSFER FILES USING UDP

      WITH CHUNKING THE MEMORY SIZE IN BITS

      TO MULTIPLE CLIENTS

      http://s8.postimg.org/vmo5xu3rp/qwer.png




      import javax.swing.*;
      import java.awt.*;
      import java.awt.event.ActionEvent;
      import java.awt.event.ActionListener;
      import javax.swing.JButton;
      import javax.swing.JFileChooser;
      import javax.swing.JFrame;
      import javax.swing.JTextField;
      import java.io.File;


      public class SimpleJTableExample
           {
      public static void main(String[] args){
      new SimpleJTableExample();
      }

      public SimpleJTableExample(){
      JFrame frame = new JFrame("Creating JTable Component Example!");
      JPanel panel = new JPanel();





      JPanel pan = new JPanel(new GridLayout(0,2));
      JLabel l=new JLabel("Select ip");
      JComboBox combo=new JComboBox();
      combo.addItem("172.16.3.2");
      combo.addItem("172.16.3.2");
      combo.addItem("172.16.3.2");
      combo.addItem("172.16.3.2");
      JLabel m=new JLabel("Type");
      JComboBox combo1=new JComboBox();
      combo1.addItem("doc");
      combo1.addItem("xsv");
      combo1.addItem("txt");
      combo1.addItem("pdf");
      JLabel n=new JLabel("Message");
      JTextArea ta = new JTextArea(5, 50);

      JScrollPane scrollPane = new JScrollPane(ta);
      ta.setEditable(true);


      JButton bm=new JButton("Browse");
      JFileChooser chooser = new JFileChooser();
      File f = new File(" ");
      chooser.setCurrentDirectory(f);

      chooser.showOpenDialog(null);


      JButton b=new JButton("Send");
      JButton b1=new JButton("RESET");
           
      pan.add(l);
      pan.add(combo);
      pan.add(m);
      pan.add(combo1);
      pan.add(n);
      pan.add(ta);
      pan.add(bm);
      pan.add(b);
      pan.add(b1);


      frame.add(pan,BorderLayout.NORTH);
      frame.add(panel,BorderLayout.SOUTH);
      frame.setSize(1000,1000);
      frame.setVisible(true);
      frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
      }
      }


      PLEASE ANYBODY HELP ME

      I WANT SIMILAR TO SAMPLE OUTPUT

      Edited by: 999709 on Apr 12, 2013 2:58 AM