The program below is example coding for create a MDI...
but i duno y the source code cannot run properly...
it show me that cannot find symbol variable WindowUtilities
and cannot find symbol class ExitListener
is it this 2 coding got any problem
WindowUtilities.setNativeLookAndFeel();
addWindowListener(new ExitListener());
can anyone tell me how to correct it...
if anyone got the example about creating MDI please show me also...
thank you......
====================================================================
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
class JInternalFrames extends JFrame{
public static void main(
String [] args){
new JInternalFrames();
}
public JInternalFrames(){
super("Multiple Document Interface");
WindowUtilities.setNativeLookAndFeel();
addWindowListener(new ExitListener());
Container content = getContentPane();
content.setBackground(Color.white);
JDesktopPane desktop=new JDesktopPane();
desktop.setBackground(Color.white);
content.add(desktop, BorderLayout.CENTER);
setSize(450,400);
for(int i=0;i<5;i++){
JInternalFrame frame=new JInternalFrame(("Internal Frame " + i),true,true,true,true);
frame.setLocation(i*50+10,i*50+10);
frame.setBackground(Color.white);
frame.setSize(200,150);
frame.setVisible(true);
frame.moveToFront();
}
setVisible(true);
}
}