File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
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
 
Similar Threads
JInternalFrames + JSliders
Adding Buttons in JDesktoPane
How To create MDI....
Internal Frames Problems...need help
Something like MDI forms in Java