Results 1 to 2 of 2
  1. #1
    cmp_sft is offline Member
    Join Date
    Jan 2011
    Posts
    2
    Rep Power
    0

    Default list files on the java server

    hi everyone.
    ı do java project. the project is transfer client and server files. but ı want to display list of the servers files on the client .
    sorry my English.

  2. #2
    cmp_sft is offline Member
    Join Date
    Jan 2011
    Posts
    2
    Rep Power
    0

    Default

    hi everyone.
    ı found my problem
    code
    public void Display(){

    JFrame frame = new JFrame();
    frame.setTitle("Client");

    FlowLayout layout = new FlowLayout();
    layout.setAlignment(FlowLayout.LEFT);

    JLabel lblFile = new JLabel("Filename:");

    txtFile = new JTextField();
    txtFile.setPreferredSize(new Dimension(150,30));

    JButton btnTransfer = new JButton("Transfer");
    btnTransfer.addActionListener(this);

    JPanel mainPanel = new JPanel();
    mainPanel.setLayout(layout);
    mainPanel.add(lblFile);
    mainPanel.add(txtFile);
    mainPanel.add(btnTransfer);

    frame.getContentPane().add(mainPanel);
    frame.pack();
    frame.setVisible(true);
    }

Similar Threads

  1. can you tell how transfer a List eg. created as...between files jsp/java
    By lse123 in forum JavaServer Pages (JSP) and JSTL
    Replies: 21
    Last Post: 02-10-2010, 08:52 AM
  2. how to get the list of war files
    By vijayabaskar in forum Java Servlet
    Replies: 0
    Last Post: 04-03-2009, 08:39 AM
  3. how to list certain files in a given directory in java
    By corpusluteum in forum New To Java
    Replies: 6
    Last Post: 09-24-2008, 12:19 AM
  4. Replies: 20
    Last Post: 12-17-2007, 03:20 PM
  5. How can I get list of files in a directory
    By karma in forum New To Java
    Replies: 2
    Last Post: 12-14-2007, 11:20 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •