MI CODIGO ES ES SIGUIENTE. YO LO QUE QUIERO ES PODER HACER UNA PEQUEÑA APLICACION EN JAVA ( YA QUE ESTOY EMPEZANDO A TRABAJAR CON ESTE LENGUAJE ). CUANDO LO QUIERO COMPILAR ME SALE EL ERROR "FAILED TO LOAD MAIN-CLASS MANIFEST ATTRIBUTE FROM C:PRUEBA.JAR"
package PackVisual;
import java.awt.BorderLayout;
import javax.swing.JPanel;
import javax.swing.JFrame;
import javax.swing.JTextField;
import java.awt.Rectangle;
import javax.swing.JButton;
public class ClaseVisual extends JFrame {
private static final long serialVersionUID = 1L;
private JPanel jContentPane = null;
private JPanel jPanel = null;
private JTextField campo = null;
private JButton boton = null;
/**
* This is the default constructor
*/
public ClaseVisual() {
super();
initialize();
}
/**
* This method initializes this
*
* @return void
*/
private void initialize() {
this.setSize(300, 200);
this.setContentPane(getJContentPane());
this.setTitle("JFrame");
}
/**
* This method initializes jContentPane
*
* @return javax.swing.JPanel
*/
private JPanel getJContentPane() {
if (jContentPane == null) {
jContentPane = new JPanel();
jContentPane.setLayout(new BorderLayout());
jContentPane.add(getJPanel(), BorderLayout.CENTER);
}
return jContentPane;
}
/**
* This method initializes jPanel
*
* @return javax.swing.JPanel
*/
private JPanel getJPanel() {
if (jPanel == null) {
jPanel = new JPanel();
jPanel.setLayout(null);
jPanel.add(getCampo(), null);
jPanel.add(getBoton(), null);
}
return jPanel;
}
/**
* This method initializes campo
*
* @return javax.swing.JTextField
*/
private JTextField getCampo() {
if (campo == null) {
campo = new JTextField();
campo.setBounds(new Rectangle(92, 38, 88, 27));
}
return campo;
}
/**
* This method initializes boton
*
* @return javax.swing.JButton
*/
private JButton getBoton() {
if (boton == null) {
boton = new JButton();
boton.setBounds(new Rectangle(105, 82, 67, 23));
boton.setText("Boton");
}
return boton;
}
}