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

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.

Table of Contents

 About This Java Swing Tutorial Book

 Introduction of Java Swing Package

 Graphics Environment of the Local System

 JFrame - Main Frame Class

 JLabel - Swing Label Class

 JButton - Swing Button Class

 JRadioButton - Swing Radio Button Class

 JTextField - Swing Text Field Class

 Menu Bar, Menus, Menu Items and Listeners

Creating Internal Frames inside the Main Frame

 Layout of Components in a Container

 LookAndFeel and UIManager

 Option Dialog Boxes

 JEditorPane - The Editor Pane Class

 References

 Printable Copy - PDF Version

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