Java Swing JLabel
Java Swing JLabel:
Java Swing JLabel #DarkHers #darkhers #programming #html#bhfyp #youtubeshorts #shorts #fyp #coder - YouTube ________________________________________________
package Learn;
import javax.swing.*;
public class JavaSwingLabel {
public static void main(String[] args) {
JFrame frame = new JFrame("Java Swing Label");
frame.setBounds(800, 150, 250, 250);
frame.setLayout(null);
frame.setVisible(true);
JLabel lbl = new JLabel("Sample Text");
lbl.setBounds(75, 75, 90, 25);
frame.add(lbl);
}
}
________________________________________________ Dark Hers
YouTube
https://instagram.com/darkhers
https://www.facebook.com/darkhers
TikTok
https://www.tiktok.com/@darkhers
https://www.pinterest.co.uk/darkhers
Comments
Post a Comment