Olá pessoal, boa tarde!
Alguem poderia me dizer como faço para implementar uma tela onde apareça apena o X para fexar?
Frame
2 Respostas
e ae hermano!
Você pode pode criar uma classe que estenda a classe JDialog.
S
Olá amigo
import javax.swing.JInternalFrame;
import java.awt.event.*;
import java.awt.*;
/* Used by InternalFrameDemo.java. */
public class MyInternalFrame extends JInternalFrame {
static int openFrameCount = 0;
static final int xOffset = 30, yOffset = 30;
public MyInternalFrame() {
//super("Document #" + (++openFrameCount),
super("",
true, //resizable ---> aqui nestas linhas vc pode habilitar ou desabilitar
true, //closable
true, //maximizable
true);//iconifiable
//...Create the GUI and put it in the window...
//...Then set the window size or call pack...
setSize(300,300);
//Set the window's location.
setLocation(xOffset*openFrameCount, yOffset*openFrameCount);
}
}
Silvio Guedes
Criado 17 de março de 2009
Ultima resposta 19 de mar. de 2009
Respostas 2
Participantes 3