+ 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..
6 Respostas
+ 6
no swing
javafx
swing not recommended by java team itself
deprecated
output in gui . . .
+ 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
+ 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
+ 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
+ 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
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