Bem... o que eu queria fazer com o JDeveloper é literalmente desenhar uma telinha (largar os botões, campos, etc) e roda-lo!!!
Eu criei uma Aplication, e um Project.
Dentro desse Project, eu criei um novo Swing/AWT Dialog.
Dentro desse Dialog, eu larguei um botão.
O Código ficou mais ou menos assim:
Selecionar tudo
package mypackage;
import java.awt.Frame;
import java.awt.Dimension;
import javax.swing.JDialog;
import javax.swing.JButton;
import java.awt.Rectangle;
public class Dialog1 extends JDialog
{
private JButton jButton1 = new JButton();
public Dialog1()
{
this(null, "", false);
}
/**
*
* @param parent
* @param title
* @param modal
*/
public Dialog1(Frame parent, String title, boolean modal)
{
super(parent, title, modal);
try
{
jbInit();
}
catch(Exception e)
{
e.printStackTrace();
}
}
private void jbInit() throws Exception
{
this.setSize(new Dimension(400, 300));
this.getContentPane().setLayout(null);
jButton1.setText("jButton1");
jButton1.setBounds(new Rectangle(140, 180, 90, 50));
this.getContentPane().add(jButton1, null);
}
}
Minha dúvida é: Por que não posso rodar esse formulário com F11 ?
Dá o seguinte erro:
Selecionar tudo
The target Dialog1.java cannot be started as an application, because the class mypackage.Dialog1 does not have a main method.
Obrigado!!!