View RSS Feed

Java Swing

Internal Frames vs. Regular Frames

Rate this Entry
by , 04-26-2012 at 08:53 PM (1219 Views)
Code that is used for internal frames and regular swing frames is very similar, in variety of ways. Root panes are present in internal frames which are used to setup GUIs, for JInternalFrame that is quite same as the GUI setup, for JFrame. Other APIs are also provided by the JInternalFrames which makes it just like JFrame.

Internal frames are not top level or windows container, but this makes them to differ from frames. Let us say for example, an internal frame shall be added to a container; an internal frame is not considered as containment hierarchy’s root. Also, window events are not generated by the internal frames. Instead of this, user actions which make window events to be fired by a frame cause the internal frame event firing by the internal frame.

Platform independent code is being used for implementation of the internal frames; therefore certain features are added by them which couldn’t be obtained by frames. One feature is that more control is provided by the internal frame at the capabilities and state as compared to that provided by the frames. Internal frames could be iconified or maximized programmatically. Also, which icon shall be in the title bar of internal frame shall also be specified. It could also be specified that internal frames either have window decorations or not, which support maximizing, closing, iconifying or resizing.

Submit "Internal Frames vs. Regular Frames" to Facebook Submit "Internal Frames vs. Regular Frames" to Digg Submit "Internal Frames vs. Regular Frames" to del.icio.us Submit "Internal Frames vs. Regular Frames" to StumbleUpon Submit "Internal Frames vs. Regular Frames" to Google

Comments