Java Swing Tutorials - Herong's Tutorial Examples
Dr. Herong Yang, Version 4.00

Creating Internal Frames inside the Main Frame

This chapter provides tutorial notes and example codes on internal frames. Topics include quick introduction of the javax.swing.JInternalFrame class and the javax.swing.JInternalFrameListener interface; examples of creating internal frames inside the main frame; examples of adding internal frame listeners.

javax.swing.JInternalFame - Internal Frame Class

JInternalFameTest.java - Internal Frame Class Test

javax.swing.InternalFrameListener - Internal Frame Listener Interface

Conclusion:

  • An object of the javax.swing.JInternalFrame class represents an internal frame inside the main frame.
  • Creating a class to implement the javax.swing.JInternalFrameListener interface allows you to add logics to react to events generated by internal frames.

Dr. Herong Yang, updated in 2009
Creating Internal Frames inside the Main Frame