aspose file tools*
The moose likes JDBC and the fly likes create  MDI Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "create  MDI" Watch "create  MDI" New topic
Author

create MDI

Anthony Levis
Greenhorn

Joined: Dec 15, 2004
Posts: 10
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...
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);
}
}
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

Well, this not a JDBC question.

"WindowUtilities" is not part of the Java API, so it either you wrote it or it comes with some third party library and need imported into this class. Ditto for ExitListener.


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: create MDI