HI
NetBeans cannot run this program:
when I press "run", it does nithing and please help meCode:import java.awt.*;
import javax.swing.*;
// create a simple GUI window
public class TopLevelWindow {
private static void createWindow() {
// cerate and set up the window
JFrame frame = new JFrame("Simple GUI");
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
JLabel textLabel = new JLabel("Testing Java Application",SwingConstants.CENTER);
textLabel.setPreferredSize(new Dimension(300, 100));
frame.getContentPane().add(textLabel, BorderLayout.CENTER);
// Display the window
frame.setLocationRelativeTo(null);
frame.pack();
frame.setVisible(true);
}
public static void main(String[] args) {
}
}

