immagini java
public static void main(String[] args) {
JFrame frame = new JFrame();
frame.setTitle("titolo");
frame.setLayout(new FlowLayout());
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
ImageIcon imageIcon = new ImageIcon("percorso");
JLabel label = new JLabel(imageIcon);
frame.add(label);
frame.pack();
frame.setVisible(true);
}
Also in Java:
- how to count number of words in a string
- detect tv remote keys andoid studio
- Please ensure that your JAVA_HOME points to a valid Java SDK. You are currently pointing to: /usr/lib/jvm/java-13-oracle
- how to use the this keyword in java
- java connect to mysql
- counting the sequence of character in string java
- java pass array as method parameter
- android java add new record to Firebase Firestore
- java instantiate collection with values
- java get icon for file type
- unity how to make a gameobject slowly look at a position
- validate request body java
- java square a number
- java obtain list string from list object
- java how to read a text file
- java - a program to print open ports
- java stream sorted reverse
- number to char java
- padding a string with 0 in java
- how to add an object to a list of objects in java
- java download file from url to string
- how to count the number of occurrences of an element in a arraylist in java
- android studio clear views of layout
- byte java