Open Ale653 opened 1 week ago
@Ale653 can you please add a screen cast demoing what you are seeing with a description what you expected to happen.
@Ale653 can you please add a screen cast demoing what you are seeing with a description what you expected to happen.
Dont worey ab it I changed apps
I just started using vscode on my macbook wich is running macos 15. I have been running code for a few times trying to figure out whats wrong burt I cannot find it. The code is:
/*
package com.mycompany.class_51;
/*
@author alous / import java.awt.; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; public class Class_51 implements ActionListener{ Label L; Class_51(){ Frame F= new Frame(); F.setSize(800, 400); F.setLayout(null); F.setVisible(true);
// Action Listener means when you click on someyhing and then something happends, Action Listener is a simple click // There are three steps to use Action Listener 1. in the line inside rthe class 2. THen apply add Action Listener where we do need to click with "this" 3. Use Action Perfom function where we will do the coding what will hapend when action perfom is called.
//Mouse listener has different mouse properties(click, click and hold, click and drag, click, hold and release, hover ...) Button B1= new Button("herksgfhilasdjhflajshdflkj"); B1.setBounds(100, 100, 50, 60); F.add(B1); B1.addActionListener(new Class_51());
}