+ 3

Can anyone give syntax for importing an image in java code ??

I want to make a project in which I want to insert images in the output . So I am looking for the syntax or any method to import images in Java output window..

5th Jul 2017, 4:20 PM
Vishakha Jain
6 Respuestas
+ 6
no swing javafx swing not recommended by java team itself deprecated output in gui . . .
5th Jul 2017, 5:28 PM
Abdur-Rahmaan Janhangeer
Abdur-Rahmaan Janhangeer - avatar
+ 2
nope even no knowledge fine javafx has some similarity with it one use might be to understand older codes but by javafx you'll get it
5th Jul 2017, 6:07 PM
Abdur-Rahmaan Janhangeer
Abdur-Rahmaan Janhangeer - avatar
+ 1
seriously but we had learned it.. and I have seen the oracle syllabus for core java.. after awt swing is mentioned.. and yes it is deprecated.. but should have knowledge of it
5th Jul 2017, 5:39 PM
Мг. Кнап🌠
Мг. Кнап🌠 - avatar
+ 1
Thanks for Answers,,,,,, but can you give me proper syntax or eg ..because I am new with programming language i.e Java so I am not known to use swing or javafx Thank you
7th Jul 2017, 2:49 PM
Vishakha Jain
+ 1
it's not just about syntax.. u need to learn whole concept first.. create a new jframe.. and add a jlabel to it from the platelets... select the jlabel.. and then in the properties window scroll to icon property.. click on "..." button the icon property editor box will appear..there you can import image from computer
7th Jul 2017, 3:23 PM
Мг. Кнап🌠
Мг. Кнап🌠 - avatar
0
here in sololearn gui for java and for the rest of languages not available.. and if u want to add image in java programs.. then first learn awt or swing and then there is a label text field font and everything u can implement.. and i can use an IDE for java like netbeans or Eclipse
5th Jul 2017, 5:12 PM
Мг. Кнап🌠
Мг. Кнап🌠 - avatar