开发者

Java: simple program to attach document or image

开发者 https://www.devze.com 2022-12-26 03:23 出处:网络
I have two buttons and one textset on JFrame. I need the first button to allow the u开发者_开发问答ser to browse for files and the second button to attach documents or images and displayed in textset.

I have two buttons and one textset on JFrame. I need the first button to allow the u开发者_开发问答ser to browse for files and the second button to attach documents or images and displayed in textset.


You can use JFileChooser to find the image on the hard drive and you can display the image on a JLabel

0

精彩评论

暂无评论...
验证码 换一张
取 消