20CYS383 - End Semester

Description:

Instructions

You are tasked with creating a file management system that handles different types of files such as documents, images, and videos. Write a Java program that demonstrates the functionality of the file management system with a Swing user interface. Use appropriate object-oriented programming concepts, interfaces, abstract classes, Swing components, and file-handling techniques. Your program should allow the user to perform the following operations:

  • Add a document by entering the document name, size, and type.
  • Add an image by entering the image name, size, and resolution.
  • Add a video by entering the video name, size, and duration.
  • Delete a file by selecting it from the displayed list.
  • Display details of all the files in the system.
  • Save the file details to a text file.
  • Load the file details from a text file and display them.

You have two hours to complete this task. Good luck!

Template

abstract class File {
    private String fileName;
    private long fileSize;

    public File(String fileName, long fileSize) {
        this.fileName = fileName;
        this.fileSize = fileSize;
    }

    public String getFileName() {
        return fileName;
    }

    public long getFileSize() {
        return fileSize;
    }
}

interface FileManager {
    void addFile(File file);
    void deleteFile(String fileName);
    void saveToFile();
    void loadFromFile();
    ArrayList<File> getFiles();
}
Organizer:


Problems

Problem Points AC Rate Users
[End Sem] File Management System 50 0.0% 0

Comments

There are no comments at the moment.