import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JPanel;
public class lol extends JFrame{
public void initialize(){
JButton lolButton=new JButton("like and subscribe1");
lolButton.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
}
});
JPanel butom = new JPanel();
butom.add(lolButton,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(butom);
}
public static void main(String[] args) {
lol plo = new lol();
plo.initialize();
}
}
(Please see full video)
The file name is lol 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) {
lol plo = new lol();
plo.initialize();
This line!
#javaprogramming
#javatutorial
#button
#vscode
#javaprogramming
En esta página del sitio puede ver el video en línea how to make button through Java in Visual Studio code de Duración hora minuto segunda en buena calidad , que subió el usuario Coder is here 04 febrero 2025, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 79 veces y le gustó 9 a los espectadores. Disfruta viendo!