[ad_1]
I’m very new to java and having fun.
I installed an eclipse web developer to code GUI easily.
I want to know if the code made by the web developer still works on eclipse which web developer isn’t installed.
+) Does every function of web developer is limited to basic JDK?
This is the code that is generated by eclipse web developer.
Thank you.
import java.awt.BorderLayout;
import java.awt.EventQueue;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import javax.swing.JLabel;
import java.awt.Font;
public class helpme extends JFrame {
private JPanel contentPane;
/**
* Launch the application.
*/
public static void main(String[] args) {
EventQueue.invokeLater(new Runnable() {
public void run() {
try {
helpme frame = new helpme();
frame.setVisible(true);
} catch (Exception e) {
e.printStackTrace();
}
}
});
}
/**
* Create the frame.
*/
public helpme() {
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
setBounds(100, 100, 450, 300);
contentPane = new JPanel();
contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
setContentPane(contentPane);
contentPane.setLayout(null);
JLabel lblNewLabel = new JLabel("Thank you very much");
lblNewLabel.setFont(new Font("MS Gothic", Font.BOLD, 16));
lblNewLabel.setBounds(142, 44, 170, 55);
contentPane.add(lblNewLabel);
}
}
[ad_2]