Cement Distributor Guide
Cement Distributor Guide
1. Project Setup:
- Open NetBeans.
- Create a new project: File > New Project > Java with Ant > Java Application.
- Name the project "CementDistributor" and set the main class as cement.CementDistributor.
- Code:
------------------------------------------------------------
package cement;
import javax.swing.*;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
public LoginPage() {
setTitle("Login Page");
setSize(400, 300);
setDefaultCloseOperation(EXIT_ON_CLOSE);
setLayout(new GridLayout(3, 2, 10, 10));
loginButton.addActionListener(new LoginAction());
signUpButton.addActionListener(e -> {
new SignUpPage().setVisible(true);
dispose();
});
add(usernameLabel);
add(usernameField);
add(passwordLabel);
add(passwordField);
add(loginButton);
add(signUpButton);
@Override
new CementDistributor().setVisible(true);
dispose();
} else {
new LoginPage().setVisible(true);
------------------------------------------------------------
- Manages the Cement Distribution functionality, including Add, Update, Search, and Delete.
6. Future Enhancements: