I'm trying to place this container in an html webpage. Blog. I want to know if this Java program will work. If the other side or client side also has a JRE 2021 version of it or it may be their own language. Example, UNIX. It uploads a picture on the client side html or www web page. Curious if this program will run on the other person's computer. Also using Java or JRE. Adding a container for a picture that is already on my iPhone.
import java.awt.Container; import java.awt.Frame; import java.awt.Panel; Public class Container { Public Static void main(String[] args) { //create a Frame Frame frame=new Frame("Kaua'i County Government"); //on my iPhone is the picture //create a panel Panel panel=new Panel(); //Add the pane to the frame frame.add(panel); frame.setSize(300,200); frame.setVisible(true); //adding the picture on my iPhone JFlrame frame=new JFrame(); JLabel label=new ImageIcon("IMG_610.jpg")); frame.add(label); } } //end of program