______________________________________________
Java Eclipse Hello World Program
JButton btnNewButton = new JButton(“Show message”);
btnNewButton.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
JOptionPane.showMessageDialog(null,“hello world…. “);
}
How to Fix the Package javax.swing is Not Accessible Error – Java Swing Not Working
BHMATA:
—————————
– Right click on project namne
– properties
– Java Build Path
– Libraries
– Model Path
– Add Library
– JRE System Library
– Execution enviropment
– Finish
– Apply
– Apply and Close
—————————
Delete module-info.java file
