how to make a password field through Java and Visual Studio code

Publié le: 08 février 2025
sur la chaîne: Coder is here
30
4

import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.Font;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JPasswordField;

public class ham extends JFrame {
final private Font FontX = new Font("Verdana",NORMAL,15);
public void init(){
JPasswordField gk = new JPasswordField(" 1");
gk.setFont(FontX);
gk.setEchoChar((char) 12);

JPanel kala = new JPanel();
kala.add(gk,BorderLayout.NORTH);


setSize(604,193);
setDefaultCloseOperation(EXIT_ON_CLOSE);
setMinimumSize(new Dimension(100,200));
setTitle("Login");
setBackground(new Color(102,50,40));
setVisible(true);
add(kala);
}
public static void main(String[] args) {
ham JK = new ham();
JK.init();
}
}


(Please see full video)
The file name is ham but you can change it if you change than change name everywhere the name was like in 1st line and in

public static void main(String[] args) {
ham JK = new ham();
JK.init();
}

This line!

#javaprogramming
#javatutorial
#button
#vscode
#coding


Sur cette page du site, vous pouvez voir la vidéo en ligne how to make a password field through Java and Visual Studio code durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Coder is here 08 février 2025, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 30 fois et il a aimé 4 téléspectateurs. Bon visionnage!