A simple JFrame GUI and opening a File in Java

preview_player
Показать описание
Here's an application with a basic GUI in a JFrame with a button to open a file. Classes used:
JFrame, JButton, JLabel
BufferedImage
File
IOException;
ImageIO;
JFileChooser;
FileNameExtensionFilter;

This is leading into a larger task for my ICS4U class.
Рекомендации по теме
Комментарии
Автор

That was really helpful - thank you!
Can you do one for a text file, too, so we can compare the differences?

tracimorrison
Автор

when you select different file extension keeps saying that the file successfully load.

armando_
Автор

Hi is this eclipse? What visual editor are you using I can't get any to integrate with Eclipse

TheAlexm
Автор

i dont know if you still read messages from this video, anyways, if i wanted to upload a doc file or a xlsx file, what should i replace the "Buffered image" with?

rodrigoponcecortes
Автор

Pls sir upload how to compress image in jframe and save it in drive

kyrshanlangtariang
visit shbcf.ru