• Post Reply Bookmark Topic Watch Topic
  • New Topic

program functionality not working  RSS feed

 
jackson peter
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i want output like this
sample out put



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
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!