Results 1 to 6 of 6

Thread: Confused with JInternalFrame class

  1. #1
    Join Date
    Dec 2009
    Posts
    59

    Confused with JInternalFrame class

    Hello friends,

    I am beginner to the field of java programming language. Because of that I have lots of confusion about the class concepts of java. I am getting troubled while understanding the 'JInternalFrame class' of the java programming. I don't have any idea bout the use of this java class. Do you have enough knowledge about the 'JInternalFrame class' of java? If yes then please let me know the same. I am waiting for your reply.

  2. #2
    Join Date
    Oct 2005
    Posts
    2,393

    Re: Confused with JInternalFrame class

    Hi,

    A JInternalFrame class is a lightweight object that provides many of the features of a native frame, including dragging, closing, becoming an icon, resizing, title display, and support for a menu bar. Generally, you add JInternalFrames to a JDesktopPane. The UI delegates the look-and-feel-specific actions to the DesktopManager object maintained by the JDesktopPane. The JInternalFrame content pane is where you add child components.

  3. #3
    Join Date
    May 2008
    Posts
    2,389

    Re: Confused with JInternalFrame class

    Please review following constructors of JInternalFrame class:
    • JInternalFrame(String ttl, boolean resizable, boolean clsable, boolean maximizable, boolean icnifiable)
    • JInternalFrame(String ttl, boolean resizable, boolean clsable, boolean maximizable)
    • JInternalFrame(String ttl, boolean resizable, boolean clsable)
    • JInternalFrame(String ttl, boolean resizable)
    • JInternalFrame(String ttl)

  4. #4
    Join Date
    Feb 2008
    Posts
    1,852

    Re: Confused with JInternalFrame class

    Example of JInternalFrame class:
    Code:
    import javax.swing.JInternalFrame;
    import javax.swing.JDesktopPane;
    
    public class JInternalFrameMain {
      public static void main(String[] argzv) throws Exception
     {
        JDesktopPane desktopQ = new JDesktopPane();
        JInternalFrame[] framesZZ = desktopQ.getAllFrames();
    
        for (int iZ = 0; iZ < framesZ.length; iZ++) 
    {
          String titleZ = framesZZ[iZ].getTitle();
          boolean isVisible = framesZZ[iZ].isVisible();
          boolean isCloseable = framesZ[iZ].isClosable();
          boolean isResizeable = framesZ[iZ].isResizable();
          boolean isIconifiable = framesZ[iZ].isIconifiable();
          boolean isIcon = framesZ[i].isIcon();
          boolean isMaximizable = framesZ[iZ].isMaximizable();
          boolean isSelected = framesZ[iZ].isSelected();
        }
      }
    }

  5. #5
    Join Date
    Jan 2008
    Posts
    1,521

    Re: Confused with JInternalFrame class

    Hi friend,

    Following methods will definitely help you to know about the JInternalFrame class functionality:
    1. setUI(InternalFrameUI fui)
    2. setSelected(boolean sltd)
    3. setRootPaneCheckingEnabled(boolean enbld)
    4. setRootPane(JRootPane rt)
    5. setMaximum(boolean bl)
    6. setLayout(LayoutManager mgr)

  6. #6
    Join Date
    Apr 2008
    Posts
    1,948

    Re: Confused with JInternalFrame class

    Hello friend

    Following java example will depict you the use of 'isClosable()' method of the JInternalFrame class:
    Code:
    import javax.swing.JInternalFrame;
    
    public class JInternalFR {
      public static void main(String[] argev) throws Exception {
        JDesktopPane dp = new JDesktopPane();
        JInternalFrame[] pn = desktop.getAllFrames();
    
        for (int b = 0; b < pn.length; b++) 
    
    {
          String title = pn[i].getTitle();
          boolean isVisible = pn[i].isVisible();
          boolean isCloseable = pn[i].isClosable();
          boolean isResizeable = pn[i].isResizable();
          boolean isIconifiable = pn[i].isIconifiable();
          boolean isIcon = pn[i].isIcon();
          boolean isMaximizable = pn[i].isMaximizable();
          boolean isSelected = pn[i].isSelected();
        }
      }
    }

Similar Threads

  1. Confused with EventQueue class
    By Gajananvihari in forum Software Development
    Replies: 4
    Last Post: 25-02-2010, 08:25 AM
  2. Confused with DefaultListModel class
    By Khan Baba in forum Software Development
    Replies: 4
    Last Post: 19-02-2010, 12:29 PM
  3. Confused about JApplet class
    By ScarFace 01 in forum Software Development
    Replies: 5
    Last Post: 19-02-2010, 08:50 AM
  4. Confused about JCheckBox class
    By Khan Baba in forum Software Development
    Replies: 5
    Last Post: 18-02-2010, 12:54 PM
  5. JInternalFrame.JDesktopIcon class
    By Bottlenecked in forum Software Development
    Replies: 4
    Last Post: 17-02-2010, 09:24 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,539,411.17507 seconds with 17 queries